Function at 0x40ef24
Capabilities:
Identify system language via api

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x430
mov eax, dword [0x41b010]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x410], eax
mov edi, ecx
lea eax, [ebp - 0x414]
mov dword [ebp - 0x41c], edi
push eax
lea eax, [ebp - 0x418]
mov ecx, dword [edi + 0xc]
push eax
call fcn.004045ad
xor esi, esi
test eax, eax
jne 0x40ef7d
call fcn.0041214c
mov word [ebp - 0x418], ax
mov dword [ebp - 0x424], esi
jmp 0x40ef89
mov eax, dword [ebp - 0x414]
mov dword [ebp - 0x424], eax
lea eax, [edi + 0x28]
mov ecx, eax
mov dword [ebp - 0x430], eax
call fcn.004085bd
push 0x20
call fcn.00417d21
mov ebx, eax
mov dword [ebp - 0x428], ebx
pop ecx
test ebx, ebx
je 0x40efc5
xor eax, eax
mov dword [ebx + 4], esi
mov dword [ebx + 8], esi
mov dword [ebx + 0xc], esi
mov dword [ebx + 0x14], esi
mov dword [ebx + 0x10], esi
mov dword [ebx + 0x18], eax
mov dword [ebx], esi
jmp 0x40efcd
mov ebx, esi
mov dword [ebp - 0x428], esi
test ebx, ebx
jne 0x40efd9
or eax, 0xffffffff
jmp 0x40f4fc
mov eax, dword [edi + 0x294]
xor ecx, ecx
cmp dword [eax + 8], esi
lea eax, [edi + 0x28c]
mov dword [ebp - 0x420], eax
setne cl
mov dword [ebx + 4], ecx
xor ecx, ecx
mov eax, dword [eax]
cmp dword [eax + 8], esi
setne cl
mov dword [ebx + 8], ecx
xor ecx, ecx
mov eax, dword [edi + 0x290]
cmp dword [eax + 8], esi
setne cl
mov dword [ebx + 0xc], ecx
lea ecx, [edi + 0x4c]
call fcn.00410f97
lea ecx, [edi + 0x4c]
mov dword [ebp - 0x414], eax
call fcn.00410fe7
mov ecx, dword [ebp - 0x414]
xor edx, edx
inc edx
push 2
pop esi
sub ecx, edx
je 0x40f041
sub ecx, edx
jne 0x40f041
inc ecx
jmp 0x40f043
mov ecx, esi
sub eax, 1
je 0x40f052
sub eax, 1
jne 0x40f054
xor edx, edx
inc edx
jmp 0x40f054
mov edx, esi
mov ax, word [0x41b2e8]
mov word [ebx + 0x1a], ax
xor eax, eax
mov dword [ebx + 0x10], ecx
mov dword [ebx + 0x14], edx
mov ecx, dword [edi + 0x284]
mov dword [ebp - 0x414], eax
test ecx, ecx
je 0x40f091
call fcn.004097d6
test eax, eax
je 0x40f08b
mov ecx, eax
call fcn.00407319
movzx eax, ax
jmp 0x40f091
mov eax, dword [ebp - 0x414]
push 0x34
mov word [ebx + 0x1c], ax
call fcn.00417d21
mov dword [ebp - 0x42c], eax
pop ecx
test eax, eax
je 0x40f0d9
xor ecx, ecx
mov dword [eax], 0x402254
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], ecx
mov dword [eax + 0x20], ecx
mov dword [eax + 0x28], ecx
mov dword [eax + 0x2c], ecx
mov dword [eax + 0x30], ecx
mov dword [eax + 0x24], ebx
mov dword [eax + 0x14], 0xd0
jmp 0x40f0e1
xor eax, eax
mov dword [ebp - 0x42c], eax
test eax, eax
jne 0x40f0f2
push ebx
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void__]
pop ecx
jmp 0x40efd1
push dword [ebp - 0x410]
mov ecx, eax
push dword [edi + 0x10]
call fcn.0041300b
xor eax, eax
mov dword [ebp - 0x414], eax
cmp dword [ebx], eax
je 0x40f4ae
mov cx, word [ebx + 0x1a]
mov dword [ebp - 0x414], 1
call fcn.00412400
mov ax, word [ebx + 0x1a]
mov ecx, 0xffff
mov word [ebp - 0x410], ax
cmp ax, cx
jne 0x40f143
xor eax, eax
mov word [ebp - 0x410], ax
push esi
lea eax, [ebp - 0x410]
mov edx, 0x4025dc
push eax
mov ecx, 0x402568
call fcn.00411dc3
mov eax, dword [ebx + 0x10]
sub eax, 1
je 0x40f173
sub eax, 1
jne 0x40f194
inc eax
mov dword [edi + 0x50], eax
mov dword [ebp - 0x410], eax
jmp 0x40f17c
mov dword [edi + 0x50], esi
mov dword [ebp - 0x410], esi
push 4
lea eax, [ebp - 0x410]
mov edx, 0x40262c
push eax
mov ecx, 0x402568
call fcn.00411dc3
mov esi, dword [ebx + 4]
xor eax, eax
test esi, esi
mov edx, 0x4025c8
push 4
setne al
mov ecx, 0x402568
mov dword [ebp - 0x410], eax
lea eax, [ebp - 0x410]
push eax
call fcn.00411dc3
lea ecx, [edi + 0x4c]
mov dword [ecx], esi
mov eax, dword [ebx + 0x14]
sub eax, 1
je 0x40f1d2
sub eax, 1
jne 0x40f1d9
push 1
jmp 0x40f1d4
push 2
call fcn.00411037
xor esi, esi
mov ecx, esi
cmp dword [ebx + 8], esi
je 0x40f1e3
inc ecx
cmp dword [ebx + 0xc], esi
je 0x40f1eb
or ecx, 2
mov eax, ecx
mov dword [edi + 0x54], ecx
shr eax, 1
and ecx, 1
and eax, 1
mov edx, 0x40260c
shl eax, 0x10
or eax, ecx
mov ecx, 0x402568
mov dword [ebp - 0x410], eax
lea eax, [ebp - 0x410]
push 4
push eax
call fcn.00411dc3
mov ecx, dword [edi + 0x284]
call fcn.004097d6
mov dword [ebp - 0x410], eax
test eax, eax
je 0x40f24d
mov ecx, dword [eax]
push esi
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x41f3ec]
mov ecx, dword [ebp - 0x410]
call esi
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov esi, dword [edi + 0x294]
xor edi, edi
cmp dword [ebx + 4], edi
je 0x40f268
cmp dword [esi + 8], edi
jne 0x40f27e
mov ecx, esi
call fcn.00409d98
jmp 0x40f27e
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov ecx, esi
call fcn.00405116
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov edi, dword [ebp - 0x420]
push dword [ebp - 0x424]
push dword [ebp - 0x418]
mov edi, dword [edi]
push dword [ebx + 8]
mov eax, dword [edi]
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x41f3ec]
mov ecx, edi
call esi
mov ecx, dword [ebp - 0x41c]
push dword [ebp - 0x424]
push dword [ebp - 0x418]
mov edi, dword [ecx + 0x290]
push dword [ebx + 0xc]
mov eax, dword [edi]
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x41f3ec]
mov ecx, edi
call esi
xor eax, eax
push 0x1fe
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call sub.msvcrt.dll_memset
mov esi, dword [ebp - 0x410]
add esp, 0xc
test esi, esi
je 0x40f362
mov ecx, esi
call fcn.00407250
mov edi, eax
test edi, edi
je 0x40f362
xor ecx, ecx
cmp word [edi], cx
je 0x40f362
xor eax, eax
push 0x1fe
mov word [ebp - 0x40c], ax
lea eax, [ebp - 0x40a]
push ecx
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea edx, [ebp - 0x40c]
xor ecx, ecx
inc ecx
push 0x100
call fcn.00412555
push edi
lea eax, [ebp - 0x40c]
push eax
push 0x40246c
lea eax, [ebp - 0x20c]
push 0x100
push eax
call fcn.00406d75
add esp, 0x14
jmp 0x40f375
xor ecx, ecx
lea edx, [ebp - 0x20c]
push 0x100
inc ecx
call fcn.00412555
mov edi, dword [ebp - 0x41c]
lea eax, [ebp - 0x20c]
push eax
push dword [edi + 0x18]
call dword [sym.imp.USER32.dll_SetWindowTextW]
push 2
pop ecx
lea esi, [edi + 0x28c]
mov dword [ebp - 0x418], ecx
mov eax, dword [esi]
cmp dword [eax + 8], 0
je 0x40f3c0
push 0x87
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0
push dword [eax + 8]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [ebp - 0x418]
add esi, 4
sub ecx, 1
mov dword [ebp - 0x418], ecx
jne 0x40f39a
mov esi, dword [ebp - 0x410]
test esi, esi
je 0x40f3f6
mov eax, dword [esi]
push 5
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x41f3ec]
mov ecx, dword [ebp - 0x410]
call esi
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [edi + 0x284]
xor eax, eax
push eax
push 1
push eax
push eax
push eax
push eax
call fcn.00409826
push eax
mov ecx, edi
call fcn.00405e20
mov edi, dword [ebp - 0x420]
xor ebx, ebx
push 2
pop esi
mov eax, dword [edi]
mov eax, dword [eax + 8]
mov dword [ebp - 0x420], eax
test eax, eax
je 0x40f44c
push 0x47
or ecx, 0xffffffff
push ecx
push ecx
push ecx
push ecx
push ebx
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
push 1
push ebx
push dword [ebp - 0x420]
call dword [sym.imp.USER32.dll_InvalidateRect]
add edi, 4
sub esi, 1
jne 0x40f41d
mov edi, dword [ebp - 0x41c]
mov ebx, dword [ebp - 0x428]
mov esi, dword [ebp - 0x410]
mov eax, dword [edi + 0x294]
mov edi, dword [eax + 8]
test edi, edi
je 0x40f48a
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40f48a
push 1
xor eax, eax
push eax
push edi
call dword [sym.imp.USER32.dll_InvalidateRect]
test esi, esi
je 0x40f4ae
mov eax, dword [esi]
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x41f3ec]
mov ecx, dword [ebp - 0x410]
call esi
push 1
push 0
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
mov edi, dword [ebp - 0x42c]
push 1
mov eax, dword [edi]
mov esi, dword [eax]
mov ecx, esi
call dword [0x41f3ec]
mov ecx, edi
call esi
push ebx
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void__]
pop ecx
mov ecx, dword [ebp - 0x430]
call fcn.004085e7
cmp dword [ebp - 0x414], 0
je 0x40f4fa
push ecx
push ecx
mov ecx, dword [ebp - 0x41c]
push 0x10d
mov ecx, dword [ecx + 0x284]
call fcn.004096f5
xor eax, eax
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00418a00
mov esp, ebp
pop ebp
ret 4