Function at 0x1044fc6
Capabilities:
Get geographical location

Disassembly:
push edi
push edi
push edi
push edi
lea eax, [esi + 0x128]
push eax
call dword [sym.imp.USER32.dll_SetRect]
jmp 0x10450f2
mov ecx, 0x5a0
push ecx
mov eax, 0x708
push eax
push ecx
push eax
lea eax, [esi + 0x118]
push eax
call dword [sym.imp.USER32.dll_SetRect]
jmp 0x1045148
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
mov dword [ebp - 0x14], esi
mov dword [ebp - 8], edi
mov dword [ebp - 0x10], edi
mov byte [ebp - 1], 1
call sub.MFC42u.dll_CWinApp::GetAppRegistryKey
mov dword [ebp - 0x1c], eax
mov ebx, 0x100eec8
cmp eax, edi
je 0x104501f
lea ecx, [ebp - 0x18]
push ecx
push 0x20019
push edi
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x1045018
push dword [ebp - 0x18]
mov byte [ebp - 1], 0
call edi
push dword [ebp - 0x1c]
call edi
xor edi, edi
push 2
push 2
push 0x100ee58
push ebx
mov ecx, esi
call sub.MFC42u.dll_CWinApp::GetProfileIntW
push eax
call fcn.0103b65d
push 1
push 0x100ee64
push ebx
mov ecx, esi
mov dword [esi + 0x160], eax
call sub.MFC42u.dll_CWinApp::GetProfileIntW
push 1
push 0x100ee80
push ebx
mov ecx, esi
mov dword [esi + 0x158], eax
call sub.MFC42u.dll_CWinApp::GetProfileIntW
mov dword [esi + 0x15c], eax
xor eax, eax
push 2
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
cmp word [ebp - 0xc], 0x31
mov ecx, esi
setne al
push eax
push 0x100eed8
push ebx
call sub.MFC42u.dll_CWinApp::GetProfileIntW
push eax
mov ecx, esi
call fcn.0103b5b7
push edi
push 0x100eef8
push ebx
call sub.MFC42u.dll_CWinApp::GetProfileIntW
mov dword [esi + 0x138], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push 0x100eee4
push ebx
mov ecx, esi
call sub.MFC42u.dll_CWinApp::GetProfileBinary
test eax, eax
je 0x1022fba
cmp dword [ebp - 8], edi
je 0x1022fba
push dword [ebp - 8]
lea edi, [esi + 0x128]
mov esi, dword [ebp - 8]
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 fcn.01008062
mov esi, dword [ebp - 0x14]
pop ecx
xor edi, edi
push 1
push 0x100eeac
push ebx
mov ecx, esi
call sub.MFC42u.dll_CWinApp::GetProfileIntW
mov dword [esi + 0x114], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push 0x100ee94
push ebx
mov ecx, esi
call sub.MFC42u.dll_CWinApp::GetProfileBinary
test eax, eax
je 0x1022fd0
cmp dword [ebp - 8], edi
je 0x1022fd0
push dword [ebp - 8]
lea edi, [esi + 0x118]
mov esi, dword [ebp - 8]
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 fcn.01008062
mov esi, dword [ebp - 0x14]
pop ecx
xor edi, edi
cmp byte [ebp - 1], 0
push 5
pop eax
jne 0x1045166
push eax
push eax
push 0x100f0dc
push ebx
mov ecx, esi
call sub.MFC42u.dll_CWinApp::GetProfileIntW
push eax
call fcn.010470b1
push eax
push 3
mov dword [0x10aa0b8], eax
mov dword [0x10aa120], eax
call fcn.0100c191
push eax
push 0x1438
push 0x10aa3d0
call sub.ntdll.dll_WinSqmSetDWORD
push edi
push 0x103accc
push ebx
mov ecx, esi
call sub.MFC42u.dll_CWinApp::GetProfileIntW
test eax, eax
jne 0x104c632
push 1
push 0xb
call fcn.0100b141
pop edi
mov dword [esi + 0x150], eax
pop esi
pop ebx
leave
ret
mov dword [esi + 0x14c], 1
jmp 0x104519e