Function at 0x479e85
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, 0x42f700
test esi, esi
je 0x479ed9
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 0x479ed2
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 0x42f774
push edi
mov ecx, ebx
call dword [sym.imp.MFC42u.dll_CWinApp::GetProfileIntW]
test eax, eax
js 0x479ef3
cmp eax, esi
jle 0x479ef5
mov eax, esi
push 1
push 0x42f758
push edi
mov ecx, ebx
mov dword [ebx + 0x160], eax
call dword [sym.imp.MFC42u.dll_CWinApp::GetProfileIntW]
push 1
push 0x42f744
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 0x42f6f4
push edi
call dword [sym.imp.MFC42u.dll_CWinApp::GetProfileIntW]
test eax, eax
jns 0x479f5e
xor eax, eax
cmp eax, 4
jl 0x479f66
push 3
pop eax
push 0
push 0x42f6cc
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 0x42f6e0
push edi
call dword [sym.imp.MFC42u.dll_CWinApp::GetProfileBinary]
test eax, eax
je 0x479fbd
mov eax, dword [ebp - 8]
test eax, eax
je 0x479fbd
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, 0x42f700
jmp 0x479fd0
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 0x42f710
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 0x42f72c
push edi
call dword [sym.imp.MFC42u.dll_CWinApp::GetProfileBinary]
test eax, eax
je 0x47a021
mov eax, dword [ebp - 8]
test eax, eax
je 0x47a021
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, 0x42f700
jmp 0x47a03c
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 0x47a076
push esi
push 0x42f9b0
push edi
mov ecx, ebx
call dword [sym.imp.MFC42u.dll_CWinApp::GetProfileIntW]
mov ecx, eax
test ecx, ecx
js 0x47a05f
cmp ecx, 0xf
jl 0x47a061
mov ecx, esi
cmp ecx, 3
je 0x47a072
imul eax, ecx, 0x30
cmp dword [eax + 0x4b7448], 0
jne 0x47a074
mov ecx, esi
mov esi, ecx
push 3
mov edx, esi
mov dword [0x4b8210], esi
pop ecx
mov dword [0x4b6c2c], esi
call fcn.00481b10
push eax
push 0x1438
push 0x4b7258
call dword [sym.imp.ntdll.dll_WinSqmSetDWORD]
push 0
push 0x42f9cc
push edi
mov ecx, ebx
call dword [sym.imp.MFC42u.dll_CWinApp::GetProfileIntW]
test eax, eax
je 0x47a0bb
mov dword [ebx + 0x14c], 1
xor edx, edx
push 0xb
inc edx
pop ecx
call fcn.00465b33
pop edi
pop esi
mov dword [ebx + 0x150], eax
pop ebx
mov esp, ebp
pop ebp
ret