Function at 0x217a45f9
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
push ebx
push esi
push edi
push 0x217b3008
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [0x217b31a0]
mov eax, dword [0x217b3700]
xor ebx, ebx
cmp edi, ebx
jne 0x217a683d
cmp word [0x217a4370], bx
je 0x217a47d7
cmp dword [ebp + 8], ebx
jne 0x217a463a
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 0x217a47d7
mov ebx, 0x104
lea eax, [ebp - 0x314]
push ebx
push eax
push 0x3e9
push dword [0x217b31a4]
call dword [sym.imp.USER32.dll_LoadStringA]
test eax, eax
je 0x217a47d7
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x314]
push eax
lea eax, [ebp - 0x210]
push 0x217b3740
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x418]
push ebx
push eax
push dword [0x217b31a4]
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.217a483e
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 0x217a47d9
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 2
jle 0x217a4740
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.217a483e
add esp, 0xc
lea eax, [ebp - 0x10c]
push eax
call ebx
mov edi, eax
test edi, edi
jne 0x217a47d9
lea eax, [ebp - 8]
push 5
push eax
mov eax, dword [0x217b3700]
and eax, 0x3ff
push 3
or ah, 4
push eax
call esi
test eax, eax
je 0x217a47d7
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 0x217a47d9
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.217a483e
add esp, 0xc
lea eax, [ebp - 0x10c]
push eax
call ebx
mov edi, eax
test edi, edi
mov eax, dword [0x217b31a4]
jne 0x217a47e2
mov edi, eax
cmp dword [0x217b31a0], 0
mov ebx, dword [ebp + 8]
jne 0x217a4800
test ebx, ebx
je 0x217a47fa
cmp ebx, dword [0x217b3700]
jne 0x217a4800
mov dword [0x217b31a0], edi
cmp dword [0x217b3764], 0
jne 0x217a6854
push 1
cmp edi, eax
pop esi
jne 0x217a686d
test ebx, ebx
je 0x217a4824
cmp ebx, dword [0x217b3700]
jne 0x217a482a
mov dword [0x217b3764], esi
push 0x217b3008
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 0x217a47d7
cmp dword [ebp + 8], eax
jne 0x217a4625
jmp 0x217a47d7
cmp ebx, dword [0x217b3700]
je 0x217a482a
test ebx, ebx
jne 0x217a480d
jmp 0x217a482a
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.217ad86a
cmp eax, 0xffffffff
je 0x217a689a
cmp eax, esi
jne 0x217a4818
mov eax, dword [0x217b31a4]
test ebx, ebx
mov edi, eax
je 0x217a68b1
cmp ebx, dword [0x217b3700]
jne 0x217a4818
mov dword [0x217b31a0], eax
jmp 0x217a4818