Function at 0x404320
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x63047d
mov eax, dword fs:[0]
push eax
sub esp, 0x84c
mov eax, dword [0x6ce488]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov edi, dword [ebp + 8]
mov edx, str.click
mov dword [ebp - 0x854], edi
mov ecx, dword [edi]
mov eax, ecx
mov si, word [eax]
cmp si, word [edx]
jne 0x404388
test si, si
je 0x404384
mov si, word [eax + 2]
cmp si, word [edx + 2]
jne 0x404388
add eax, 4
add edx, 4
test si, si
jne 0x404362
xor eax, eax
jmp 0x40438d
sbb eax, eax
or eax, 1
test eax, eax
jne 0x404a90
mov ecx, dword [edi + 0x108]
lea edx, [ebp - 0x2b8]
push edx
mov eax, dword [ecx]
call dword [eax + 8]
mov dword [ebp - 4], 0
mov esi, dword [edi + 0x108]
cmp esi, dword [ebx + 0x55c]
jne 0x4044c8
call fcn.004021b0
mov ecx, eax
test ecx, ecx
je 0x404cf2
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x21c], eax
push ecx
lea ecx, [ebp - 0x850]
mov byte [ebp - 4], 1
call fcn.00413360
lea ecx, [ebp - 0x234]
push ecx
mov ecx, eax
mov edx, dword [eax]
call dword [edx]
mov byte [ebp - 4], 2
cmp dword [eax + 0x14], 8
jb 0x404406
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x21c]
push 0x69ffb8
push eax
call fcn.00402970
add esp, 0xc
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x234]
call fcn.00402f20
cmp byte [ebx + 0x5b0], 0
mov esi, dword [ebp - 0x21c]
je 0x404490
mov ecx, dword [ebx - 0x1c]
mov edx, esi
push 1
push 0x69ffd8
call fcn.00417de0
add esp, 8
cmp eax, 1
je 0x404490
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40446e
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x2b8]
lea ecx, [ebp - 0x2b4]
cmp eax, ecx
je 0x404cd4
push eax
call fcn.006140b6
add esp, 4
jmp 0x404cd4
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x404a4e
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2b4]
mov eax, dword [ebp - 0x2b8]
jmp 0x404cbf
mov eax, dword [ebp - 0x2b8]
mov ecx, str.BtnSetup
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4044f9
test dx, dx
je 0x4044f5
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4044f9
add eax, 4
add ecx, 4
test dx, dx
jne 0x4044d3
xor eax, eax
jmp 0x4044fe
sbb eax, eax
or eax, 1
test eax, eax
je 0x404a66
push str.BtnSetup2
lea ecx, [ebp - 0x2b8]
call fcn.00420c20
test al, al
jne 0x404a66
cmp esi, dword [ebx + 0x56c]
jne 0x404699
lea eax, [ebp - 0x44c]
push eax
push 0x64
call dword [sym.imp.USER32.dll_GetKeyboardLayoutList]
push ecx
lea ecx, [ebp - 0x850]
mov dword [ebp - 0x2bc], eax
call fcn.00413360
lea ecx, [ebp - 0x234]
push ecx
mov ecx, eax
mov edx, dword [eax]
call dword [edx]
mov esi, eax
mov dword [ebp - 0x854], eax
mov byte [ebp - 4], 3
cmp dword [esi + 0x14], 8
jb 0x404572
mov esi, dword [esi]
mov dword [ebp - 0x854], esi
mov eax, dword [ebp - 0x2bc]
xor edi, edi
test eax, eax
jle 0x404653
test edi, edi
js 0x404593
cmp edi, eax
jg 0x404593
mov eax, dword [ebp + edi*4 - 0x44c]
jmp 0x404595
xor eax, eax
push eax
mov dword [ebp - 0x858], eax
lea eax, [ebp - 0x21c]
push eax
mov dword [ebp - 0x21c], 0
call fcn.00401880
test esi, esi
je 0x404cf2
mov eax, dword [ebp - 0x21c]
mov edx, esi
mov ecx, eax
mov si, word [ecx]
cmp si, word [edx]
jne 0x4045ea
test si, si
je 0x4045e6
mov si, word [ecx + 2]
cmp si, word [edx + 2]
jne 0x4045ea
add ecx, 4
add edx, 4
test si, si
jne 0x4045c4
xor ecx, ecx
jmp 0x4045ef
sbb ecx, ecx
or ecx, 1
test ecx, ecx
je 0x404622
lea edx, [eax - 0x10]
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40460b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x2bc]
inc edi
mov esi, dword [ebp - 0x854]
cmp edi, eax
jl 0x404582
jmp 0x404653
mov ecx, dword [ebp - 0x858]
test ecx, ecx
je 0x40463b
push 0
push ecx
call dword [sym.imp.USER32.dll_ActivateKeyboardLayout]
mov eax, dword [ebp - 0x21c]
lea edx, [eax - 0x10]
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x404653
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 0
call fcn.00402f20
push ecx
push 0
lea ecx, [ebx - 0x20]
call fcn.0040c6a0
push 1
lea ecx, [ebx - 0x20]
call fcn.00421ef0
mov eax, dword [ebp - 0x2b8]
lea ecx, [ebp - 0x2b4]
cmp eax, ecx
je 0x404cd4
push eax
call fcn.006140b6
add esp, 4
jmp 0x404cd4
push str.btn_custom
lea ecx, [ebp - 0x2b8]
call fcn.00420c20
test al, al
je 0x4046d7
mov ecx, dword [ebx + 0x550]
push 1
push 1
mov eax, dword [ecx]
call dword [eax + 0x1e8]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2b4]
mov eax, dword [ebp - 0x2b8]
jmp 0x404cbf
push str.BtnReturn
lea ecx, [ebp - 0x2b8]
call fcn.00420c20
test al, al
je 0x404715
mov ecx, dword [ebx + 0x550]
push 1
push 0
mov eax, dword [ecx]
call dword [eax + 0x1e8]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2b4]
mov eax, dword [ebp - 0x2b8]
jmp 0x404cbf
push str.btn_license
lea ecx, [ebp - 0x2b8]
call fcn.00420c20
test al, al
je 0x40484e
push 0x578
lea eax, [ebp - 0x830]
push 0
push eax
call fcn.005feb40
add esp, 0xc
lea ecx, [ebp - 0x830]
push 0
call fcn.00403040
mov dword [ebp - method.CDUIDialogBase.4.virtual_0], 0x69fc68
mov dword [ebp - method.CDUIDialogBase.3.virtual_0], 0x69fc60
mov dword [ebp - 0x810], 0x69fc58
mov dword [ebp - method.CDUIDialogBase.1.virtual_0], 0x69fc50
mov dword [ebp - method.std::_Ref_count_obj_alloc_class___ExceptionPtr__struct__StaticAllocator_int__.virtual_12], 0x69fc48
mov dword [ebp - method.DuiLib::CWebBrowserEventHandler.virtual_0], 0x69fbe8
push ecx
push accept
push accept
push accept
push accept
push 0
push 0x960a0000
push str._u7bOS
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x830]
push dword [ebx - 0x1c]
call fcn.00421be0
lea ecx, [ebp - 0x830]
call fcn.00421f20
lea eax, [ebp - 0x22c]
xorps xmm0, xmm0
push eax
push dword [ebp - 0x82c]
movups xmmword [ebp - 0x22c], xmm0
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [ebp - 0x220]
sub eax, dword [ebp - 0x228]
push 0x42
inc eax
push eax
mov eax, dword [ebp - 0x224]
sub eax, dword [ebp - 0x22c]
push eax
push 0
push 0
push 0xffffffffffffffff
push dword [ebp - 0x82c]
call dword [sym.imp.USER32.dll_SetWindowPos]
lea ecx, [ebp - 0x830]
call fcn.00421df0
lea ecx, [ebp - 0x830]
call fcn.00402320
mov eax, dword [ebp - 0x2b8]
lea ecx, [ebp - 0x2b4]
cmp eax, ecx
je 0x404cd4
push eax
call fcn.006140b6
add esp, 4
jmp 0x404cd4
cmp esi, dword [ebx + 0x570]
jne 0x404a4e
mov eax, dword [ebx - 0x1c]
mov dword [ebp - 0x850], eax
lea eax, [ebp - 0x218]
mov dword [ebp - 0x848], eax
lea eax, [ebp - 0x850]
push eax
mov dword [ebp - 0x84c], 0
mov dword [ebp - 0x844], 0x6a005c
mov dword [ebp - 0x840], 0x41
mov dword [ebp - 0x83c], 0
mov dword [ebp - 0x838], 0
mov dword [ebp - 0x834], 0
call dword [sym.imp.SHELL32.dll_SHBrowseForFolderW]
mov dword [ebp - 0x21c], eax
test eax, eax
je 0x40446e
lea ecx, [ebp - 0x218]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x404a42
lea ecx, [ebp - 0x218]
lea edi, [ebx + 0x590]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4048f0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.00401e40
push 1
lea eax, [ebp - 0x858]
mov ecx, edi
push eax
call fcn.00411f40
mov ecx, 0x6a2f8c
mov eax, dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40494b
test dx, dx
je 0x404947
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40494b
add eax, 4
add ecx, 4
test dx, dx
jne 0x404925
xor esi, esi
jmp 0x404950
sbb esi, esi
or esi, 1
mov edx, dword [ebp - 0x858]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40496e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
je 0x404980
push 1
push 0x6a2f8c
mov ecx, edi
call fcn.00417970
push str.GSoSoftGSoInput_
lea ecx, [ebp - 0x308]
call fcn.004133d0
lea ecx, [ebp - 0x234]
push ecx
mov ecx, eax
mov edx, dword [eax]
call dword [edx]
cmp dword [eax + 0x14], 8
jb 0x4049a5
mov eax, dword [eax]
push ecx
push eax
mov ecx, edi
call fcn.00412180
lea ecx, [ebp - 0x234]
mov esi, eax
call fcn.00402f20
cmp esi, 0xffffffff
jne 0x404a27
push str.GSoSoftGSoInput_
lea ecx, [ebp - 0x308]
call fcn.004133d0
lea ecx, [ebp - 0x234]
push ecx
mov ecx, eax
mov edx, dword [eax]
call dword [edx]
mov edx, eax
mov byte [ebp - 4], 5
cmp dword [edx + 0x14], 8
jb 0x4049eb
mov edx, dword [edx]
test edx, edx
jne 0x4049f3
xor ecx, ecx
jmp 0x404a0f
mov ecx, edx
lea esi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x404a00
sub ecx, esi
sar ecx, 1
push ecx
push edx
mov ecx, edi
call fcn.00417970
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 0
call fcn.00402f20
mov ecx, dword [ebx + 0x57c]
push dword [edi]
mov eax, dword [ecx]
call dword [eax + 0x3c]
lea ecx, [ebx - 0x20]
call fcn.0040efd0
mov edi, dword [ebp - 0x854]
push dword [ebp - 0x21c]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2b4]
mov eax, dword [ebp - 0x2b8]
jmp 0x404cbf
lea ecx, [ebx - 0x20]
call fcn.0040c8a0
mov eax, dword [ebp - 0x2b8]
lea ecx, [ebp - 0x2b4]
cmp eax, ecx
je 0x404cd4
push eax
call fcn.006140b6
add esp, 4
jmp 0x404cd4
mov eax, str.selectchanged
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x404abb
test dx, dx
je 0x404ab7
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x404abb
add ecx, 4
add eax, 4
test dx, dx
jne 0x404a95
xor eax, eax
jmp 0x404ac0
sbb eax, eax
or eax, 1
test eax, eax
jne 0x404ccc
mov ecx, dword [edi + 0x108]
lea edx, [ebp - 0x33c]
push edx
mov eax, dword [ecx]
call dword [eax + 8]
mov dword [ebp - 4], 6
mov ecx, str.opt_license
mov esi, dword [edi + 0x108]
mov eax, dword [ebp - 0x33c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x404b18
test dx, dx
je 0x404b14
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x404b18
add eax, 4
add ecx, 4
test dx, dx
jne 0x404af2
xor eax, eax
jmp 0x404b1d
sbb eax, eax
or eax, 1
test eax, eax
jne 0x404b3e
cmp byte [esi + 0xfd0], 0
mov ecx, dword [ebx + 0x560]
mov eax, dword [ecx]
je 0x404b36
push 1
jmp 0x404b38
push 0
call dword [eax + 0xec]
mov eax, dword [ebp - 0x33c]
mov ecx, str.opt2_license
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x404b76
test dx, dx
je 0x404b72
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x404b76
add eax, 4
add ecx, 4
test dx, dx
jne 0x404b50
xor eax, eax
jmp 0x404b7b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x404baa
cmp byte [esi + 0xfd0], 0
mov ecx, dword [ebx + 0x568]
mov eax, dword [ecx]
je 0x404b9d
push 1
call dword [eax + 0xec]
jmp 0x404cac
push 0
call dword [eax + 0xec]
jmp 0x404cac
push str.opt_autorun
lea ecx, [ebp - 0x33c]
call fcn.00420c20
test al, al
je 0x404bd3
cmp byte [esi + 0xfd0], 0
setne al
mov byte [ebx + 0x5a0], al
jmp 0x404cac
push str.opt_createsrv
lea ecx, [ebp - 0x33c]
call fcn.00420c20
test al, al
je 0x404c16
cmp byte [esi + 0xfd0], 0
je 0x404c03
mov byte [ebx + 0x5a6], 1
mov byte [ebx + 0x5ac], 1
jmp 0x404cac
mov byte [ebx + 0x5a6], 0
mov byte [ebx + 0x5ac], 0
jmp 0x404cac
push str.opt_shortcut
lea ecx, [ebp - 0x33c]
call fcn.00420c20
test al, al
je 0x404c3c
cmp byte [esi + 0xfd0], 0
setne al
mov byte [ebx + 0x5a1], al
jmp 0x404cac
push str.opt_quicklauncher
lea ecx, [ebp - 0x33c]
call fcn.00420c20
test al, al
je 0x404c62
cmp byte [esi + 0xfd0], 0
setne al
mov byte [ebx + 0x5a2], al
jmp 0x404cac
push str.opt_setdefaut
lea ecx, [ebp - 0x33c]
call fcn.00420c20
test al, al
je 0x404c88
cmp byte [esi + 0xfd0], 0
setne al
mov byte [ebx + 0x5a3], al
jmp 0x404cac
push str.opt_shortcut360
lea ecx, [ebp - 0x33c]
call fcn.00420c20
test al, al
je 0x404cac
cmp byte [esi + 0xfd0], 0
setne al
mov byte [ebx + 0x5a5], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x338]
mov eax, dword [ebp - 0x33c]
cmp eax, ecx
je 0x404ccc
push eax
call fcn.006140b6
add esp, 4
push edi
mov ecx, ebx
call fcn.00403370
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005c358e
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.00401f90
int3