Function at 0x217a4531
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
push ebx
push esi
push edi
push 0x217b3020
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [0x217b300c]
mov eax, dword [0x217b3708]
xor ebx, ebx
cmp edi, ebx
jne 0x217a69a3
cmp word [0x217a42a8], bx
je 0x217a470f
cmp dword [ebp + 8], ebx
jne 0x217a4572
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 0x217a470f
mov ebx, 0x104
lea eax, [ebp - 0x314]
push ebx
push eax
push 0x3e9
push dword [0x217b3010]
call dword [sym.imp.USER32.dll_LoadStringA]
test eax, eax
je 0x217a470f
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x314]
push eax
lea eax, [ebp - 0x210]
push 0x217b3764
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x418]
push ebx
push eax
push dword [0x217b3010]
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.217a4776
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 0x217a4711
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 2
jle 0x217a4678
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.217a4776
add esp, 0xc
lea eax, [ebp - 0x10c]
push eax
call ebx
mov edi, eax
test edi, edi
jne 0x217a4711
lea eax, [ebp - 8]
push 5
push eax
mov eax, dword [0x217b3708]
and eax, 0x3ff
push 3
or ah, 4
push eax
call esi
test eax, eax
je 0x217a470f
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 0x217a4711
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.217a4776
add esp, 0xc
lea eax, [ebp - 0x10c]
push eax
call ebx
mov edi, eax
test edi, edi
mov eax, dword [0x217b3010]
jne 0x217a471a
mov edi, eax
cmp dword [0x217b300c], 0
mov ebx, dword [ebp + 8]
jne 0x217a4738
test ebx, ebx
je 0x217a4732
cmp ebx, dword [0x217b3708]
jne 0x217a4738
mov dword [0x217b300c], edi
cmp dword [0x217b3788], 0
jne 0x217a69ba
push 1
cmp edi, eax
pop esi
jne 0x217a69d3
test ebx, ebx
je 0x217a475c
cmp ebx, dword [0x217b3708]
jne 0x217a4762
mov dword [0x217b3788], esi
push 0x217b3020
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 4
cmp dword [ebp + 8], ebx
je 0x217a470f
cmp dword [ebp + 8], eax
jne 0x217a455d
jmp 0x217a470f
cmp ebx, dword [0x217b3708]
je 0x217a4762
test ebx, ebx
jne 0x217a4745
jmp 0x217a4762
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.217ad70c
cmp eax, 0xffffffff
je 0x217a6a00
cmp eax, esi
jne 0x217a4750
mov eax, dword [0x217b3010]
test ebx, ebx
mov edi, eax
je 0x217a6a17
cmp ebx, dword [0x217b3708]
jne 0x217a4750
mov dword [0x217b300c], eax
jmp 0x217a4750