Function at 0x4f3520
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
sub esp, 0x14c
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
xor esi, esi
push str.kernel32.dll
mov dword [esp + 0x14], esi
call edi
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
push str.GetUserDefaultUILanguage
push ebx
call ebp
test eax, eax
je 0x4f35bb
call eax
mov esi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov dword [esp + 0x10], eax
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
movzx edi, cx
and eax, 0xfc00
or eax, edi
push eax
call esi
push edi
mov dword [esp + 0x24], eax
call esi
push str.GetSystemDefaultUILanguage
push ebx
mov dword [esp + 0x2c], eax
call ebp
call eax
mov dword [esp + 0x10], eax
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
movzx edi, cx
and eax, 0xfc00
or eax, edi
push eax
call esi
push edi
mov dword [esp + 0x2c], eax
call esi
mov dword [esp + 0x2c], eax
mov esi, 4
jmp 0x4f36e4
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
jns 0x4f3685
lea eax, [esp + 0x14]
push eax
push 0x20019
push 0
push str.Control_PanelDesktopResourceLocale
push 0x80000001
mov dword [esp + 0x28], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4f36e4
lea ecx, [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x20]
push eax
push 0
push 0
push ecx
mov dword [esp + 0x4c], 0x10
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4f3678
cmp dword [esp + 0x18], 1
jne 0x4f3678
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x3c]
push 0x535e70
push eax
call fcn.004b1fe0
add esp, 0xc
cmp eax, 1
jne 0x4f3678
mov eax, dword [esp + 0x1c]
mov ebx, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov dword [esp + 0x10], eax
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
movzx esi, cx
and eax, 0xfc00
or eax, esi
push eax
call ebx
push esi
mov dword [esp + 0x24], eax
call ebx
mov dword [esp + 0x24], eax
mov esi, 2
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4f36e4
push str.ntdll.dll
call edi
test eax, eax
je 0x4f36e4
lea edx, [esp + 0x10]
push edx
push 0x4f3500
push 1
push 0x10
push eax
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_EnumResourceLanguagesA]
mov eax, dword [esp + 0x10]
test ax, ax
je 0x4f36e4
mov ebx, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
movzx esi, cx
and eax, 0xfc00
or eax, esi
push eax
call ebx
push esi
mov dword [esp + 0x24], eax
call ebx
mov dword [esp + 0x24], eax
mov esi, 2
mov dword [esp + esi*4 + 0x20], 0x800
inc esi
xor edi, edi
test esi, esi
jle 0x4f3755
mov ebx, dword [esp + 0x160]
mov ebp, dword [sym.imp.USER32.dll_wsprintfA]
mov eax, dword [esp + edi*4 + 0x20]
cmp eax, 0x800
jne 0x4f371d
push 0x535e60
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x4f3731
push 4
lea ecx, [esp + 0x18]
push ecx
push 3
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x4f3750
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x4c]
push ebx
push eax
call ebp
add esp, 0xc
lea ecx, [esp + 0x48]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
jne 0x4f3757
inc edi
cmp edi, esi
jl 0x4f3700
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14c
ret 4