Function at 0x4103a0
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x4ad00c]
xor eax, ebp
mov dword [ebp - 8], eax
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 - 0x14], ebx
push ecx
mov ecx, edi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x10], edi
call fcn.00410e00
mov eax, dword [esi]
sub eax, 0
je 0x41059a
sub eax, 1
je 0x410595
sub eax, 1
jne 0x41059a
movsd xmm0, qword [0x4ab1d8]
mov ecx, dword [ebx + 0x5c]
push 0x526e
movsd qword [ebp - 0x2c], xmm0
call fcn.0041a580
push eax
lea ecx, [ebp - 0x18]
call fcn.004031f0
mov ecx, dword [ebx + 0x5c]
push 0x526f
call fcn.0041a580
push eax
lea ecx, [ebp - 0x1c]
call fcn.004031f0
mov edi, dword [ebp - 0x1c]
lea ecx, [ebp - 0x18]
push edi
call fcn.0040cb00
mov ecx, dword [ebx + 0x5c]
push 0x526c
call fcn.0041a580
push eax
lea ecx, [ebp - 0x1c]
call fcn.004031f0
xor esi, esi
mov ebx, dword [eax]
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
and eax, 0x3ff
sub eax, 1
je 0x410466
sub eax, 0xc
jne 0x41046b
mov esi, 0x180000
or esi, 0x131
push esi
mov esi, dword [ebp - 0x18]
push ebx
push esi
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
push dword [ebp - 0x1c]
mov ebx, eax
call fcn.0041ad86
add esp, 4
cmp ebx, 1
je 0x41057b
mov eax, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x24]
mov dword [eax], ecx
cmp dword [ebx + 0x68], 0
jne 0x4104cb
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.00410e00
cmp dword [ebx + 0x70], 0
jne 0x4104fd
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 0x410520
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 0x410543
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 - 0x24], eax
jne 0x41056c
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 - 0x24]
mov dword [ecx], eax
push edi
call fcn.0041ad86
add esp, 4
push esi
jmp 0x410960
push edi
call fcn.0041ad86
add esp, 4
push esi
call fcn.0041ad86
mov ebx, dword [ebp - 0x14]
add esp, 4
mov edi, dword [ebp - 0x10]
jmp 0x4105a7
xorps xmm0, xmm0
jmp 0x4105a2
movsd xmm0, qword [0x4ab1d0]
movsd qword [ebp - 0x2c], xmm0
push 0xe
call fcn.0041ad8b
add esp, 4
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4105eb
movq xmm0, qword [str.defaultklimit]
mov esi, eax
movq qword [eax], xmm0
mov ecx, dword [0x43d840]
mov dword [eax + 8], ecx
mov cl, byte [0x43d844]
mov byte [eax + 0xc], cl
lea ecx, [esi + 1]
mov byte [eax + 0xd], 0
nop
mov al, byte [esi]
inc esi
test al, al
jne 0x4105e0
sub esi, ecx
jmp 0x4105ed
xor esi, esi
lea eax, [esi + 1]
push eax
call fcn.0041ad8b
add esp, 4
mov dword [ebp - 0x10], eax
test eax, eax
je 0x410618
test esi, esi
je 0x410614
push esi
push dword [ebp - 0x14]
push eax
call fcn.0042edb0
mov eax, dword [ebp - 0x10]
add esp, 0xc
mov byte [eax + esi], 0
mov dword [ebp - 0x3c], eax
lea ecx, [ebp - 0x3c]
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x38], 0
push eax
push 0
call fcn.004081c0
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x410640
push eax
call fcn.0041ad86
add esp, 4
push 0xe
call fcn.0041ad8b
mov esi, eax
add esp, 4
test esi, esi
je 0x410672
movq xmm0, qword [str.defaultklimit]
movq qword [esi], xmm0
mov ecx, dword [0x43d840]
mov dword [esi + 8], ecx
mov cl, byte [0x43d844]
mov byte [esi + 0xc], cl
mov byte [esi + 0xd], 0
mov dword [ebp - 0x10], esi
call fcn.00408ec0
mov ecx, dword [ebx + 0x58]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.00409200
mov cl, al
mov byte [ebp - 9], cl
test esi, esi
je 0x4106a0
push esi
call fcn.0041ad86
mov cl, byte [ebp - 9]
add esp, 4
test cl, cl
je 0x410859
movsd xmm0, qword [ebp - 0x2c]
ucomisd xmm0, qword [0x4ab1d8]
lahf
test ah, 0x44
jp 0x4106cb
push ecx
mov ecx, dword [ebx + 0x58]
push 0
call fcn.0040a360
mov cl, byte [ebp - 9]
and cl, al
test cl, cl
je 0x410859
push 8
call fcn.0041ad8b
mov esi, eax
add esp, 4
test esi, esi
je 0x410703
mov ecx, dword [str.domains]
mov dword [esi], ecx
mov cx, word [0x43d7c8]
mov word [esi + 4], cx
mov cl, byte [0x43d7ca]
mov byte [esi + 6], cl
mov byte [esi + 7], 0
mov dword [ebp - 0x10], esi
call fcn.00408ec0
mov ecx, dword [ebx + 0x58]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00409160
mov dword [ebp - 0x10], eax
test esi, esi
je 0x41072b
push esi
call fcn.0041ad86
mov eax, dword [ebp - 0x10]
add esp, 4
test eax, eax
je 0x41090f
cmp dword [eax + 8], 0
je 0x41090f
push str.domains
lea ecx, [ebp - 0x14]
call fcn.00401280
call fcn.00408ec0
mov ecx, dword [ebx + 0x58]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00409160
mov ecx, dword [ebp - 0x14]
mov esi, eax
test ecx, ecx
je 0x41076e
push ecx
call fcn.0041ad86
add esp, 4
test esi, esi
je 0x41090f
mov esi, dword [esi + 8]
mov dword [ebp - 0x10], esi
test esi, esi
je 0x41090f
mov esi, dword [esi + 8]
mov eax, 1
sub esi, eax
mov dword [ebp - 0x18], eax
js 0x41090f
mov edi, dword [ebp - 0x10]
nop word [eax + eax]
mov eax, dword [edi + 4]
lea ecx, [ebp - 0x14]
push str.klimit
mov eax, dword [eax + esi*4]
mov dword [ebp - 0x10], eax
call fcn.00401280
lea eax, [ebp - 0x2c]
push eax
push 0
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x4c]
call fcn.00408400
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4107d8
push eax
call fcn.0041ad86
add esp, 4
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x1c]
push dword [eax]
call fcn.00401280
push str.klimit
lea ecx, [ebp - 0x20]
call fcn.00401280
mov ecx, dword [ebx + 0x58]
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.00409200
mov ecx, dword [ebp - 0x20]
mov byte [ebp - 9], al
test ecx, ecx
je 0x410819
push ecx
call fcn.0041ad86
add esp, 4
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x410829
push eax
call fcn.0041ad86
add esp, 4
mov eax, dword [ebp - 0x18]
xor ecx, ecx
cmp byte [ebp - 9], cl
movzx eax, al
cmove eax, ecx
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x18], eax
call fcn.00408140
sub esi, 1
jns 0x4107a0
mov eax, dword [ebp - 0x18]
lea edi, [ebx + 0x54]
test al, al
jne 0x41090f
mov ecx, dword [ebp - 0x24]
lea esi, [ebx + 0x6c]
mov dword [esi], ecx
cmp dword [ebx + 0x68], 0
jne 0x410881
xor ecx, ecx
mov eax, ebx
test edi, edi
push 0x477
cmove eax, ecx
push dword [eax + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov dword [ebx + 0x68], eax
push 0
push esi
push ecx
mov ecx, edi
call fcn.00410e00
cmp dword [ebx + 0x70], 0
jne 0x4108af
test edi, edi
lea eax, [edi - 0x50]
mov ecx, 4
cmove eax, ecx
push 0x45b
push dword [eax]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov dword [ebx + 0x70], eax
cmp dword [ebx + 0x74], 0
jne 0x4108cf
xor ecx, ecx
mov eax, ebx
test edi, edi
push 0x45c
cmove eax, ecx
push dword [eax + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov dword [ebx + 0x74], eax
cmp dword [ebx + 0x78], 0
jne 0x4108ef
xor ecx, ecx
mov eax, ebx
test edi, edi
push 0x46f
cmove eax, ecx
push dword [eax + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov dword [ebx + 0x78], eax
cmp dword [ebx + 0x7c], 0
lea esi, [ebx + 0x7c]
jne 0x41090f
xor eax, eax
test edi, edi
push 0x489
cmove ebx, eax
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov dword [esi], eax
mov eax, dword [ebp - 0x38]
sub eax, 2
je 0x410937
sub eax, 1
jne 0x410958
mov edi, dword [ebp - 0x34]
test edi, edi
je 0x410958
mov eax, dword [edi]
push 1
mov esi, dword [eax]
mov ecx, esi
call dword [0x430270]
mov ecx, edi
call esi
jmp 0x410958
mov esi, dword [ebp - 0x34]
test esi, esi
je 0x410958
mov eax, dword [esi]
test eax, eax
je 0x41094d
push eax
call fcn.0041ad86
add esp, 4
push 4
push esi
call fcn.0041ad94
add esp, 8
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x410968
push eax
call fcn.0041ad86
add esp, 4
mov ecx, dword [ebp - 8]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041ad75
mov esp, ebp
pop ebp
ret 0xc