Function at 0x4f2070
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 0x509544
mov dword [esp + 0x14], esi
call edi
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
push 0x533980
push ebx
call ebp
test eax, eax
je 0x4f210b
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 0x4f2234
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
jns 0x4f21d5
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 0x4f2234
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 0x4f21c8
cmp dword [esp + 0x18], 1
jne 0x4f21c8
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x3c]
push 0x533938
push eax
call fcn.004b1280
add esp, 0xc
cmp eax, 1
jne 0x4f21c8
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 0x4f2234
push str.ntdll.dll
call edi
test eax, eax
je 0x4f2234
lea edx, [esp + 0x10]
push edx
push 0x4f2050
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 0x4f2234
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 0x4f22a5
mov ebx, dword [esp + 0x160]
mov ebp, dword [sym.imp.USER32.dll_wsprintfA]
mov eax, dword [esp + edi*4 + 0x20]
cmp eax, 0x800
jne 0x4f226d
push 0x533928
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x4f2281
push 4
lea ecx, [esp + 0x18]
push ecx
push 3
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x4f22a0
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 0x4f22a7
inc edi
cmp edi, esi
jl 0x4f2250
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14c
ret 4