Function at 0x24567a1e
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
push ebx
push esi
push edi
push 0x24570568
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [0x24570528]
mov eax, dword [0x24570078]
xor ebx, ebx
cmp edi, ebx
je 0x24567a58
cmp dword [ebp + 8], ebx
je 0x24567c0a
cmp dword [ebp + 8], eax
je 0x24567c0a
cmp word [0x2456e0e4], bx
je 0x24567c0a
cmp dword [ebp + 8], ebx
jne 0x24567a6d
mov dword [ebp + 8], eax
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea eax, [ebp - 8]
push 5
push eax
push 3
push dword [ebp + 8]
call esi
cmp eax, ebx
je 0x24567c0a
mov ebx, 0x104
lea eax, [ebp - 0x314]
push ebx
push eax
push 0x3e9
push dword [0x2457052c]
call dword [sym.imp.USER32.dll_LoadStringA]
test eax, eax
je 0x24567c0a
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x314]
push eax
lea eax, [ebp - 0x210]
push 0x245703ec
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x418]
push ebx
push eax
push dword [0x2457052c]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x418]
push eax
call fcn.245679d9
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
add esp, 0xc
lea eax, [ebp - 0x10c]
push eax
call ebx
mov edi, eax
test edi, edi
jne 0x24567c0c
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 2
jle 0x24567b73
lea eax, [ebp - 8]
and byte [ebp - 6], 0
push eax
lea eax, [ebp - 0x314]
push eax
lea eax, [ebp - 0x210]
push str._s_s.DLL
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x418]
push eax
call fcn.245679d9
add esp, 0xc
lea eax, [ebp - 0x10c]
push eax
call ebx
mov edi, eax
test edi, edi
jne 0x24567c0c
lea eax, [ebp - 8]
push 5
push eax
mov eax, dword [0x24570078]
and eax, 0x3ff
push 3
or ah, 4
push eax
call esi
test eax, eax
je 0x24567c0a
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebp + eax - 0x10c]
lea esi, [ebp - 8]
lea edi, [eax - 7]
lea eax, [ebp - 0x10c]
movsw word es:[edi], word [esi]
push eax
movsb byte es:[edi], byte [esi]
call ebx
mov edi, eax
test edi, edi
jne 0x24567c0c
lea eax, [ebp - 0x314]
push eax
lea eax, [ebp - 0x210]
push dword [ebp + 8]
push str._u_s.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x418]
push eax
call fcn.245679d9
add esp, 0xc
lea eax, [ebp - 0x10c]
push eax
call ebx
mov edi, eax
test edi, edi
mov eax, dword [0x2457052c]
jne 0x24567c15
mov edi, eax
cmp dword [0x24570528], 0
mov ebx, dword [ebp + 8]
jne 0x24567c33
test ebx, ebx
je 0x24567c2d
cmp ebx, dword [0x24570078]
jne 0x24567c33
mov dword [0x24570528], edi
cmp dword [0x245705a0], 0
je 0x24567c48
cmp ebx, dword [0x24570078]
je 0x24567ca2
test ebx, ebx
je 0x24567ca2
push 1
cmp edi, eax
pop esi
je 0x24567c90
lea eax, [ebp - 0x10c]
push 0x104
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x10c]
push esi
push eax
call fcn.24567cb6
cmp eax, 0xffffffff
je 0x24567c78
cmp eax, esi
jne 0x24567c90
mov eax, dword [0x2457052c]
test ebx, ebx
mov edi, eax
je 0x24567c8b
cmp ebx, dword [0x24570078]
jne 0x24567c90
mov dword [0x24570528], eax
test ebx, ebx
je 0x24567c9c
cmp ebx, dword [0x24570078]
jne 0x24567ca2
mov dword [0x245705a0], esi
push 0x24570568
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 4