Function at 0x10002840
Capabilities:
Get geographical location
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x290
mov eax, dword [0x1000a004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
or dword [ebp - 0x234], 0xffffffff
push ebx
mov dword [ebp - 0x254], eax
xor ebx, ebx
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x25c], eax
mov ax, word [0x10001128]
push esi
push edi
mov edi, dword [ebp + 8]
mov word [ebp - 0x24c], ax
mov al, byte [0x1000112a]
push 0x208
mov byte [ebp - 0x24a], al
lea eax, [ebp - 0x220]
push ebx
push eax
mov dword [ebp - 0x268], edi
mov dword [ebp - 0x258], ebx
mov dword [ebp - 0x260], ebx
mov dword [ebp - 0x244], ebx
mov dword [ebp - 0x248], ebx
mov dword [ebp - 0x23c], ebx
mov dword [ebp - 0x264], ebx
call sub.msvcrt.dll_memset
mov ecx, dword [ebp + 0x10]
add esp, 0xc
mov dword [ebp - 0x27c], ebx
call fcn.10007939
mov esi, ebx
mov ecx, dword [esi + 0x1000a018]
call fcn.100084a3
mov dword [esi + 0x1000a01c], eax
add esi, 0x14
cmp esi, 0x244
jb 0x100028dd
push ecx
push ecx
lea edx, [ebp - 0x220]
mov ecx, edi
call fcn.1000350d
mov esi, eax
mov dword [ebp - 0x238], esi
test esi, esi
jne 0x10002d67
push 0x1c
pop ecx
mov eax, 0x1000a244
cmp dword [eax], ebx
jne 0x10002931
sub eax, 0x14
dec ecx
cmp eax, 0x1000a014
ja 0x10002920
jmp 0x10002937
mov dword [ebp - 0x258], ecx
mov eax, dword [ebp - 0x254]
lea ecx, [ebp - 0x244]
mov edi, esp
push ecx
lea ecx, [ebp - 0x278]
mov esi, dword [eax]
push ecx
push eax
mov esi, dword [esi + 0x64]
mov ecx, esi
call dword [0x1000b17c]
call esi
cmp edi, esp
je 0x10002968
mov ecx, 4
int 0x29
mov esi, eax
mov dword [ebp - 0x238], esi
test esi, esi
jne 0x10002d67
mov eax, dword [ebp - 0x254]
lea ecx, [ebp - 0x248]
mov edi, esp
push ecx
lea ecx, [ebp - 0x280]
mov esi, dword [eax]
push ecx
push ebx
push ebx
push dword [ebp - 0x244]
mov esi, dword [esi + 0x38]
mov ecx, esi
push dword [ebp - 0x278]
push eax
call dword [0x1000b17c]
call esi
cmp edi, esp
je 0x100029b7
mov ecx, 4
int 0x29
mov esi, eax
mov dword [ebp - 0x238], esi
test esi, esi
jne 0x10002d67
mov eax, dword [ebp - 0x248]
lea ecx, [ebp - 0x23c]
mov edi, esp
push ecx
push ebx
mov esi, dword [eax]
push eax
mov esi, dword [esi + 0x38]
mov ecx, esi
call dword [0x1000b17c]
call esi
cmp edi, esp
je 0x100029f2
mov ecx, 4
int 0x29
mov esi, eax
mov dword [ebp - 0x238], esi
test esi, esi
js 0x10002d67
mov eax, dword [ebp - 0x23c]
mov edi, esp
push ebx
push 0x10001498
push eax
mov esi, dword [eax]
mov esi, dword [esi + 0x1c]
mov ecx, esi
call dword [0x1000b17c]
call esi
cmp edi, esp
je 0x10002a2b
mov ecx, 4
int 0x29
mov esi, eax
mov dword [ebp - 0x238], esi
test esi, esi
jne 0x10002d67
mov eax, 0xffe0003
mov dword [ebp - 0x288], 6
mov dword [ebp - 0x290], eax
mov dword [ebp - 0x228], eax
lea eax, [ebp - 0x290]
push 4
pop ecx
mov dword [ebp - 0x224], eax
mov edi, esp
mov eax, dword [ebp - 0x23c]
mov dword [ebp - 0x230], ecx
mov dword [ebp - 0x22c], ecx
lea ecx, [ebp - 0x230]
push ebx
mov esi, dword [eax]
push ecx
push eax
mov esi, dword [esi + 0x38]
mov ecx, esi
call dword [0x1000b17c]
call esi
cmp edi, esp
je 0x10002a9c
mov ecx, 4
int 0x29
mov esi, eax
mov dword [ebp - 0x238], esi
test esi, esi
js 0x10002d67
mov ecx, dword [ebp - 0x23c]
call fcn.100086a3
mov dword [0x1000abd8], eax
test eax, eax
je 0x10002d67
xor ecx, ecx
mov dword [ebp - 0x270], eax
inc ecx
cmp eax, ecx
ja 0x10002ad7
mov dword [ebp - 0x270], ecx
mov edi, dword [ebp - 0x268]
lea eax, [ebp - 0x274]
mov ecx, dword [ebp - 0x25c]
mov esi, esp
push eax
push edi
mov dword [ebp - 0x274], ebx
mov dword [ebp - 0x26c], ebx
call dword [0x1000b17c]
call dword [ebp - 0x25c]
cmp esi, esp
je 0x10002b10
mov ecx, 4
int 0x29
push 0x14
lea eax, [ebp - 0x18]
push eax
push 0xc
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x10002b2d
mov word [ebp - 0x18], 0x2c
lea eax, [ebp - 0x234]
mov ecx, edi
push eax
lea edx, [ebp - 0x220]
call fcn.1000247e
mov esi, eax
mov dword [ebp - 0x238], esi
test esi, esi
mov esi, dword [ebp - 0x234]
jne 0x10002d55
push ebx
lea eax, [ebp - 0x27c]
push eax
push 3
push 0x10001130
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x10002b82
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x238], eax
jmp 0x10002d55
mov eax, ebx
mov edi, ebx
mov dword [ebp - 0x250], eax
cmp dword [edi + 0x1000a014], ebx
je 0x10002c10
mov ecx, dword [edi + 0x1000a01c]
call fcn.100025f0
mov dword [ebp - 0x240], eax
test eax, eax
je 0x10002d5b
lea ecx, [ebp - 0x18]
xor edx, edx
push ecx
mov ecx, dword [ebp - 0x234]
inc edx
push eax
call fcn.1000250c
push dword [ebp - 0x240]
mov esi, eax
mov dword [ebp - 0x238], esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
test esi, esi
jne 0x10002d4f
mov eax, dword [ebp - 0x250]
cmp eax, dword [ebp - 0x258]
je 0x10002c10
mov ecx, dword [ebp - 0x234]
lea eax, [ebp - 0x18]
push ebx
push eax
xor edx, edx
call fcn.1000250c
mov dword [ebp - 0x238], eax
test eax, eax
jne 0x10002d4f
mov eax, dword [ebp - 0x250]
inc eax
add edi, 0x14
mov dword [ebp - 0x250], eax
cmp edi, 0x244
jb 0x10002b8c
mov ecx, dword [ebp - 0x234]
lea eax, [ebp - 0x24c]
push ebx
push eax
xor edx, edx
call fcn.1000250c
mov dword [ebp - 0x238], eax
test eax, eax
jne 0x10002d4f
push 0x78
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x264], eax
mov edx, ebx
mov esi, 0x1000a010
mov dword [eax], 0x1d
lea edi, [eax + 4]
mov ecx, dword [esi]
inc edx
mov dword [edi], ecx
lea esi, [esi + 0x14]
lea edi, [edi + 4]
cmp edx, dword [eax]
jb 0x10002c69
mov dword [ebp - 0x240], 1
mov eax, dword [ebp - 0x23c]
lea ecx, [ebp - 0x260]
mov edi, esp
push ecx
push ebx
mov esi, dword [eax]
push 1
push eax
mov esi, dword [esi + 0x4c]
mov ecx, esi
call dword [0x1000b17c]
call esi
cmp edi, esp
je 0x10002caf
mov ecx, 4
int 0x29
mov dword [ebp - 0x238], eax
test eax, eax
jne 0x10002d4f
mov ecx, dword [ebp - 0x260]
test ecx, ecx
je 0x10002d43
mov eax, dword [ecx]
mov dword [ebp - 0x240], eax
test eax, eax
je 0x10002d3e
mov eax, dword [ecx + 0xc]
push dword [eax + 0x1c]
push dword [eax + 0x18]
lea eax, [ebp - 0x18]
push dword [ebp - 0x254]
push eax
push dword [ebp - 0x264]
push ecx
push dword [ebp - 0x258]
mov ecx, dword [ebp - 0x234]
call fcn.1000263f
mov dword [ebp - 0x238], eax
test eax, eax
jne 0x10002d4f
mov edi, dword [ebp - 0x25c]
lea eax, [ebp - 0x274]
inc dword [ebp - 0x274]
mov esi, esp
push eax
push dword [ebp - 0x268]
mov ecx, edi
call dword [0x1000b17c]
call edi
cmp esi, esp
je 0x10002d38
mov ecx, 4
int 0x29
mov ecx, dword [ebp - 0x260]
call fcn.10008769
cmp dword [ebp - 0x240], ebx
jne 0x10002c82
mov esi, dword [ebp - 0x234]
test esi, esi
je 0x10002d74
jmp 0x10002d6d
mov dword [ebp - 0x238], 0x8007000e
jmp 0x10002d4f
mov esi, dword [ebp - 0x234]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x264]
test eax, eax
je 0x10002d85
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 0x244]
call fcn.100079e4
mov ecx, dword [ebp - 0x248]
mov dword [ebp - 0x244], ebx
test ecx, ecx
je 0x10002dc3
mov eax, dword [ecx]
mov edi, esp
push ecx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x1000b17c]
call esi
cmp edi, esp
je 0x10002dbd
mov ecx, 4
int 0x29
mov dword [ebp - 0x248], ebx
mov ecx, dword [ebp - 0x23c]
test ecx, ecx
je 0x10002df0
mov eax, dword [ecx]
mov edi, esp
push ecx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x1000b17c]
call esi
cmp edi, esp
je 0x10002dea
mov ecx, 4
int 0x29
mov dword [ebp - 0x23c], ebx
mov eax, dword [ebx + 0x1000a01c]
test eax, eax
je 0x10002e01
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
add ebx, 0x14
cmp ebx, 0x244
jb 0x10002df0
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x238]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.10009160
leave
ret 0x14