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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x8090
call fcn.004c5460
push ebx
push ebp
push esi
push edi
mov ebp, ecx
cmp byte [ebp], 0x3e
jne 0x441767
mov ecx, dword [0x4f9150]
mov edx, str.UseErrorLevel
call fcn.004921b0
test eax, eax
mov ecx, 0x4f9a70
mov al, 3
setne bl
cmp al, byte [ebp + 1]
mov byte [esp + 0x18], bl
sbb eax, eax
and eax, dword [0x4f90fc]
push eax
push 1
push dword [esp + 0x20]
lea eax, [esp + 0x28]
push eax
push dword [0x4f9150]
mov al, bl
xor al, 1
movzx eax, al
push eax
push dword [0x4f914c]
push 0
push dword [0x4f9148]
call fcn.0043cd70
test eax, eax
jne 0x441767
test bl, bl
je 0x44175d
mov ecx, dword [0x4f78d0]
push 1
push eax
push 0xffffffffffffffff
push str.ERROR
call fcn.00495fe0
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov al, byte [ebp]
cmp al, 0x5d
jne 0x44189d
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
push ecx
mov ecx, dword [0x4f9148]
xor edx, edx
push 0
call fcn.004155c0
mov bl, al
add esp, 0xc
mov byte [esp + 0x14], bl
test bl, bl
jne 0x4417de
mov ecx, dword [0x4f9148]
lea edx, [esp + 0x30]
push 0
call fcn.004621f0
mov ecx, eax
add esp, 4
mov dword [esp + 0x2c], ecx
test ecx, ecx
je 0x4417c0
cmp ecx, 0xc
jl 0x4417c0
cmp ecx, 0x2b
jle 0x4417e6
mov ecx, dword [0x4f78d0]
push 1
push 0
push 0xffffffffffffffff
push 0x4e25ec
call fcn.00495fe0
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x18]
mov dword [esp + 0x2c], eax
mov edi, dword [0x4f914c]
mov byte [esp + 0x15], 0
mov dword [esp + 0x28], 1
mov byte [esp + 0x16], 1
movzx eax, word [edi]
mov dword [esp + 0x20], 0
test ax, ax
je 0x44187f
mov ecx, eax
movzx esi, cx
test esi, 0xffffff80
je 0x44181f
xor eax, eax
jmp 0x44182a
push 2
push esi
call fcn.004b15e4
add esp, 8
mov ecx, esi
and ecx, 0xffffffdf
test eax, eax
cmove ecx, esi
cmp ecx, 0x44
je 0x44186c
cmp ecx, 0x4c
je 0x441862
cmp ecx, 0x54
jne 0x441871
lea ecx, [edi + 2]
mov byte [esp + 0x16], 0
call fcn.00420ba0
mulsd xmm0, qword [0x4ee8d8]
cvttsd2si edx, xmm0
mov dword [esp + 0x20], edx
jmp 0x441871
mov dword [esp + 0x28], 0
jmp 0x441871
mov byte [esp + 0x15], 1
movzx eax, word [edi + 2]
add edi, 2
mov ecx, eax
test ax, ax
jne 0x441810
lea eax, [esp + 0x98]
mov dword [esp + 0x90], 0
mov dword [esp + 0x88], eax
jmp 0x44193c
mov edx, dword [0x4f9148]
mov ecx, dword [0x4f9150]
cmp al, 0x3e
je 0x4418b7
cmp al, 0x5c
je 0x4418bb
cmp word [ecx], 0
jne 0x4418c1
cmp al, 0x5c
jne 0x44190f
cmp word [edx], 0
je 0x44190f
cmp al, 0x5c
mov byte [esp + 0x16], 0
cmove ecx, edx
call fcn.00420ba0
mulsd xmm0, qword [0x4ee8d8]
mov bl, byte [esp + 0x14]
mov edx, dword [esp + 0x18]
mov byte [esp + 0x14], bl
mov dword [esp + 0x2c], edx
cvttsd2si ecx, xmm0
mov dword [esp + 0x20], ecx
cmp ecx, 1
mov cl, byte [esp + 0x14]
mov byte [esp + 0x15], cl
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x28], ecx
jge 0x44193c
mov dword [esp + 0x20], 0x1f4
jmp 0x44193c
mov al, byte [esp + 0x14]
mov byte [esp + 0x14], al
mov eax, dword [esp + 0x18]
mov dword [esp + 0x2c], eax
mov al, byte [esp + 0x14]
mov byte [esp + 0x15], al
mov eax, dword [esp + 0x24]
mov byte [esp + 0x16], 1
mov dword [esp + 0x20], 0
mov dword [esp + 0x28], eax
mov al, byte [ebp]
cmp al, 0x3e
je 0x44195c
mov ecx, dword [0x4f78d0]
push 1
push 0
push 0xffffffffffffffff
push 0x4cd350
call fcn.00495fe0
mov al, byte [ebp]
cmp al, 0x5c
jne 0x441973
push 1
mov ecx, ebp
call fcn.0042e8b0
mov byte [esp + 0x17], 1
cmp eax, 1
je 0x441978
mov byte [esp + 0x17], 0
xor edi, edi
lea ebx, [esp + 0x98]
cmp byte [ebp + 1], 0
mov ecx, 0x4001
jbe 0x4419f3
nop dword [eax]
test ecx, ecx
jne 0x44199e
mov dword [esp + edi*4 + 0x38], 0x4cd2cc
jmp 0x4419ea
lea esi, [ecx - 1]
mov dword [esp + edi*4 + 0x38], ebx
push esi
push dword [edi*4 + 0x4f9148]
push ebx
call fcn.004b3100
mov ecx, ebx
add esp, 0xc
xor eax, eax
mov word [ebx + esi*2], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4419c1
sub ecx, edx
sar ecx, 1
lea ebx, [ebx + ecx*2]
add ebx, 2
lea ecx, [esp + 0x98]
mov eax, ebx
sub eax, ecx
mov ecx, 0x4001
sar eax, 1
sub ecx, eax
movzx eax, byte [ebp + 1]
inc edi
cmp edi, eax
jl 0x441990
mov eax, dword fs:[0x24]
mov dword [esp + 0x34], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
mov dword [esp + 0x18], edi
mov ebx, dword [0x4f48cc]
mov esi, dword [esp + 0x1c]
mov edx, dword [esp + 0x48]
nop word [eax + eax]
movzx eax, byte [ebp]
add eax, 0xffffffc2
cmp eax, 0x40
ja case.0x441a37.63
movzx eax, byte [eax + 0x441dd8]
jmp dword [eax*4 + 0x441db8]
mov al, byte [ebp + 1]
mov ecx, 0x4cd2cc
cmp al, 4
mov edi, 0x4cd2cc
push 0
cmova ecx, edx
mov esi, 0x4cd2cc
cmp al, 3
mov edx, 0x4cd2cc
push 0
cmova edi, dword [esp + 0x4c]
cmp al, 1
push 1
cmova esi, dword [esp + 0x48]
test al, al
push 0
cmovne edx, dword [esp + 0x48]
push ecx
push edi
push esi
mov ecx, ebx
call fcn.004972e0
add esp, 0x1c
test eax, eax
jne 0x441d32
mov edi, dword [esp + 0x18]
jmp case.0x441a37.63
mov al, byte [ebp + 1]
mov edi, 0x4cd2cc
cmp al, 4
mov esi, 0x4cd2cc
push 0
cmova edi, edx
mov ecx, 0x4cd2cc
push 0
cmp al, 3
mov edx, 0x4cd2cc
push 0
cmova esi, dword [esp + 0x50]
cmp al, 1
push 0
cmova ecx, dword [esp + 0x4c]
test al, al
push edi
cmovne edx, dword [esp + 0x4c]
push esi
push ecx
mov ecx, ebx
call fcn.004972e0
add esp, 0x1c
test eax, eax
je 0x441d32
mov edi, dword [esp + 0x18]
jmp case.0x441a37.63
mov cl, byte [ebp + 1]
mov edi, 0x4cd2cc
cmp cl, 4
mov esi, 0x4cd2cc
push 1
cmova edi, edx
mov eax, 0x4cd2cc
cmp cl, 3
mov edx, 0x4cd2cc
push edi
cmova esi, dword [esp + 0x4c]
cmp cl, 1
push esi
cmova eax, dword [esp + 0x48]
test cl, cl
push eax
cmovne edx, dword [esp + 0x48]
mov ecx, ebx
call fcn.00497150
add esp, 0x10
test eax, eax
jne 0x441d32
mov edi, dword [esp + 0x18]
jmp case.0x441a37.63
mov cl, byte [ebp + 1]
mov edi, 0x4cd2cc
cmp cl, 4
mov esi, 0x4cd2cc
push 1
cmova edi, edx
mov eax, 0x4cd2cc
cmp cl, 3
mov edx, 0x4cd2cc
push edi
cmova esi, dword [esp + 0x4c]
cmp cl, 1
push esi
cmova eax, dword [esp + 0x48]
test cl, cl
push eax
cmovne edx, dword [esp + 0x48]
mov ecx, ebx
call fcn.00497150
add esp, 0x10
test eax, eax
je 0x441d32
mov edi, dword [esp + 0x18]
jmp case.0x441a37.63
cmp byte [esp + 0x17], 0
je 0x441bae
call dword [sym.imp.USER32.dll_CountClipboardFormats]
test eax, eax
jne 0x441d79
jmp case.0x441a37.63
push 0xd
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
jne 0x441d79
push 0xf
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
jne 0x441d79
jmp case.0x441a37.63
mov al, byte [esp + 0x14]
test al, al
je 0x441bef
mov edx, dword [esp + 0x28]
mov cl, al
call fcn.00462410
cmp al, byte [esp + 0x15]
je 0x441d79
jmp case.0x441a37.63
mov edx, dword [esp + 0x30]
lea eax, [esp + 0x88]
mov ecx, dword [esp + 0x2c]
push 0
push eax
call fcn.004624b0
add esp, 8
xorps xmm1, xmm1
ucomisd xmm0, xmm1
lahf
test ah, 0x44
jnp 0x441c1a
mov al, 1
jmp 0x441c1c
xor al, al
cmp al, byte [esp + 0x15]
je 0x441d79
jmp case.0x441a37.63
test esi, esi
je 0x441d93
lea eax, [esp + 0x24]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [esp + 0x24], 0x103
jne 0x441d86
mov eax, dword [esp + 0x34]
cmp dword [0x4f9a38], eax
jne 0x441d07
cmp byte [esp + 0x16], 0
jne 0x441c7a
mov esi, dword [esp + 0x20]
add esi, edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, esi
sub ecx, eax
cmp ecx, 5
jle 0x441d14
mov edx, 1
mov ecx, 0x8000012f
call fcn.00401890
mov ebx, dword [0x4f48cc]
mov esi, dword [esp + 0x1c]
mov edx, dword [esp + 0x48]
test al, al
je 0x441a20
cmp byte [ebx + 0xf9], 0
je 0x441a20
mov eax, dword [0x4f8468]
mov ecx, 0x190
test eax, eax
cmovne ecx, eax
cmp dword [ecx*4 + 0x4f8aac], ebp
jne 0x441cd1
cmp dword [ecx*4 + 0x4f846c], edi
je 0x441a20
mov esi, dword [esp + 0x1c]
mov edx, dword [esp + 0x48]
mov dword [eax*4 + 0x4f8ab0], ebp
mov dword [eax*4 + 0x4f8470], edi
inc eax
mov dword [0x4f8468], eax
cmp eax, 0x190
jl 0x441a20
mov dword [0x4f8468], 0
jmp 0x441a0f
mov esi, dword [esp + 0x20]
add esi, edi
cmp byte [esp + 0x16], 0
jne 0x441d25
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub esi, eax
cmp esi, 5
jle 0x4417c0
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x441a09
mov eax, dword [0x4f48cc]
cmp dword [eax + 0x54], 0xffffffff
jle 0x441d79
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x4f9a38], eax
je 0x441d66
mov eax, dword [0x4f48cc]
push dword [eax + 0x54]
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x4f48cc]
mov edx, 1
mov ecx, dword [ecx + 0x54]
call fcn.00401890
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x24]
jmp 0x441d99
xor eax, eax
mov dword [esp + 0x24], eax
mov ecx, dword [0x4f78d0]
push 0x18
cdq
push edx
push eax
call fcn.004013d0
pop edi
mov eax, 1
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret