Function at 0x1012d2a
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
push esi
push edi
lea eax, [ebp - 0x14]
push eax
xor edi, edi
push 0x20019
push edi
mov esi, 0x10054c4
push esi
mov ebx, ecx
mov dword [ebp - 8], edi
mov dword [ebp - 0x10], edi
mov byte [ebp - 1], 1
call sub.MFC42u.DLL_CWinApp::GetAppRegistryKey
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1012d6f
push dword [ebp - 0x14]
mov byte [ebp - 1], al
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x11
call dword [sym.imp.GDI32.dll_GetStockObject]
cmp eax, edi
jne 0x1012d83
push 0xc
call dword [sym.imp.GDI32.dll_GetStockObject]
lea ecx, [ebx + 0xfc]
push ecx
push 0x5c
push eax
call dword [sym.imp.GDI32.dll_GetObjectW]
push 1
push 0x10054d4
push esi
mov ecx, ebx
call sub.MFC42u.DLL_CWinApp::GetProfileIntW
mov dword [ebx + 0x190], eax
push 2
lea eax, [ebp - 0xc]
push eax
push 0xd
mov word [ebp - 0xc], di
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor eax, eax
cmp word [ebp - 0xc], 0x31
mov ecx, ebx
setne al
push eax
push 0x10054e4
push esi
call sub.MFC42u.DLL_CWinApp::GetProfileIntW
push eax
mov ecx, ebx
call fcn.01012802
push edi
push 0x1005504
push esi
call sub.MFC42u.DLL_CWinApp::GetProfileIntW
mov dword [ebx + 0x17c], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push 0x10054f0
push esi
mov ecx, ebx
call sub.MFC42u.DLL_CWinApp::GetProfileBinary
test eax, eax
je 0x1012e2b
mov esi, dword [ebp - 8]
push dword [ebp - 8]
lea edi, [ebx + 0x16c]
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.MFC42u.DLL_operatordelete
pop ecx
mov esi, 0x10054c4
xor edi, edi
jmp 0x1012e3c
push edi
push edi
push edi
lea eax, [ebx + 0x16c]
push edi
push eax
call dword [sym.imp.USER32.dll_SetRect]
push 1
call dword [sym.imp.USER32.dll_GetSystemMetrics]
push edi
mov dword [ebp - 0x18], eax
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
lea eax, [ebx + 0x16c]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x38]
push eax
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], edi
call dword [sym.imp.USER32.dll_IntersectRect]
mov eax, dword [ebp - 0x30]
sub eax, dword [ebp - 0x38]
cmp eax, 0xa
jl 0x1012e88
mov eax, dword [ebp - 0x2c]
sub eax, dword [ebp - 0x34]
cmp eax, 0xa
jge 0x1012e99
push edi
push edi
push edi
push edi
lea eax, [ebx + 0x16c]
push eax
call dword [sym.imp.USER32.dll_SetRect]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push 0x10054ac
push esi
mov ecx, ebx
call sub.MFC42u.DLL_CWinApp::GetProfileBinary
test eax, eax
je 0x1012ed1
mov esi, dword [ebp - 8]
push dword [ebp - 8]
lea edi, [ebx + 0x15c]
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.MFC42u.DLL_operatordelete
pop ecx
mov esi, 0x10054c4
xor edi, edi
jmp 0x1012eec
mov ecx, 0x5a0
push ecx
mov eax, 0x708
push eax
push ecx
push eax
lea eax, [ebx + 0x15c]
push eax
call dword [sym.imp.USER32.dll_SetRect]
cmp byte [ebp - 1], 0
push 5
pop eax
jne 0x1012f0c
push 3
push 3
push 0x1005d14
push esi
mov ecx, ebx
call sub.MFC42u.DLL_CWinApp::GetProfileIntW
push eax
call fcn.01012c66
push edi
push 0x1005cec
push esi
mov ecx, ebx
mov dword [0x1024640], eax
mov dword [0x1023c58], eax
call sub.MFC42u.DLL_CWinApp::GetProfileIntW
test eax, eax
je 0x1012f32
mov dword [ebx + 0x198], 1
push 1
push dword [0x1023c58]
call fcn.0100a260
push 0x100546c
lea ecx, [ebx + 0x1a4]
mov dword [ebx + 0x19c], eax
call fcn.0100fd3f
push 0x1005478
lea ecx, [ebx + 0x25c]
call fcn.0100fd3f
push 0x1005480
lea ecx, [ebx + 0x314]
call fcn.0100fd3f
push 0x100548c
lea ecx, [ebx + 0x3cc]
call fcn.0100fd3f
push 0x1005498
lea ecx, [ebx + 0x484]
call fcn.0100fd3f
pop edi
pop esi
pop ebx
leave
ret