Function at 0x432040
Capabilities:
Check for time delay via gettickcount
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x408c
call fcn.004918b0
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0x18], esi
cmp byte [esi], 0x3e
jne 0x4320e8
mov ecx, dword [0x4ae8b8]
mov edx, str.UseErrorLevel
call fcn.00471970
test eax, eax
mov ecx, 0x4ae9b0
mov al, 3
setne bl
cmp al, byte [esi + 1]
mov byte [esp + 0x10], bl
sbb eax, eax
and eax, dword [0x4ae86c]
test bl, bl
push eax
push 1
push dword [esp + 0x18]
lea eax, [esp + 0x20]
push eax
push dword [0x4ae8b8]
sete al
movzx eax, al
push eax
push dword [0x4ae8b4]
push 0
push dword [0x4ae8b0]
call fcn.0042db10
test eax, eax
jne 0x4320e8
test bl, bl
je 0x4320df
mov ecx, dword [0x4ad0c8]
push 1
push eax
push 0xffffffffffffffff
push str.ERROR
call fcn.004744e0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov al, byte [esi]
cmp al, 0x5d
jne 0x432212
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
push ecx
mov ecx, dword [0x4ae8b0]
xor edx, edx
push 0
call fcn.00412340
mov bh, al
add esp, 0xc
mov byte [esp + 0xe], bh
test bh, bh
jne 0x43215b
mov ecx, dword [0x4ae8b0]
lea edx, [esp + 0x2c]
push 0
call fcn.0044c1b0
add esp, 4
mov dword [esp + 0x20], eax
test eax, eax
je 0x43213e
cmp eax, 0xc
jl 0x43213e
cmp eax, 0x2b
jle 0x432163
mov ecx, dword [0x4ad0c8]
push 1
push 0
push 0xffffffffffffffff
push 0x49e628
call fcn.004744e0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x10]
mov dword [esp + 0x20], eax
mov esi, dword [0x4ae8b4]
mov byte [esp + 0xd], 0
mov dword [esp + 0x24], 1
mov byte [esp + 0xc], 1
mov bl, byte [esi]
mov dword [esp + 0x28], 0
test bl, bl
je 0x4321f0
lea esp, [esp]
movzx eax, bl
test eax, 0xffffff80
jne 0x4321ac
push 2
push eax
call fcn.00485bac
add esp, 8
test eax, eax
je 0x4321ac
and bl, 0xdf
mov al, bl
cmp al, 0x44
je 0x4321e3
cmp al, 0x4c
je 0x4321d9
cmp al, 0x54
jne 0x4321e8
lea ecx, [esi + 1]
mov byte [esp + 0xc], 0
call fcn.00413430
mulsd xmm0, qword [0x4a4278]
cvttsd2si eax, xmm0
mov dword [esp + 0x28], eax
jmp 0x4321e8
mov dword [esp + 0x24], 0
jmp 0x4321e8
mov byte [esp + 0xd], 1
mov bl, byte [esi + 1]
inc esi
test bl, bl
jne 0x432190
mov esi, dword [esp + 0x18]
lea eax, [esp + 0x90]
mov dword [esp + 0x88], 0
mov dword [esp + 0x80], eax
jmp 0x4322af
mov edx, dword [0x4ae8b0]
mov ecx, dword [0x4ae8b8]
cmp al, 0x3e
je 0x43222b
cmp al, 0x5c
je 0x43222f
cmp byte [ecx], 0
jne 0x432234
cmp al, 0x5c
jne 0x432282
cmp byte [edx], 0
je 0x432282
cmp al, 0x5c
mov byte [esp + 0xc], 0
cmove ecx, edx
call fcn.00413430
mulsd xmm0, qword [0x4a4278]
mov dl, byte [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov byte [esp + 0xe], dl
mov dword [esp + 0x20], ecx
cvttsd2si eax, xmm0
mov dword [esp + 0x28], eax
cmp eax, 1
mov al, byte [esp + 0xc]
mov byte [esp + 0xd], al
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x24], eax
jge 0x4322af
mov dword [esp + 0x28], 0x1f4
jmp 0x4322af
mov byte [esp + 0xc], 1
mov al, byte [esp + 0xc]
mov byte [esp + 0xe], al
mov eax, dword [esp + 0x10]
mov dword [esp + 0x20], eax
mov al, byte [esp + 0xc]
mov byte [esp + 0xd], al
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], eax
cmp byte [esi], 0x3e
je 0x4322ca
mov ecx, dword [0x4ad0c8]
push 1
push 0
push 0xffffffffffffffff
push 0x49bca8
call fcn.004744e0
cmp byte [esi], 0x5c
jne 0x4322e2
push 1
mov ecx, esi
call fcn.00420450
mov byte [esp + 0xf], 1
cmp eax, 1
je 0x4322e7
mov byte [esp + 0xf], 0
xor edi, edi
lea ebx, [esp + 0x90]
cmp byte [esi + 1], 0
mov ecx, 0x4001
jbe 0x432352
jmp 0x432300
test ecx, ecx
jne 0x43230e
mov dword [esp + edi*4 + 0x30], 0x49bc4d
jmp 0x432349
lea esi, [ecx - 1]
mov dword [esp + edi*4 + 0x30], ebx
push esi
push dword [edi*4 + 0x4ae8b0]
push ebx
call fcn.00487600
mov ecx, ebx
mov byte [esi + ebx], 0
add esp, 0xc
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x432330
mov esi, dword [esp + 0x18]
sub ecx, edx
inc ecx
add ebx, ecx
lea ecx, [esp + 0x4091]
sub ecx, ebx
movzx eax, byte [esi + 1]
inc edi
cmp edi, eax
jl 0x432300
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, dword [0x4aa1d8]
mov edi, eax
mov dword [esp + 0x10], edi
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x14]
lea esp, [esp]
movzx eax, byte [esi]
add eax, 0xffffffc2
cmp eax, 0x3c
ja case.0x432386.63
movzx eax, byte [eax + 0x4326d8]
jmp dword [eax*4 + 0x4326b8]
mov al, byte [esi + 1]
mov ecx, 0x49bc4d
cmp al, 4
mov edi, 0x49bc4d
push 0
cmova ecx, edx
mov esi, 0x49bc4d
cmp al, 3
mov edx, 0x49bc4d
push 0
cmova edi, dword [esp + 0x44]
cmp al, 1
push 1
cmova esi, dword [esp + 0x40]
test al, al
push 0
cmovne edx, dword [esp + 0x40]
push ecx
push edi
push esi
mov ecx, ebx
call fcn.00475810
add esp, 0x1c
test eax, eax
jne 0x432658
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x10]
jmp case.0x432386.63
mov al, byte [esi + 1]
mov edi, 0x49bc4d
cmp al, 4
mov esi, 0x49bc4d
push 0
cmova edi, edx
mov ecx, 0x49bc4d
push 0
cmp al, 3
mov edx, 0x49bc4d
push 0
cmova esi, dword [esp + 0x48]
cmp al, 1
push 0
cmova ecx, dword [esp + 0x44]
test al, al
push edi
cmovne edx, dword [esp + 0x44]
push esi
push ecx
mov ecx, ebx
call fcn.00475810
add esp, 0x1c
test eax, eax
je 0x43267c
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x10]
jmp case.0x432386.63
mov cl, byte [esi + 1]
mov edi, 0x49bc4d
cmp cl, 4
mov esi, 0x49bc4d
push 1
cmova edi, edx
mov eax, 0x49bc4d
cmp cl, 3
mov edx, 0x49bc4d
push edi
cmova esi, dword [esp + 0x44]
cmp cl, 1
push esi
cmova eax, dword [esp + 0x40]
test cl, cl
push eax
cmovne edx, dword [esp + 0x40]
mov ecx, ebx
call fcn.004756a0
add esp, 0x10
test eax, eax
jne 0x43267c
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x10]
jmp case.0x432386.63
mov cl, byte [esi + 1]
mov edi, 0x49bc4d
cmp cl, 4
mov esi, 0x49bc4d
push 1
cmova edi, edx
mov eax, 0x49bc4d
cmp cl, 3
mov edx, 0x49bc4d
push edi
cmova esi, dword [esp + 0x44]
cmp cl, 1
push esi
cmova eax, dword [esp + 0x40]
test cl, cl
push eax
cmovne edx, dword [esp + 0x40]
mov ecx, ebx
call fcn.004756a0
add esp, 0x10
test eax, eax
je 0x43267c
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x10]
jmp case.0x432386.63
cmp byte [esp + 0xf], 0
je 0x43250d
call dword [sym.imp.USER32.dll_CountClipboardFormats]
test eax, eax
jne 0x432670
jmp case.0x432386.63
push 1
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
jne 0x432670
push 0xf
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
jne 0x432670
jmp case.0x432386.63
mov al, byte [esp + 0xe]
test al, al
je 0x43254e
mov edx, dword [esp + 0x24]
mov cl, al
call fcn.0044c360
cmp al, byte [esp + 0xd]
je 0x432670
jmp case.0x432386.63
mov edx, dword [esp + 0x2c]
lea eax, [esp + 0x80]
mov ecx, dword [esp + 0x20]
push 0
push eax
call fcn.0044c400
add esp, 8
xorps xmm1, xmm1
ucomisd xmm0, xmm1
lahf
test ah, 0x44
jnp 0x432579
mov al, 1
jmp 0x43257b
xor al, al
cmp al, byte [esp + 0xd]
je 0x432670
jmp case.0x432386.63
test ecx, ecx
je 0x432696
lea eax, [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [esp + 0x1c], 0x103
jne 0x432686
cmp byte [esp + 0xc], 0
jne 0x4325c7
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esp + 0x28]
add ecx, edi
sub ecx, eax
cmp ecx, 5
jle 0x43213e
mov edx, 1
mov ecx, 0x8000012f
call fcn.00401790
mov ebx, dword [0x4aa1d8]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x40]
test al, al
je 0x432370
cmp byte [ebx + 0xd9], 0
je 0x432370
mov eax, dword [0x4adbd4]
mov ecx, 0x190
test eax, eax
cmovne ecx, eax
cmp dword [ecx*4 + 0x4ae21c], esi
jne 0x432622
cmp dword [ecx*4 + 0x4adbdc], edi
mov ecx, dword [esp + 0x14]
je 0x432370
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x40]
mov dword [eax*4 + 0x4ae220], esi
mov dword [eax*4 + 0x4adbe0], edi
inc eax
mov dword [0x4adbd4], eax
cmp eax, 0x190
jl 0x432370
mov dword [0x4adbd4], 0
jmp 0x432364
mov ecx, dword [0x4aa1d8]
mov ecx, dword [ecx + 0x54]
cmp ecx, 0xffffffff
jle 0x432670
mov edx, 1
call fcn.00401790
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [0x4aa1d8]
mov ecx, dword [eax + 0x54]
jmp 0x432661
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x1c]
jmp 0x43269c
xor eax, eax
mov dword [esp + 0x1c], eax
mov ecx, dword [0x4ad0c8]
push 0x18
cdq
push edx
push eax
call fcn.00401330
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret