Function at 0x1045343
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 0x104546f
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 0x10454c5
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, 0x100f150
cmp eax, edi
je 0x104539c
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 0x1045395
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 0x100f0e0
push ebx
mov ecx, esi
call sub.MFC42u.dll_CWinApp::GetProfileIntW
push eax
call fcn.0103b945
push 1
push 0x100f0ec
push ebx
mov ecx, esi
mov dword [esi + 0x160], eax
call sub.MFC42u.dll_CWinApp::GetProfileIntW
push 1
push 0x100f108
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 0x100f160
push ebx
call sub.MFC42u.dll_CWinApp::GetProfileIntW
push eax
mov ecx, esi
call fcn.0103b89f
push edi
push 0x100f180
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 0x100f16c
push ebx
mov ecx, esi
call sub.MFC42u.dll_CWinApp::GetProfileBinary
test eax, eax
je 0x1023312
cmp dword [ebp - 8], edi
je 0x1023312
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.01008072
mov esi, dword [ebp - 0x14]
pop ecx
xor edi, edi
push 1
push 0x100f134
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 0x100f11c
push ebx
mov ecx, esi
call sub.MFC42u.dll_CWinApp::GetProfileBinary
test eax, eax
je 0x1023328
cmp dword [ebp - 8], edi
je 0x1023328
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.01008072
mov esi, dword [ebp - 0x14]
pop ecx
xor edi, edi
cmp byte [ebp - 1], 0
push 5
pop eax
jne 0x10454e3
push eax
push eax
push 0x100f364
push ebx
mov ecx, esi
call sub.MFC42u.dll_CWinApp::GetProfileIntW
push eax
call fcn.010471a1
push eax
push 3
mov dword [0x10aa0b8], eax
mov dword [0x10aa120], eax
call fcn.0100ca29
push eax
push 0x1438
push 0x10aa3d0
call sub.ntdll.dll_WinSqmSetDWORD
push edi
push 0x103b02c
push ebx
mov ecx, esi
call sub.MFC42u.dll_CWinApp::GetProfileIntW
test eax, eax
jne 0x104c63e
push 1
push 0xb
call fcn.0100b151
pop edi
mov dword [esi + 0x150], eax
pop esi
pop ebx
leave
ret
mov dword [esi + 0x14c], 1
jmp 0x104551b