Function at 0x100476c
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x880
mov eax, dword [0x100bb2c]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x864], eax
xor eax, eax
mov esi, 0x10015bc
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, 0x10015b4
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 - 0x870], 0
and dword [ebp - 0x854], 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 - 0x85c], ecx
call edi
cmp eax, 1
jle 0x100481f
lea eax, [ebp - 0x84c]
push eax
call dword [sym.imp.msvcrt.dll__wtoi]
pop ecx
mov dword [ebp - 0x870], eax
push 9
lea eax, [ebp - 0x84c]
push eax
push 0x28
push esi
call edi
cmp eax, 1
mov ebx, dword [sym.imp.msvcrt.dll_wcsncpy]
jle 0x100484a
push 9
lea eax, [ebp - 0x84c]
push eax
lea eax, [ebp - 0x38]
push eax
call ebx
add esp, 0xc
push 9
lea eax, [ebp - 0x84c]
push eax
push 0x29
push esi
call edi
cmp eax, 1
jle 0x100486f
push 9
lea eax, [ebp - 0x84c]
push eax
lea eax, [ebp - 0x4c]
push eax
call ebx
add esp, 0xc
push 8
lea eax, [ebp - 0x84c]
push eax
push 0x1e
push esi
call edi
cmp eax, 1
jle 0x1004894
push 8
lea eax, [ebp - 0x84c]
push eax
lea eax, [ebp - 0x24]
push eax
call ebx
add esp, 0xc
push 8
lea eax, [ebp - 0x84c]
push eax
push 0x1d
push esi
call edi
cmp eax, 1
jle 0x10048b9
push 8
lea eax, [ebp - 0x84c]
push eax
lea eax, [ebp - 0x14]
push eax
call ebx
add esp, 0xc
push esi
push dword [ebp - 0x864]
lea eax, [ebp - 0x84c]
push eax
call ebx
mov esi, dword [sym.imp.msvcrt.dll_wcstok]
and word [ebp - 0x4e], 0
mov edi, 0x10015ac
lea eax, [ebp - 0x84c]
push edi
push eax
call esi
push edi
push 0
mov ebx, eax
call esi
add esp, 0x1c
test ebx, ebx
mov dword [ebp - 0x864], eax
je 0x1004c8e
mov edi, 0xffff
lea eax, [ebp - 0x14]
push eax
push ebx
call dword [sym.imp.msvcrt.dll_wcsstr]
test eax, eax
pop ecx
pop ecx
je 0x1004a40
mov eax, dword [ebp - 0x870]
and dword [ebp - 0x858], 0
sub eax, 0
je 0x1004971
dec eax
je 0x1004958
dec eax
jne 0x10049fd
lea eax, [ebp - 0x14]
push eax
push ebx
call esi
mov dword [ebp - 0x858], eax
lea eax, [ebp - 0x14]
push eax
push 0
call esi
mov ebx, eax
lea eax, [ebp - 0x14]
push eax
push 0
call esi
mov dword [ebp - 0x860], eax
jmp 0x1004996
lea eax, [ebp - 0x14]
push eax
push ebx
call esi
mov dword [ebp - 0x860], eax
lea eax, [ebp - 0x14]
push eax
push 0
call esi
mov ebx, eax
jmp 0x1004988
lea eax, [ebp - 0x14]
push eax
push ebx
call esi
mov ebx, eax
lea eax, [ebp - 0x14]
push eax
push 0
call esi
mov dword [ebp - 0x860], eax
lea eax, [ebp - 0x14]
push eax
push 0
call esi
mov dword [ebp - 0x858], eax
add esp, 0x18
test ebx, ebx
je 0x10049c6
push edi
lea eax, [ebp - 0x850]
push eax
push ebx
call fcn.01001fba
test eax, eax
mov dword [ebp - 0x854], eax
jne 0x10049c6
mov ax, word [ebp - 0x850]
mov ecx, dword [ebp - 0x85c]
mov word [ecx + 2], ax
cmp dword [ebp - 0x860], 0
je 0x10049fd
push edi
lea eax, [ebp - 0x850]
push eax
push dword [ebp - 0x860]
call fcn.01001fba
test eax, eax
mov dword [ebp - 0x854], eax
jne 0x10049fd
mov ax, word [ebp - 0x850]
mov ecx, dword [ebp - 0x85c]
mov word [ecx + 6], ax
cmp dword [ebp - 0x858], 0
je 0x1004c79
push edi
lea eax, [ebp - 0x850]
push eax
push dword [ebp - 0x858]
call fcn.01001fba
test eax, eax
mov dword [ebp - 0x854], eax
jne 0x1004c79
mov ax, word [ebp - 0x850]
mov ecx, dword [ebp - 0x85c]
mov word [ecx], ax
jmp 0x1004c79
xor eax, eax
mov dword [ebp - 0x860], eax
mov dword [ebp - 0x868], eax
mov dword [ebp - 0x858], eax
lea eax, [ebp - 0x4c]
push eax
push ebx
call fcn.01002e93
mov dword [ebp - 0x874], eax
lea eax, [ebp - 0x38]
push eax
push ebx
call fcn.01002e93
mov dword [ebp - 0x878], eax
lea eax, [ebp - 0x24]
push eax
push ebx
call esi
test eax, eax
pop ecx
pop ecx
mov dword [ebp - 0x86c], eax
je 0x1004aa8
lea eax, [ebp - 0x24]
push eax
push 0
mov dword [ebp - 0x858], 1
call esi
pop ecx
pop ecx
mov dword [ebp - 0x860], eax
mov ebx, 0x10015a8
jmp 0x1004ab3
mov ebx, 0x10015a8
mov dword [ebp - 0x86c], ebx
cmp dword [ebp - 0x860], 0
je 0x1004ad4
inc dword [ebp - 0x858]
lea eax, [ebp - 0x24]
push eax
push 0
call esi
pop ecx
pop ecx
mov dword [ebp - 0x868], eax
jmp 0x1004ada
mov dword [ebp - 0x860], ebx
cmp dword [ebp - 0x868], 0
je 0x1004aeb
inc dword [ebp - 0x858]
jmp 0x1004af1
mov dword [ebp - 0x868], ebx
cmp dword [ebp + 0x10], 0
je 0x1004b01
mov dword [ebp - 0x858], 3
mov eax, dword [ebp - 0x858]
dec eax
je 0x1004bce
dec eax
je 0x1004b8c
dec eax
jne 0x1004c00
push edi
lea eax, [ebp - 0x850]
push eax
push dword [ebp - 0x86c]
call fcn.01001fba
test eax, eax
mov dword [ebp - 0x854], eax
jne 0x1004c79
mov ax, word [ebp - 0x850]
mov ecx, dword [ebp - 0x85c]
mov word [ecx + 8], ax
push edi
lea eax, [ebp - 0x850]
push eax
push dword [ebp - 0x860]
call fcn.01001fba
test eax, eax
mov dword [ebp - 0x854], eax
jne 0x1004c79
mov ax, word [ebp - 0x850]
mov ecx, dword [ebp - 0x85c]
mov word [ecx + 0xa], ax
push edi
lea eax, [ebp - 0x850]
push eax
push dword [ebp - 0x868]
jmp 0x1004bdc
push edi
lea eax, [ebp - 0x850]
push eax
push dword [ebp - 0x86c]
call fcn.01001fba
test eax, eax
mov dword [ebp - 0x854], eax
jne 0x1004c79
mov ax, word [ebp - 0x850]
mov ecx, dword [ebp - 0x85c]
mov word [ecx + 0xa], ax
push edi
lea eax, [ebp - 0x850]
push eax
push dword [ebp - 0x860]
jmp 0x1004bdc
push edi
lea eax, [ebp - 0x850]
push eax
push dword [ebp - 0x86c]
call fcn.01001fba
test eax, eax
mov dword [ebp - 0x854], eax
jne 0x1004c79
mov ax, word [ebp - 0x850]
mov ecx, dword [ebp - 0x85c]
mov word [ecx + 0xc], ax
cmp dword [ebp - 0x854], 0
jne 0x1004c79
cmp dword [ebp - 0x874], 0
je 0x1004c49
mov ecx, dword [ebp - 0x85c]
xor eax, eax
mov ax, word [ecx + 8]
cmp ax, 0xc
jae 0x1004c2d
add eax, 0xc
mov word [ecx + 8], ax
jmp 0x1004c49
jbe 0x1004c49
lea eax, [ebp - 0x4c]
push eax
xor eax, eax
mov ax, word [0x100c344]
push 0x237
push eax
call fcn.010039e7
add esp, 0xc
cmp dword [ebp - 0x878], 0
je 0x1004c79
mov eax, dword [ebp - 0x85c]
cmp word [eax + 8], 0xc
jbe 0x1004c79
lea eax, [ebp - 0x38]
push eax
xor eax, eax
mov ax, word [0x100c344]
push 0x237
push eax
call fcn.010039e7
add esp, 0xc
mov ebx, dword [ebp - 0x864]
and dword [ebp - 0x864], 0
test ebx, ebx
jne 0x1004900
cmp dword [ebp + 0x10], 0
pop edi
pop esi
pop ebx
je 0x1004cc3
cmp dword [ebp - 0x854], 0
jne 0x1004cc3
lea eax, [ebp - 0x880]
push eax
push dword [ebp - 0x85c]
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
test eax, eax
jne 0x1004cc3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x854], eax
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x854]
call fcn.01009ab2
leave
ret 0xc