Function at 0x506a00
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x506e10
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10c
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x18], edi
mov edx, dword [ebp + 8]
mov al, byte [ebp + 0xc]
cmp edx, dword [ecx + 0xf5150]
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x14], ecx
jne 0x506a57
mov edx, dword [ebp + 8]
cmp edx, 2
je 0x506a57
test al, al
jne 0x506a57
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
mov edx, dword [ebp + 8]
test edx, edx
je 0x506bcf
mov edx, dword [ebp + 8]
cmp edx, 1
jne 0x506a9e
mov eax, ecx
mov eax, dword [eax + 0xf5158]
test eax, eax
je 0x506a7c
push eax
call sub.MFC42.DLL_AfxFreeLibrary
mov eax, dword [ebp - 0x14]
mov dword [eax + 0xf5158], 0
call sub.MFC42.DLL_AfxGetModuleState
mov ebx, dword [eax + 8]
call sub.MFC42.DLL_AfxGetModuleState
mov dword [eax + 0xc], ebx
jmp 0x506c20
mov edx, dword [ebp + 8]
cmp edx, 2
jne 0x506c20
test al, al
jne 0x506b79
lea ecx, [ebp - 0x10c]
push 0
call fcn.004d9ef0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x10c]
lea ecx, [ebp - 0x10c]
call dword [eax + 0xc0]
test eax, eax
je 0x506b19
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx + 0xf5154]
push eax
call fcn.005068e0
mov ebx, eax
test ebx, ebx
je 0x506c9f
call sub.MFC42.DLL_AfxGetModuleState
mov dword [eax + 0xc], ebx
mov edx, dword [ebp - 0x14]
mov edx, dword [edx + 0xf5158]
test edx, edx
je 0x506b10
push edx
call sub.MFC42.DLL_AfxFreeLibrary
mov edx, dword [ebp - 0x14]
mov dword [edx + 0xf5158], ebx
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x10c]
mov dword [ebp - 0x110], eax
mov dword [ebp - 4], 4
mov dword [ebp - 4], 5
mov dword [ebp - 4], 6
mov dword [ebp - 4], 5
lea ecx, [ebp - 0x6c]
call sub.MFC42.DLL_CStatic::CStatic
mov dword [ebp - 4], 4
lea ecx, [ebp - 0xac]
call sub.MFC42.DLL_CEdit::CEdit
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10c]
call sub.MFC42.DLL_CDialog::CDialog
jmp 0x506c20
mov eax, ecx
mov eax, dword [eax + 0xf5154]
mov edx, dword [eax - 8]
test edx, edx
jne 0x506b98
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
push eax
call fcn.005068e0
mov ebx, eax
test ebx, ebx
je 0x506d64
call sub.MFC42.DLL_AfxGetModuleState
mov dword [eax + 0xc], ebx
mov edx, dword [ebp - 0x14]
mov edx, dword [edx + 0xf5158]
test edx, edx
je 0x506bc4
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edx, dword [ebp - 0x14]
mov dword [edx + 0xf5158], ebx
jmp 0x506c20
lea eax, [ebp - 0x2c]
push 0xa
push eax
push 3
push 0x800
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x506c44
lea eax, [ebp - 0x2c]
mov ecx, dword [ebp - 0x14]
push eax
call fcn.005068e0
mov ebx, eax
test ebx, ebx
je 0x506da1
call sub.MFC42.DLL_AfxGetModuleState
mov dword [eax + 0xc], ebx
mov edx, dword [ebp - 0x14]
mov edx, dword [edx + 0xf5158]
test edx, edx
je 0x506c17
push edx
call sub.MFC42.DLL_AfxFreeLibrary
mov edx, dword [ebp - 0x14]
mov dword [edx + 0xf5158], ebx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0xf5150], eax
call fcn.00505940
mov ebx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
push 0x792cc0
push 0x442
call fcn.005041f0
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
add esp, 0xfffffff0
mov eax, dword [ebp - 0x14]
add eax, 0xf5154
mov dword [esp], 0x441
lea ecx, [esp + 8]
mov edx, dword [eax]
mov dword [esp + 4], 0x792ca0
mov dword [ecx], edx
call fcn.005041f0
add esp, 0x10
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x10c]
mov dword [ebp - 0x118], eax
mov dword [ebp - 4], 1
mov dword [ebp - 4], 2
mov dword [ebp - 4], 3
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x6c]
call sub.MFC42.DLL_CStatic::CStatic
mov dword [ebp - 4], 1
lea ecx, [ebp - 0xac]
call sub.MFC42.DLL_CEdit::CEdit
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10c]
call sub.MFC42.DLL_CDialog::CDialog
mov ebx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
add esp, 0xfffffff0
mov eax, dword [ebp - 0x14]
add eax, 0xf5154
mov dword [esp], 0x441
lea ecx, [esp + 8]
mov edx, dword [eax]
mov dword [esp + 4], 0x792ca0
mov dword [ecx], edx
call fcn.005041f0
add esp, 0x10
mov ebx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
and eax, 0x3ff
lea edx, [ebp - 0x2c]
push 0xa
push edx
push 3
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x506bfc
lea eax, [ebp - 0x2c]
mov ecx, dword [ebp - 0x14]
push eax
call fcn.005068e0
mov ebx, eax
test ebx, ebx
jne 0x506bfc
lea eax, [ebp - 0x2c]
push esp
push eax
push 0x792ca0
push 0x441
call fcn.005041f0
add esp, 0x10
mov ebx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8