Function at 0x10002820
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.10007959
mov esi, ebx
mov ecx, dword [esi + 0x1000a018]
call fcn.100084d7
mov dword [esi + 0x1000a01c], eax
add esi, 0x14
cmp esi, 0x244
jb 0x100028bd
push ecx
push ecx
lea edx, [ebp - 0x220]
mov ecx, edi
call fcn.100034fb
mov esi, eax
mov dword [ebp - 0x238], esi
test esi, esi
jne 0x10002d47
push 0x1c
pop ecx
mov eax, 0x1000a244
cmp dword [eax], ebx
jne 0x10002911
sub eax, 0x14
dec ecx
cmp eax, 0x1000a014
ja 0x10002900
jmp 0x10002917
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 0x10002948
mov ecx, 4
int 0x29
mov esi, eax
mov dword [ebp - 0x238], esi
test esi, esi
jne 0x10002d47
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 0x10002997
mov ecx, 4
int 0x29
mov esi, eax
mov dword [ebp - 0x238], esi
test esi, esi
jne 0x10002d47
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 0x100029d2
mov ecx, 4
int 0x29
mov esi, eax
mov dword [ebp - 0x238], esi
test esi, esi
js 0x10002d47
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 0x10002a0b
mov ecx, 4
int 0x29
mov esi, eax
mov dword [ebp - 0x238], esi
test esi, esi
jne 0x10002d47
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 0x10002a7c
mov ecx, 4
int 0x29
mov esi, eax
mov dword [ebp - 0x238], esi
test esi, esi
js 0x10002d47
mov ecx, dword [ebp - 0x23c]
call fcn.100086dd
mov dword [0x1000abd8], eax
test eax, eax
je 0x10002d47
xor ecx, ecx
mov dword [ebp - 0x270], eax
inc ecx
cmp eax, ecx
ja 0x10002ab7
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 0x10002af0
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 0x10002b0d
mov word [ebp - 0x18], 0x2c
lea eax, [ebp - 0x234]
mov ecx, edi
push eax
lea edx, [ebp - 0x220]
call fcn.1000245e
mov esi, eax
mov dword [ebp - 0x238], esi
test esi, esi
mov esi, dword [ebp - 0x234]
jne 0x10002d35
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 0x10002b62
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x238], eax
jmp 0x10002d35
mov eax, ebx
mov edi, ebx
mov dword [ebp - 0x250], eax
cmp dword [edi + 0x1000a014], ebx
je 0x10002bf0
mov ecx, dword [edi + 0x1000a01c]
call fcn.100025d2
mov dword [ebp - 0x240], eax
test eax, eax
je 0x10002d3b
lea ecx, [ebp - 0x18]
xor edx, edx
push ecx
mov ecx, dword [ebp - 0x234]
inc edx
push eax
call fcn.100024ec
push dword [ebp - 0x240]
mov esi, eax
mov dword [ebp - 0x238], esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
test esi, esi
jne 0x10002d2f
mov eax, dword [ebp - 0x250]
cmp eax, dword [ebp - 0x258]
je 0x10002bf0
mov ecx, dword [ebp - 0x234]
lea eax, [ebp - 0x18]
push ebx
push eax
xor edx, edx
call fcn.100024ec
mov dword [ebp - 0x238], eax
test eax, eax
jne 0x10002d2f
mov eax, dword [ebp - 0x250]
inc eax
add edi, 0x14
mov dword [ebp - 0x250], eax
cmp edi, 0x244
jb 0x10002b6c
mov ecx, dword [ebp - 0x234]
lea eax, [ebp - 0x24c]
push ebx
push eax
xor edx, edx
call fcn.100024ec
mov dword [ebp - 0x238], eax
test eax, eax
jne 0x10002d2f
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 0x10002c49
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 0x10002c8f
mov ecx, 4
int 0x29
mov dword [ebp - 0x238], eax
test eax, eax
jne 0x10002d2f
mov ecx, dword [ebp - 0x260]
test ecx, ecx
je 0x10002d23
mov eax, dword [ecx]
mov dword [ebp - 0x240], eax
test eax, eax
je 0x10002d1e
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.10002621
mov dword [ebp - 0x238], eax
test eax, eax
jne 0x10002d2f
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 0x10002d18
mov ecx, 4
int 0x29
mov ecx, dword [ebp - 0x260]
call fcn.100087a5
cmp dword [ebp - 0x240], ebx
jne 0x10002c62
mov esi, dword [ebp - 0x234]
test esi, esi
je 0x10002d54
jmp 0x10002d4d
mov dword [ebp - 0x238], 0x8007000e
jmp 0x10002d2f
mov esi, dword [ebp - 0x234]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x264]
test eax, eax
je 0x10002d65
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 0x244]
call fcn.10007a04
mov ecx, dword [ebp - 0x248]
mov dword [ebp - 0x244], ebx
test ecx, ecx
je 0x10002da3
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 0x10002d9d
mov ecx, 4
int 0x29
mov dword [ebp - 0x248], ebx
mov ecx, dword [ebp - 0x23c]
test ecx, ecx
je 0x10002dd0
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 0x10002dca
mov ecx, 4
int 0x29
mov dword [ebp - 0x23c], ebx
mov eax, dword [ebx + 0x1000a01c]
test eax, eax
je 0x10002de1
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
add ebx, 0x14
cmp ebx, 0x244
jb 0x10002dd0
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x238]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.100091d0
mov esp, ebp
pop ebp
ret 0x14