Function at 0x10042e9
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x87c
mov eax, dword [0x100a3a8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x860], eax
xor eax, eax
mov esi, 0x10014a8
lea edi, [ebp - 0x4c]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea edi, [ebp - 0x46]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov esi, 0x10014a0
lea edi, [ebp - 0x38]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov ecx, dword [ebp + 0xc]
lea edi, [ebp - 0x32]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov dword [ebp - 0x14], 0x2f
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov dword [ebp - 0x24], 0x3a
lea edi, [ebp - 0x20]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
and dword [ebp - 0x86c], 0
stosd dword es:[edi], eax
xor eax, eax
mov edi, ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov edi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov esi, 0x400
push esi
lea eax, [ebp - 0x84c]
push eax
push 0x21
push esi
mov dword [ebp - 0x858], ecx
call edi
xor ebx, ebx
inc ebx
cmp eax, ebx
jle 0x1004399
lea eax, [ebp - 0x84c]
push eax
call dword [sym.imp.msvcrt.dll__wtoi]
pop ecx
mov dword [ebp - 0x86c], eax
push 9
lea eax, [ebp - 0x84c]
push eax
push 0x28
push esi
call edi
cmp eax, ebx
jle 0x10043bd
lea eax, [ebp - 0x84c]
push eax
push 9
lea eax, [ebp - 0x38]
push eax
call fcn.010025dc
push 9
lea eax, [ebp - 0x84c]
push eax
push 0x29
push esi
call edi
cmp eax, ebx
jle 0x10043e1
lea eax, [ebp - 0x84c]
push eax
push 9
lea eax, [ebp - 0x4c]
push eax
call fcn.010025dc
push 8
lea eax, [ebp - 0x84c]
push eax
push 0x1e
push esi
call edi
cmp eax, ebx
jle 0x1004405
lea eax, [ebp - 0x84c]
push eax
push 8
lea eax, [ebp - 0x24]
push eax
call fcn.010025dc
push 8
lea eax, [ebp - 0x84c]
push eax
push 0x1d
push esi
call edi
cmp eax, ebx
jle 0x1004429
lea eax, [ebp - 0x84c]
push eax
push 8
lea eax, [ebp - 0x14]
push eax
call fcn.010025dc
push dword [ebp - 0x860]
lea eax, [ebp - 0x84c]
push esi
push eax
call fcn.010025dc
mov esi, dword [sym.imp.msvcrt.dll_wcstok]
mov dword [ebp - 0x854], eax
mov edi, 0x1001498
lea eax, [ebp - 0x84c]
push edi
push eax
call esi
push edi
xor edi, edi
push edi
mov ebx, eax
call esi
add esp, 0x10
mov dword [ebp - 0x860], eax
jmp 0x10047f0
lea eax, [ebp - 0x14]
push eax
push ebx
call dword [sym.imp.msvcrt.dll_wcsstr]
pop ecx
pop ecx
mov dword [ebp - 0x85c], edi
test eax, eax
je 0x10045a8
mov eax, dword [ebp - 0x86c]
sub eax, edi
je 0x10044d2
dec eax
je 0x10044bd
dec eax
jne 0x1004551
lea eax, [ebp - 0x14]
push eax
push ebx
call esi
mov dword [ebp - 0x85c], eax
lea eax, [ebp - 0x14]
push eax
push edi
call esi
mov ebx, eax
lea eax, [ebp - 0x14]
push eax
push edi
call esi
mov edi, eax
jmp 0x10044f2
lea eax, [ebp - 0x14]
push eax
push ebx
call esi
mov edi, eax
lea eax, [ebp - 0x14]
push eax
push 0
call esi
mov ebx, eax
jmp 0x10044e4
lea eax, [ebp - 0x14]
push eax
push ebx
call esi
mov ebx, eax
lea eax, [ebp - 0x14]
push eax
push edi
call esi
mov edi, eax
lea eax, [ebp - 0x14]
push eax
push 0
call esi
mov dword [ebp - 0x85c], eax
add esp, 0x18
test ebx, ebx
je 0x1004523
push 0xffffffffffffffff
lea eax, [ebp - 0x850]
push eax
push ebx
call fcn.01002ac1
mov dword [ebp - 0x854], eax
test eax, eax
jne 0x1004523
mov ax, word [ebp - 0x850]
mov ecx, dword [ebp - 0x858]
mov word [ecx + 2], ax
test edi, edi
je 0x1004551
push 0xffffffffffffffff
lea eax, [ebp - 0x850]
push eax
push edi
call fcn.01002ac1
mov dword [ebp - 0x854], eax
test eax, eax
jne 0x1004551
mov ax, word [ebp - 0x850]
mov ecx, dword [ebp - 0x858]
mov word [ecx + 6], ax
cmp dword [ebp - 0x85c], 0
je 0x10047e2
push 0xffffffffffffffff
lea eax, [ebp - 0x850]
push eax
push dword [ebp - 0x85c]
call fcn.01002ac1
mov dword [ebp - 0x854], eax
test eax, eax
jne 0x10047e2
cmp dword [ebp - 0x850], 0x64
jae 0x1004593
add dword [ebp - 0x850], 0x7d0
mov ax, word [ebp - 0x850]
mov ecx, dword [ebp - 0x858]
mov word [ecx], ax
jmp 0x10047e2
lea eax, [ebp - 0x4c]
push eax
push ebx
mov dword [ebp - 0x864], edi
call fcn.01004259
mov dword [ebp - 0x870], eax
lea eax, [ebp - 0x38]
push eax
push ebx
call fcn.01004259
mov dword [ebp - 0x874], eax
lea eax, [ebp - 0x24]
push eax
push ebx
call esi
pop ecx
pop ecx
mov dword [ebp - 0x868], eax
test eax, eax
je 0x10045fb
lea eax, [ebp - 0x24]
push eax
xor edi, edi
push 0
inc edi
call esi
pop ecx
pop ecx
mov dword [ebp - 0x85c], eax
mov ebx, 0x1001494
jmp 0x1004606
mov ebx, 0x1001494
mov dword [ebp - 0x868], ebx
cmp dword [ebp - 0x85c], 0
je 0x1004622
lea eax, [ebp - 0x24]
push eax
push 0
inc edi
call esi
pop ecx
pop ecx
mov dword [ebp - 0x864], eax
jmp 0x1004628
mov dword [ebp - 0x85c], ebx
cmp dword [ebp - 0x864], 0
je 0x1004634
inc edi
jmp 0x100463a
mov dword [ebp - 0x864], ebx
cmp dword [ebp + 0x10], 0
je 0x1004643
push 3
pop edi
dec edi
je 0x100473a
dec edi
je 0x10046f6
dec edi
jne 0x100476d
push 0xffffffffffffffff
lea eax, [ebp - 0x850]
push eax
push dword [ebp - 0x868]
call fcn.01002ac1
mov dword [ebp - 0x854], eax
test eax, eax
jne 0x10047e2
mov ax, word [ebp - 0x850]
mov ecx, dword [ebp - 0x858]
mov word [ecx + 8], ax
push 0xffffffffffffffff
lea eax, [ebp - 0x850]
push eax
push dword [ebp - 0x85c]
call fcn.01002ac1
mov dword [ebp - 0x854], eax
test eax, eax
jne 0x10047e2
mov ax, word [ebp - 0x850]
mov ecx, dword [ebp - 0x858]
mov word [ecx + 0xa], ax
push 0xffffffffffffffff
lea eax, [ebp - 0x850]
push eax
push dword [ebp - 0x864]
call fcn.01002ac1
mov dword [ebp - 0x854], eax
test eax, eax
jne 0x10047e2
mov ax, word [ebp - 0x850]
mov ecx, dword [ebp - 0x858]
mov word [ecx + 0xc], ax
jmp 0x1004776
push 0xffffffffffffffff
lea eax, [ebp - 0x850]
push eax
push dword [ebp - 0x868]
call fcn.01002ac1
mov dword [ebp - 0x854], eax
test eax, eax
jne 0x10047e2
mov ax, word [ebp - 0x850]
mov ecx, dword [ebp - 0x858]
mov word [ecx + 0xa], ax
push 0xffffffffffffffff
lea eax, [ebp - 0x850]
push eax
push dword [ebp - 0x85c]
jmp 0x10046cd
push 0xffffffffffffffff
lea eax, [ebp - 0x850]
push eax
push dword [ebp - 0x868]
call fcn.01002ac1
mov dword [ebp - 0x854], eax
test eax, eax
jne 0x10047e2
mov ax, word [ebp - 0x850]
mov ecx, dword [ebp - 0x858]
mov word [ecx + 0xc], ax
cmp dword [ebp - 0x854], 0
jne 0x10047e2
cmp dword [ebp - 0x870], 0
je 0x10047b3
mov ecx, dword [ebp - 0x858]
movzx eax, word [ecx + 8]
cmp ax, 0xc
jae 0x1004798
add eax, 0xc
mov word [ecx + 8], ax
jmp 0x10047b3
jbe 0x10047b3
lea eax, [ebp - 0x4c]
push eax
movzx eax, word [0x100a3d4]
push 0x237
push eax
call fcn.01003234
add esp, 0xc
cmp dword [ebp - 0x874], 0
je 0x10047e2
mov eax, dword [ebp - 0x858]
cmp word [eax + 8], 0xc
jbe 0x10047e2
lea eax, [ebp - 0x38]
push eax
movzx eax, word [0x100a3d4]
push 0x237
push eax
call fcn.01003234
add esp, 0xc
mov ebx, dword [ebp - 0x860]
xor edi, edi
mov dword [ebp - 0x860], edi
cmp ebx, edi
jne 0x100446d
cmp dword [ebp + 0x10], edi
je 0x1004828
cmp dword [ebp - 0x854], edi
jne 0x1004828
lea eax, [ebp - 0x87c]
push eax
push dword [ebp - 0x858]
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
test eax, eax
jne 0x1004828
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x854], eax
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x854]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01008013
leave
ret 0xc