Function at 0x3163dcc3
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x830
push ebx
push esi
push edi
push 0x3164933c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x31649330]
xor ecx, ecx
mov dword [ebp - 4], eax
cmp eax, ecx
mov eax, dword [0x31649170]
je 0x3163dcff
cmp dword [ebp + 8], ecx
je 0x3163debf
cmp dword [ebp + 8], eax
je 0x3163debf
cmp word [0x316454e8], cx
je 0x3163debf
cmp dword [ebp + 8], ecx
jne 0x3163dd14
mov dword [ebp + 8], eax
push 5
lea eax, [ebp - 0x10]
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x3163debf
mov esi, 0x104
push esi
lea eax, [ebp - 0x628]
push eax
push 0x3e9
push dword [0x31649354]
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x3163debf
mov ebx, dword [sym.imp.SHLWAPI.dll_wnsprintfW]
lea eax, [ebp - 0x628]
push eax
push 0x31646524
lea eax, [ebp - 0x218]
push esi
push eax
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
add esp, 0x10
lea eax, [ebp - 0x10]
push eax
push 0x3164652c
lea eax, [ebp - 0x218]
push eax
call edi
mov ecx, esi
sub ecx, eax
push ecx
lea eax, [ebp - 0x218]
push eax
call edi
lea eax, [ebp + eax*2 - 0x218]
push eax
call ebx
add esp, 0x10
push esi
lea eax, [ebp - 0x830]
push eax
push dword [0x31649354]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push esi
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x830]
push eax
call fcn.3163dc68
add esp, 0x10
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
mov dword [ebp - 4], eax
jne 0x3163decd
lea eax, [ebp - 0x10]
push eax
call edi
cmp eax, 2
jle 0x3163de74
and word [ebp - 0xc], 0
lea eax, [ebp - 0x628]
push eax
push 0x3164653c
lea eax, [ebp - 0x218]
push esi
push eax
call ebx
add esp, 0x10
lea eax, [ebp - 0x10]
push eax
push str._s.DLL
lea eax, [ebp - 0x218]
push eax
call edi
mov ecx, esi
sub ecx, eax
push ecx
lea eax, [ebp - 0x218]
push eax
call edi
lea eax, [ebp + eax*2 - 0x218]
push eax
call ebx
push esi
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x830]
push eax
call fcn.3163dc68
add esp, 0x20
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
mov dword [ebp - 4], eax
jne 0x3163decd
mov eax, dword [0x31649170]
push 5
lea ecx, [ebp - 0x10]
push ecx
and eax, 0x3ff
or eax, 0x400
push 3
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x3163dec5
lea eax, [ebp - 0x420]
push eax
call edi
lea eax, [ebp + eax*2 - 0x420]
lea edi, [eax - 0xe]
lea esi, [ebp - 0x10]
movsw word es:[edi], word [esi]
lea eax, [ebp - 0x420]
push eax
movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x3163decd
mov eax, dword [0x31649354]
mov dword [ebp - 4], eax
cmp dword [0x31649330], 0
pop edi
pop esi
pop ebx
jne 0x3163def0
mov eax, dword [ebp + 8]
test eax, eax
je 0x3163dee8
cmp eax, dword [0x31649170]
jne 0x3163def0
mov eax, dword [ebp - 4]
mov dword [0x31649330], eax
push 0x3164933c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 4]
leave
ret