Function at 0x1005eb3
Capabilities:
Get geographical location
Identify system language via api
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x518
mov eax, dword [0x101033c]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x4f8], 0
push ebx
push esi
push edi
xor eax, eax
push 0xc6
push eax
mov word [ebp - 0xe0], ax
lea eax, [ebp - 0xde]
push eax
mov ebx, ecx
call sub.msvcrt.dll_memset
xor eax, eax
mov word [ebp - 0x18], ax
lea edi, [ebp - 0x16]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0xc
push dword [section..data]
stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dword [0x10106d0], 1
call sub.DUI70.dll_StrToID
mov ecx, dword [0x1010404]
mov esi, dword [sym.imp.DUI70.dll_public:_class_DirectUI::Element____thiscall_DirectUI::Element::FindDescendent_unsigned_short_int_]
movzx eax, ax
push eax
call esi
mov dword [ebp - 0x4f4], eax
test eax, eax
jne 0x1005f46
mov eax, 0x80004005
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0100a9f1
leave
ret
push dword [0x1010400]
lea ecx, [ebp - 0x518]
call dword [sym.imp.DUI70.dll_public:_void___thiscall_DirectUI::DUIFactory::constructor_struct_HWND____]
push 0
lea edi, [ebx + 4]
push edi
push 0
push dword [ebp - 0x4f4]
lea ecx, [ebp - 0x518]
push 0x1001d2c
push 3
push dword [0x10103f8]
call dword [sym.imp.DUI70.dll_public:_long_int___thiscall_DirectUI::DUIFactory::LoadFromResource_struct_HINSTANCE_____unsigned_short_int_const___unsigned_short_int_const___class_DirectUI::Element___unsigned_long_int___class_DirectUI::Element____unsigned_short_int_const__]
test eax, eax
jge 0x1005f95
mov esi, eax
lea ecx, [ebp - 0x518]
call dword [sym.imp.DUI70.dll_public:_void___thiscall_DirectUI::DUIFactory::destructor_void_]
mov eax, esi
jmp 0x1005f37
push dword [edi]
mov ecx, dword [ebp - 0x4f4]
call dword [sym.imp.DUI70.dll_public:_long_int___thiscall_DirectUI::Element::Add_class_DirectUI::Element__]
mov ecx, dword [edi]
push ebx
call dword [sym.imp.DUI70.dll_public:_long_int___thiscall_DirectUI::Element::AddListener_struct_DirectUI::IElementListener__]
push 0x1001d14
call sub.DUI70.dll_StrToID
mov ecx, dword [edi]
movzx eax, ax
push eax
call esi
mov dword [ebx + 8], eax
test eax, eax
je 0x1005ff4
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xa0]
mov dword [ebp - 0x4f4], eax
test eax, eax
je 0x1005ff4
push 0xfffffffffffffff0
push eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
or eax, 8
push eax
push 0xfffffffffffffff0
push dword [ebp - 0x4f4]
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 0x1001898
call sub.DUI70.dll_StrToID
mov ecx, dword [0x1010404]
movzx eax, ax
push eax
call esi
mov dword [ebx + 0x18], eax
test eax, eax
jne 0x100601b
mov esi, 0x80004005
jmp 0x1005f85
push 0x1001cfc
call sub.DUI70.dll_StrToID
mov ecx, dword [edi]
movzx eax, ax
push eax
call esi
mov dword [ebx + 0x10], eax
test eax, eax
je 0x1006011
push 0x1001c2c
call sub.DUI70.dll_StrToID
mov ecx, dword [edi]
movzx eax, ax
push eax
call esi
mov dword [ebx + 0x14], eax
test eax, eax
je 0x1006011
push 0x1001ce4
call sub.DUI70.dll_StrToID
mov ecx, dword [edi]
movzx eax, ax
push eax
call esi
xor edi, edi
mov dword [ebx + 0xc], eax
cmp eax, edi
je 0x1006011
mov ecx, eax
call fcn.0100a116
cmp eax, edi
jl 0x1005f83
lea eax, [ebp - 0x500]
push eax
call fcn.0100c984
cmp eax, edi
jl 0x1005f83
lea eax, [ebp - 0x4f8]
push eax
call fcn.01009352
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx eax, ax
push 0xa
mov dword [ebp - 0x4f4], eax
lea eax, [ebp - 0x18]
push eax
push 0x5a
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
lea eax, [ebp - 0x4fc]
push eax
push 0x20019
push edi
push 0x1001c88
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1006117
lea eax, [ebp - 0x504]
push eax
lea eax, [ebp - 0xe0]
push eax
lea eax, [ebp - 0x508]
push eax
push edi
push 0x1001c74
push dword [ebp - 0x4fc]
mov dword [ebp - 0x504], 0xc8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x4fc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.http:__go.microsoft.com_fwlink__LinkID137669skuid0x_xclcid0x_xProductID_sCountryCode_sactivated_d
mov esi, 0x104
push esi
lea eax, [ebp - 0x4f0]
push eax
call fcn.0100461d
cmp eax, edi
jl 0x1005f83
push dword [ebp - 0x4f8]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0xe0]
push eax
movzx eax, word [ebp - 0x4f4]
push eax
push dword [ebp - 0x500]
lea eax, [ebp - 0x4f0]
push eax
lea eax, [ebp - 0x2e8]
push esi
push eax
call fcn.01005e54
add esp, 0x20
cmp eax, edi
jl 0x1005f83
cmp word [0x1010710], di
je 0x100619f
push 0x1010710
push esi
lea eax, [ebp - 0x2e8]
push eax
call fcn.0100461d
cmp eax, edi
jl 0x1005f83
xor eax, eax
mov word [0x1010710], ax
lea eax, [ebp - 0x2e8]
push eax
push 0x1001c44
push edi
call fcn.0100c72e
mov ecx, dword [ebx + 0xc]
add esp, 0xc
lea eax, [ebp - 0x2e8]
push eax
call fcn.0100961b
cmp eax, edi
jl 0x1005f83
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push edi
push edi
push 0x414
push dword [0x1010400]
call esi
push edi
push 1
push 0x415
push dword [0x1010400]
call esi
mov ebx, dword [ebx + 0xc]
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x54]
xor esi, esi
jmp 0x1005f85