Function at 0x479243
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
and dword [ebp - 8], 0
and dword [ebp - 0x10], 0
push ebx
push esi
push edi
mov ebx, ecx
mov byte [ebp - 1], 1
call dword [sym.imp.MFC42u.dll_CWinApp::GetAppRegistryKey]
mov esi, eax
mov edi, 0x42f9d8
test esi, esi
je 0x479297
lea eax, [ebp - 0x14]
push eax
push 0x20019
push 0
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x479290
push dword [ebp - 0x14]
mov byte [ebp - 1], al
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
pop esi
push esi
push 0x42fa4c
push edi
mov ecx, ebx
call dword [sym.imp.MFC42u.dll_CWinApp::GetProfileIntW]
test eax, eax
js 0x4792b1
cmp eax, esi
jle 0x4792b3
mov eax, esi
push 1
push 0x42fa30
push edi
mov ecx, ebx
mov dword [ebx + 0x160], eax
call dword [sym.imp.MFC42u.dll_CWinApp::GetProfileIntW]
push 1
push 0x42fa1c
push edi
mov ecx, ebx
mov dword [ebx + 0x158], eax
call dword [sym.imp.MFC42u.dll_CWinApp::GetProfileIntW]
mov dword [ebx + 0x15c], eax
xor eax, eax
push esi
mov word [ebp - 0xc], ax
lea eax, [ebp - 0xc]
push eax
push 0xd
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor eax, eax
mov ecx, ebx
cmp word [ebp - 0xc], 0x31
setne al
push eax
push 0x42f9cc
push edi
call dword [sym.imp.MFC42u.dll_CWinApp::GetProfileIntW]
test eax, eax
jns 0x47931c
xor eax, eax
cmp eax, 4
jl 0x479324
push 3
pop eax
push 0
push 0x42f9a4
push edi
mov ecx, ebx
mov dword [ebx + 0x1e8], eax
call dword [sym.imp.MFC42u.dll_CWinApp::GetProfileIntW]
mov dword [ebx + 0x138], eax
mov ecx, ebx
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push 0x42f9b8
push edi
call dword [sym.imp.MFC42u.dll_CWinApp::GetProfileBinary]
test eax, eax
je 0x47937b
mov eax, dword [ebp - 8]
test eax, eax
je 0x47937b
mov esi, eax
lea edi, [ebx + 0x128]
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call sub.msvcrt.dll_free
pop ecx
mov edi, 0x42f9d8
jmp 0x47938e
xor eax, eax
push eax
push eax
push eax
push eax
lea eax, [ebx + 0x128]
push eax
call dword [sym.imp.USER32.dll_SetRect]
push 1
push 0x42f9e8
push edi
mov ecx, ebx
call dword [sym.imp.MFC42u.dll_CWinApp::GetProfileIntW]
mov dword [ebx + 0x114], eax
mov ecx, ebx
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push 0x42fa04
push edi
call dword [sym.imp.MFC42u.dll_CWinApp::GetProfileBinary]
test eax, eax
je 0x4793df
mov eax, dword [ebp - 8]
test eax, eax
je 0x4793df
mov esi, eax
lea edi, [ebx + 0x118]
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call sub.msvcrt.dll_free
pop ecx
mov edi, 0x42f9d8
jmp 0x4793fa
mov ecx, 0x5a0
mov eax, 0x708
push ecx
push eax
push ecx
push eax
lea eax, [ebx + 0x118]
push eax
call dword [sym.imp.USER32.dll_SetRect]
cmp byte [ebp - 1], 0
push 5
pop esi
jne 0x479434
push esi
push 0x42fc88
push edi
mov ecx, ebx
call dword [sym.imp.MFC42u.dll_CWinApp::GetProfileIntW]
mov ecx, eax
test ecx, ecx
js 0x47941d
cmp ecx, 0xf
jl 0x47941f
mov ecx, esi
cmp ecx, 3
je 0x479430
imul eax, ecx, 0x30
cmp dword [eax + 0x4b9570], 0
jne 0x479432
mov ecx, esi
mov esi, ecx
push 0
push 0x42fca4
push edi
mov ecx, ebx
mov dword [0x4ba378], esi
mov dword [0x4b8d6c], esi
call dword [sym.imp.MFC42u.dll_CWinApp::GetProfileIntW]
test eax, eax
je 0x47945e
mov dword [ebx + 0x14c], 1
xor edx, edx
push 0xb
inc edx
pop ecx
call fcn.0046676d
pop edi
pop esi
mov dword [ebx + 0x150], eax
pop ebx
leave
ret