Function at 0x1004339
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x87c
mov eax, dword [0x1009428]
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, 0x1001484
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, 0x100147c
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 0x10043e9
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 0x100440d
lea eax, [ebp - 0x84c]
push eax
push 9
lea eax, [ebp - 0x38]
push eax
call fcn.0100262c
push 9
lea eax, [ebp - 0x84c]
push eax
push 0x29
push esi
call edi
cmp eax, ebx
jle 0x1004431
lea eax, [ebp - 0x84c]
push eax
push 9
lea eax, [ebp - 0x4c]
push eax
call fcn.0100262c
push 8
lea eax, [ebp - 0x84c]
push eax
push 0x1e
push esi
call edi
cmp eax, ebx
jle 0x1004455
lea eax, [ebp - 0x84c]
push eax
push 8
lea eax, [ebp - 0x24]
push eax
call fcn.0100262c
push 8
lea eax, [ebp - 0x84c]
push eax
push 0x1d
push esi
call edi
cmp eax, ebx
jle 0x1004479
lea eax, [ebp - 0x84c]
push eax
push 8
lea eax, [ebp - 0x14]
push eax
call fcn.0100262c
push dword [ebp - 0x860]
lea eax, [ebp - 0x84c]
push esi
push eax
call fcn.0100262c
mov esi, dword [sym.imp.msvcrt.dll_wcstok]
mov dword [ebp - 0x854], eax
mov edi, 0x1001474
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 0x1004840
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 0x10045f8
mov eax, dword [ebp - 0x86c]
sub eax, edi
je 0x1004522
dec eax
je 0x100450d
dec eax
jne 0x10045a1
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 0x1004542
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 0x1004534
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 0x1004573
push 0xffffffffffffffff
lea eax, [ebp - 0x850]
push eax
push ebx
call fcn.01002b11
mov dword [ebp - 0x854], eax
test eax, eax
jne 0x1004573
mov ax, word [ebp - 0x850]
mov ecx, dword [ebp - 0x858]
mov word [ecx + 2], ax
test edi, edi
je 0x10045a1
push 0xffffffffffffffff
lea eax, [ebp - 0x850]
push eax
push edi
call fcn.01002b11
mov dword [ebp - 0x854], eax
test eax, eax
jne 0x10045a1
mov ax, word [ebp - 0x850]
mov ecx, dword [ebp - 0x858]
mov word [ecx + 6], ax
cmp dword [ebp - 0x85c], 0
je 0x1004832
push 0xffffffffffffffff
lea eax, [ebp - 0x850]
push eax
push dword [ebp - 0x85c]
call fcn.01002b11
mov dword [ebp - 0x854], eax
test eax, eax
jne 0x1004832
cmp dword [ebp - 0x850], 0x64
jae 0x10045e3
add dword [ebp - 0x850], 0x7d0
mov ax, word [ebp - 0x850]
mov ecx, dword [ebp - 0x858]
mov word [ecx], ax
jmp 0x1004832
lea eax, [ebp - 0x4c]
push eax
push ebx
mov dword [ebp - 0x864], edi
call fcn.010042a9
mov dword [ebp - 0x870], eax
lea eax, [ebp - 0x38]
push eax
push ebx
call fcn.010042a9
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 0x100464b
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, 0x1001470
jmp 0x1004656
mov ebx, 0x1001470
mov dword [ebp - 0x868], ebx
cmp dword [ebp - 0x85c], 0
je 0x1004672
lea eax, [ebp - 0x24]
push eax
push 0
inc edi
call esi
pop ecx
pop ecx
mov dword [ebp - 0x864], eax
jmp 0x1004678
mov dword [ebp - 0x85c], ebx
cmp dword [ebp - 0x864], 0
je 0x1004684
inc edi
jmp 0x100468a
mov dword [ebp - 0x864], ebx
cmp dword [ebp + 0x10], 0
je 0x1004693
push 3
pop edi
dec edi
je 0x100478a
dec edi
je 0x1004746
dec edi
jne 0x10047bd
push 0xffffffffffffffff
lea eax, [ebp - 0x850]
push eax
push dword [ebp - 0x868]
call fcn.01002b11
mov dword [ebp - 0x854], eax
test eax, eax
jne 0x1004832
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.01002b11
mov dword [ebp - 0x854], eax
test eax, eax
jne 0x1004832
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.01002b11
mov dword [ebp - 0x854], eax
test eax, eax
jne 0x1004832
mov ax, word [ebp - 0x850]
mov ecx, dword [ebp - 0x858]
mov word [ecx + 0xc], ax
jmp 0x10047c6
push 0xffffffffffffffff
lea eax, [ebp - 0x850]
push eax
push dword [ebp - 0x868]
call fcn.01002b11
mov dword [ebp - 0x854], eax
test eax, eax
jne 0x1004832
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 0x100471d
push 0xffffffffffffffff
lea eax, [ebp - 0x850]
push eax
push dword [ebp - 0x868]
call fcn.01002b11
mov dword [ebp - 0x854], eax
test eax, eax
jne 0x1004832
mov ax, word [ebp - 0x850]
mov ecx, dword [ebp - 0x858]
mov word [ecx + 0xc], ax
cmp dword [ebp - 0x854], 0
jne 0x1004832
cmp dword [ebp - 0x870], 0
je 0x1004803
mov ecx, dword [ebp - 0x858]
movzx eax, word [ecx + 8]
cmp ax, 0xc
jae 0x10047e8
add eax, 0xc
mov word [ecx + 8], ax
jmp 0x1004803
jbe 0x1004803
lea eax, [ebp - 0x4c]
push eax
movzx eax, word [0x1009454]
push 0x237
push eax
call fcn.01003284
add esp, 0xc
cmp dword [ebp - 0x874], 0
je 0x1004832
mov eax, dword [ebp - 0x858]
cmp word [eax + 8], 0xc
jbe 0x1004832
lea eax, [ebp - 0x38]
push eax
movzx eax, word [0x1009454]
push 0x237
push eax
call fcn.01003284
add esp, 0xc
mov ebx, dword [ebp - 0x860]
xor edi, edi
mov dword [ebp - 0x860], edi
cmp ebx, edi
jne 0x10044bd
cmp dword [ebp + 0x10], edi
je 0x1004878
cmp dword [ebp - 0x854], edi
jne 0x1004878
lea eax, [ebp - 0x87c]
push eax
push dword [ebp - 0x858]
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
test eax, eax
jne 0x1004878
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.0100741c
leave
ret 0xc