Function at 0x416710
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push ebx
push esi
mov ebx, ecx
mov eax, dword [ebx + 0x6c]
lea esi, [ebx + 0x6c]
push edi
push 1
push esi
lea edi, [ebx + 0x54]
mov dword [ebp - 0x10], ebx
push ecx
mov ecx, edi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], edi
call fcn.00417290
mov eax, dword [esi]
sub eax, 0
je 0x41690e
sub eax, 1
je 0x416909
sub eax, 1
jne 0x41690e
movsd xmm0, qword [0x4abeb0]
mov ecx, dword [ebx + 0x5c]
push 0x526e
movsd qword [ebp - 0x2c], xmm0
call fcn.00402790
push eax
lea ecx, [ebp - 0xc]
call fcn.0040a650
mov ecx, dword [ebx + 0x5c]
push 0x526f
call fcn.00402790
push eax
lea ecx, [ebp - 0x18]
call fcn.0040a650
mov edi, dword [ebp - 0x18]
lea ecx, [ebp - 0xc]
push edi
call fcn.0040bea0
mov ecx, dword [ebx + 0x5c]
push 0x526c
call fcn.00402790
push eax
lea ecx, [ebp - 0x18]
call fcn.0040a650
xor esi, esi
mov ebx, dword [eax]
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
and eax, 0x3ff
sub eax, 1
je 0x4167cc
sub eax, 0xc
jne 0x4167d1
mov esi, 0x180000
or esi, 0x131
push esi
mov esi, dword [ebp - 0xc]
push ebx
push esi
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
push dword [ebp - 0x18]
mov ebx, eax
call fcn.0041b39b
add esp, 4
cmp ebx, 1
je 0x4168ef
mov eax, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x1c]
mov dword [eax], ecx
cmp dword [ebx + 0x68], 0
jne 0x416831
xor edx, edx
lea ecx, [ebx + 0x54]
test ecx, ecx
mov eax, ebx
push 0x477
cmove eax, edx
push dword [eax + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov dword [ebx + 0x68], eax
lea eax, [ebx + 0x6c]
push 0
push eax
push ecx
lea ecx, [ebx + 0x54]
call fcn.00417290
cmp dword [ebx + 0x70], 0
jne 0x416863
lea ecx, [ebx + 0x54]
mov edx, 4
test ecx, ecx
lea eax, [ecx - 0x50]
push 0x45b
cmove eax, edx
push dword [eax]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov dword [ebx + 0x70], eax
cmp dword [ebx + 0x74], 0
jne 0x416886
xor edx, edx
lea ecx, [ebx + 0x54]
test ecx, ecx
mov eax, ebx
push 0x45c
cmove eax, edx
push dword [eax + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov dword [ebx + 0x74], eax
cmp dword [ebx + 0x78], 0
jne 0x4168a9
xor edx, edx
lea ecx, [ebx + 0x54]
test ecx, ecx
mov eax, ebx
push 0x46f
cmove eax, edx
push dword [eax + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov dword [ebx + 0x78], eax
cmp dword [ebx + 0x7c], 0
lea eax, [ebx + 0x7c]
mov dword [ebp - 0x1c], eax
jne 0x4168d2
lea eax, [ebx + 0x54]
xor ecx, ecx
test eax, eax
push 0x489
cmove ebx, ecx
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ecx, dword [ebp - 0x1c]
mov dword [ecx], eax
push edi
call fcn.0041b39b
add esp, 4
push esi
call fcn.0041b39b
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push edi
call fcn.0041b39b
add esp, 4
push esi
call fcn.0041b39b
mov ebx, dword [ebp - 0x10]
add esp, 4
mov edi, dword [ebp - 0x20]
jmp 0x41691b
xorps xmm0, xmm0
jmp 0x416916
movsd xmm0, qword [0x4abe98]
movsd qword [ebp - 0x2c], xmm0
push 0xe
call fcn.0041b3e1
add esp, 4
mov dword [ebp - 0x10], eax
test eax, eax
je 0x41695e
movq xmm0, qword [str.defaultklimit]
mov esi, eax
movq qword [eax], xmm0
mov ecx, dword [0x4ab080]
mov dword [eax + 8], ecx
mov cl, byte [0x4ab084]
mov byte [eax + 0xc], cl
lea ecx, [esi + 1]
mov byte [eax + 0xd], 0
mov al, byte [esi]
inc esi
test al, al
jne 0x416953
sub esi, ecx
jmp 0x416960
xor esi, esi
lea eax, [esi + 1]
push eax
call fcn.0041b3e1
add esp, 4
mov dword [ebp - 0x20], eax
test eax, eax
je 0x41698b
test esi, esi
je 0x416987
push esi
push dword [ebp - 0x10]
push eax
call fcn.0042f5c0
mov eax, dword [ebp - 0x20]
add esp, 0xc
mov byte [eax + esi], 0
mov dword [ebp - 0x44], eax
lea ecx, [ebp - 0x44]
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x40], 0
push eax
push 0
call fcn.00402b50
mov eax, dword [ebp - 0x10]
xorps xmm0, xmm0
movsd qword [ebp - 0x3c], xmm0
test eax, eax
je 0x4169bb
push eax
call fcn.0041b39b
add esp, 4
push 0xe
call fcn.0041b3e1
mov esi, eax
add esp, 4
test esi, esi
je 0x4169ed
movq xmm0, qword [str.defaultklimit]
movq qword [esi], xmm0
mov ecx, dword [0x4ab080]
mov dword [esi + 8], ecx
mov cl, byte [0x4ab084]
mov byte [esi + 0xc], cl
mov byte [esi + 0xd], 0
mov eax, dword [0x4b2794]
mov dword [ebp - 0x20], esi
test al, 1
jne 0x416a2f
or eax, 1
push 0x11
mov dword [0x4b2794], eax
call fcn.0041b3e1
add esp, 4
test eax, eax
je 0x416a1d
movups xmm0, xmmword [str.___MASTER_DOMAIN]
movups xmmword [eax], xmm0
mov byte [eax + 0x10], 0
push 0x430170
mov dword [0x4b27c4], eax
call fcn.0041b864
add esp, 4
mov ecx, dword [ebx + 0x58]
lea eax, [ebp - 0x20]
push 0x4b27c4
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.00404670
mov cl, al
mov byte [ebp - 5], cl
test esi, esi
je 0x416a59
push esi
call fcn.0041b39b
mov cl, byte [ebp - 5]
add esp, 4
test cl, cl
je 0x416c4a
movsd xmm0, qword [ebp - 0x2c]
ucomisd xmm0, qword [0x4abeb0]
lahf
test ah, 0x44
jp 0x416a84
push ecx
mov ecx, dword [ebx + 0x58]
push 0
call fcn.00405a80
mov cl, byte [ebp - 5]
and cl, al
test cl, cl
je 0x416c4a
push 8
call fcn.0041b3e1
mov esi, eax
add esp, 4
test esi, esi
je 0x416abc
mov ecx, dword [str.domains]
mov dword [esi], ecx
mov cx, word [0x4aaff8]
mov word [esi + 4], cx
mov cl, byte [0x4aaffa]
mov byte [esi + 6], cl
mov byte [esi + 7], 0
mov eax, dword [0x4b2794]
mov dword [ebp - 0x20], esi
test al, 1
jne 0x416afe
or eax, 1
push 0x11
mov dword [0x4b2794], eax
call fcn.0041b3e1
add esp, 4
test eax, eax
je 0x416aec
movups xmm0, xmmword [str.___MASTER_DOMAIN]
movups xmmword [eax], xmm0
mov byte [eax + 0x10], 0
push 0x430170
mov dword [0x4b27c4], eax
call fcn.0041b864
add esp, 4
mov ecx, dword [ebx + 0x58]
lea eax, [ebp - 0x20]
push 0x4b27c4
push eax
call fcn.004045d0
mov dword [ebp - 0x20], eax
test esi, esi
je 0x416b22
push esi
call fcn.0041b39b
mov eax, dword [ebp - 0x20]
add esp, 4
test eax, eax
je 0x416cfb
cmp dword [eax + 0x10], 0
je 0x416cfb
push str.domains
lea ecx, [ebp - 0x10]
call fcn.00401270
call fcn.00403f00
mov ecx, dword [ebx + 0x58]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.004045d0
mov ecx, dword [ebp - 0x10]
mov esi, eax
test ecx, ecx
je 0x416b65
push ecx
call fcn.0041b39b
add esp, 4
test esi, esi
je 0x416cfb
mov esi, dword [esi + 0x10]
mov dword [ebp - 0x20], esi
test esi, esi
je 0x416cfb
mov esi, dword [esi + 8]
mov eax, 1
sub esi, eax
mov dword [ebp - 0xc], eax
js 0x416cfb
mov edi, dword [ebp - 0x20]
mov eax, dword [edi + 4]
lea ecx, [ebp - 0x10]
push str.klimit
mov eax, dword [eax + esi*4]
mov dword [ebp - 0x20], eax
call fcn.00401270
lea eax, [ebp - 0x2c]
push eax
push 0
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x5c]
call fcn.00403470
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x416bc9
push eax
call fcn.0041b39b
add esp, 4
mov eax, dword [ebp - 0x20]
lea ecx, [ebp - 0x18]
push dword [eax]
call fcn.00401270
push str.klimit
lea ecx, [ebp - 0x14]
call fcn.00401270
mov ecx, dword [ebx + 0x58]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.00404670
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 5], al
test ecx, ecx
je 0x416c0a
push ecx
call fcn.0041b39b
add esp, 4
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x416c1a
push eax
call fcn.0041b39b
add esp, 4
mov eax, dword [ebp - 0xc]
xor ecx, ecx
cmp byte [ebp - 5], cl
movzx eax, al
cmove eax, ecx
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0xc], eax
call fcn.00402af0
sub esi, 1
jns 0x416b91
mov eax, dword [ebp - 0xc]
lea edi, [ebx + 0x54]
test al, al
jne 0x416cfb
mov ecx, dword [ebp - 0x1c]
lea eax, [ebx + 0x6c]
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
mov dword [eax], ecx
cmp dword [ebx + 0x68], 0
jne 0x416c77
xor ecx, ecx
mov eax, ebx
test edi, edi
push 0x477
cmove eax, ecx
push dword [eax + 4]
call esi
mov dword [ebx + 0x68], eax
lea eax, [ebx + 0x6c]
push 0
push eax
push ecx
mov ecx, edi
call fcn.00417290
cmp dword [ebx + 0x70], 0
jne 0x416ca1
test edi, edi
lea eax, [edi - 0x50]
mov ecx, 4
cmove eax, ecx
push 0x45b
push dword [eax]
call esi
mov dword [ebx + 0x70], eax
cmp dword [ebx + 0x74], 0
jne 0x416cbd
xor ecx, ecx
mov eax, ebx
test edi, edi
push 0x45c
cmove eax, ecx
push dword [eax + 4]
call esi
mov dword [ebx + 0x74], eax
cmp dword [ebx + 0x78], 0
jne 0x416cd9
xor ecx, ecx
mov eax, ebx
test edi, edi
push 0x46f
cmove eax, ecx
push dword [eax + 4]
call esi
mov dword [ebx + 0x78], eax
cmp dword [ebx + 0x7c], 0
lea eax, [ebx + 0x7c]
mov dword [ebp - 0x20], eax
jne 0x416cfb
xor eax, eax
test edi, edi
push 0x489
cmove ebx, eax
push dword [ebx + 4]
call esi
mov ecx, dword [ebp - 0x20]
mov dword [ecx], eax
mov eax, dword [ebp - 0x40]
sub eax, 2
je 0x416d17
sub eax, 1
jne 0x416d38
mov ecx, dword [ebp - 0x34]
test ecx, ecx
je 0x416d38
mov eax, dword [ecx]
push 1
call dword [eax]
jmp 0x416d38
mov esi, dword [ebp - 0x34]
test esi, esi
je 0x416d38
mov eax, dword [esi]
test eax, eax
je 0x416d2d
push eax
call fcn.0041b39b
add esp, 4
push 4
push esi
call fcn.0041b3d3
add esp, 8
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x416d48
push eax
call fcn.0041b39b
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0xc