Function at 0x24d9a75f
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
push ebx
push esi
push edi
push 0x24d9fca8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [0x24d9fc68]
mov eax, dword [0x24d9f53c]
xor ebx, ebx
cmp edi, ebx
je 0x24d9a799
cmp dword [ebp + 8], ebx
je 0x24d9a94b
cmp dword [ebp + 8], eax
je 0x24d9a94b
cmp word [0x24d917b0], bx
je 0x24d9a94b
cmp dword [ebp + 8], ebx
jne 0x24d9a7ae
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 0x24d9a94b
mov ebx, 0x104
lea eax, [ebp - 0x314]
push ebx
push eax
push 0x3e9
push dword [0x24d9fc6c]
call dword [sym.imp.USER32.dll_LoadStringA]
test eax, eax
je 0x24d9a94b
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x314]
push eax
lea eax, [ebp - 0x210]
push 0x24d9f918
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x418]
push ebx
push eax
push dword [0x24d9fc6c]
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.24d9a71a
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 0x24d9a94d
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 2
jle 0x24d9a8b4
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.24d9a71a
add esp, 0xc
lea eax, [ebp - 0x10c]
push eax
call ebx
mov edi, eax
test edi, edi
jne 0x24d9a94d
lea eax, [ebp - 8]
push 5
push eax
mov eax, dword [0x24d9f53c]
and eax, 0x3ff
push 3
or ah, 4
push eax
call esi
test eax, eax
je 0x24d9a94b
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 0x24d9a94d
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.24d9a71a
add esp, 0xc
lea eax, [ebp - 0x10c]
push eax
call ebx
mov edi, eax
test edi, edi
mov eax, dword [0x24d9fc6c]
jne 0x24d9a956
mov edi, eax
cmp dword [0x24d9fc68], 0
mov ebx, dword [ebp + 8]
jne 0x24d9a974
test ebx, ebx
je 0x24d9a96e
cmp ebx, dword [0x24d9f53c]
jne 0x24d9a974
mov dword [0x24d9fc68], edi
cmp dword [0x24d9fcdc], 0
je 0x24d9a989
cmp ebx, dword [0x24d9f53c]
je 0x24d9a9e3
test ebx, ebx
je 0x24d9a9e3
push 1
cmp edi, eax
pop esi
je 0x24d9a9d1
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.24d9a9f7
cmp eax, 0xffffffff
je 0x24d9a9b9
cmp eax, esi
jne 0x24d9a9d1
mov eax, dword [0x24d9fc6c]
test ebx, ebx
mov edi, eax
je 0x24d9a9cc
cmp ebx, dword [0x24d9f53c]
jne 0x24d9a9d1
mov dword [0x24d9fc68], eax
test ebx, ebx
je 0x24d9a9dd
cmp ebx, dword [0x24d9f53c]
jne 0x24d9a9e3
mov dword [0x24d9fcdc], esi
push 0x24d9fca8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 4