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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x8088
call fcn.004cd440
push ebx
push ebp
push esi
push edi
mov ebp, ecx
cmp byte [ebp], 0x3e
mov dword [esp + 0x28], ebp
jne 0x45404c
mov ecx, dword [0x4fd288]
mov edx, str.UseErrorLevel
call fcn.004b13c0
mov esi, eax
mov al, 3
test esi, esi
setne byte [esp + 0x14]
cmp al, byte [ebp + 1]
lea eax, [esp + 0x18]
sbb ecx, ecx
and ecx, dword [0x4fd234]
test esi, esi
push ecx
push 1
push dword [esp + 0x1c]
mov ecx, 0x4fdb90
push eax
push dword [0x4fd288]
sete al
movzx eax, al
push eax
push dword [0x4fd284]
push 0
push dword [0x4fd280]
call fcn.0044f7c0
test eax, eax
jne 0x45404c
test esi, esi
je 0x454042
mov ecx, dword [0x4fb9e4]
push 1
push eax
push 0xffffffffffffffff
push str.ERROR
call fcn.004b55f0
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 0x454187
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
push ecx
mov ecx, dword [0x4fd280]
xor edx, edx
push 0
call fcn.0041f4a0
add esp, 0xc
mov byte [esp + 0x10], al
test al, al
jne 0x4540c1
mov ecx, dword [0x4fd280]
lea edx, [esp + 0x2c]
push 0
call fcn.0047b140
mov ecx, eax
add esp, 4
mov dword [esp + 0x14], ecx
test ecx, ecx
je 0x4540a3
cmp ecx, 0xc
jl 0x4540a3
cmp ecx, 0x2b
jle 0x4540c9
mov ecx, dword [0x4fb9e4]
push 1
push 0
push 0xffffffffffffffff
push 0x4e613c
call fcn.004b55f0
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x14]
mov dword [esp + 0x14], eax
mov edi, dword [0x4fd284]
mov byte [esp + 0x11], 0
mov dword [esp + 0x24], 1
mov byte [esp + 0x12], 1
movzx eax, word [edi]
mov dword [esp + 0x1c], 0
test ax, ax
je 0x45416c
mov ebx, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__isctype]
mov ecx, eax
nop dword [eax]
movzx esi, cx
test esi, 0xffffff80
je 0x45410f
xor eax, eax
jmp 0x454117
push 2
push esi
call ebx
add esp, 8
mov ecx, esi
and ecx, 0xffffffdf
test eax, eax
cmove ecx, esi
cmp ecx, 0x44
je 0x454159
cmp ecx, 0x4c
je 0x45414f
cmp ecx, 0x54
jne 0x45415e
lea ecx, [edi + 2]
mov byte [esp + 0x12], 0
call fcn.0042acb0
mulsd xmm0, qword [0x4f2f18]
cvttsd2si edx, xmm0
mov dword [esp + 0x1c], edx
jmp 0x45415e
mov dword [esp + 0x24], 0
jmp 0x45415e
mov byte [esp + 0x11], 1
movzx eax, word [edi + 2]
add edi, 2
mov ecx, eax
test ax, ax
jne 0x454100
lea eax, [esp + 0x90]
mov dword [esp + 0x88], 0
mov dword [esp + 0x80], eax
jmp 0x4541d6
cmp al, 0x3e
je 0x4541a9
mov edx, dword [0x4fd280]
mov ecx, dword [0x4fd288]
cmp al, 0x5c
je 0x454241
cmp word [ecx], 0
jne 0x45424b
mov al, byte [esp + 0x10]
mov byte [esp + 0x10], al
mov eax, dword [esp + 0x14]
mov dword [esp + 0x14], eax
mov al, byte [esp + 0x10]
mov byte [esp + 0x11], al
mov eax, dword [esp + 0x20]
mov byte [esp + 0x12], 1
mov dword [esp + 0x1c], 0
mov dword [esp + 0x24], eax
cmp byte [ebp], 0x3e
je 0x4541f2
mov ecx, dword [0x4fb9e4]
push 1
push 0
push 0xffffffffffffffff
push 0x4cfcf8
call fcn.004b55f0
cmp byte [ebp], 0x5c
jne 0x45420b
push 1
mov ecx, ebp
call fcn.0043fdf0
mov byte [esp + 0x13], 1
cmp eax, 1
je 0x454210
mov byte [esp + 0x13], 0
xor edi, edi
lea ebx, [esp + 0x90]
cmp byte [ebp + 1], 0
mov ecx, 0x4001
jbe 0x4542fe
mov ebp, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
nop
test ecx, ecx
jne 0x4542a0
mov dword [esp + edi*4 + 0x30], 0x4cfc30
jmp 0x4542e9
cmp word [edx], 0
je 0x4541a9
cmp al, 0x5c
mov byte [esp + 0x12], 0
cmove ecx, edx
call fcn.0042acb0
mulsd xmm0, qword [0x4f2f18]
mov cl, byte [esp + 0x10]
mov byte [esp + 0x10], cl
cvttsd2si eax, xmm0
mov dword [esp + 0x1c], eax
cmp eax, 1
mov eax, dword [esp + 0x14]
mov dword [esp + 0x14], eax
mov al, byte [esp + 0x10]
mov byte [esp + 0x11], al
mov eax, dword [esp + 0x20]
mov dword [esp + 0x24], eax
jge 0x4541d6
mov dword [esp + 0x1c], 0x1f4
jmp 0x4541d6
lea esi, [ecx - 1]
mov dword [esp + edi*4 + 0x30], ebx
push esi
push dword [edi*4 + 0x4fd280]
push ebx
call ebp
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 0x4542c0
sub ecx, edx
sar ecx, 1
lea ebx, [ebx + ecx*2]
add ebx, 2
lea ecx, [esp + 0x90]
mov eax, ebx
sub eax, ecx
mov ecx, 0x4001
sar eax, 1
sub ecx, eax
mov eax, dword [esp + 0x28]
inc edi
movzx eax, byte [eax + 1]
cmp edi, eax
jl 0x454230
mov ebp, dword [esp + 0x28]
mov eax, dword fs:[0x24]
mov dword [esp + 0x28], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, eax
mov edi, dword [0x4f90f4]
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x3c]
movzx eax, byte [ebp]
add eax, 0xffffffc2
cmp eax, 0x40
ja case.0x454339.63
movzx eax, byte [eax + 0x454748]
jmp dword [eax*4 + 0x454728]
mov al, byte [ebp + 1]
cmp al, 4
ja 0x454350
mov ecx, 0x4cfc30
cmp al, 3
jbe 0x45435c
mov eax, dword [esp + 0x30]
mov esi, edx
mov edx, dword [esp + 0x34]
jmp 0x45438d
mov ecx, 0x4cfc30
mov esi, ecx
cmp al, 1
jbe 0x454371
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
jmp 0x45438d
mov edx, 0x4cfc30
mov ecx, edx
mov esi, edx
test al, al
je 0x454384
mov eax, dword [esp + 0x30]
jmp 0x45438d
mov eax, 0x4cfc30
mov ecx, eax
mov esi, eax
push 0
push 0
push 1
push 0
push ecx
push esi
push edx
mov edx, eax
mov ecx, edi
call fcn.004b6b50
add esp, 0x1c
test eax, eax
je case.0x454339.63
mov eax, dword [0x4f90f4]
cmp dword [eax + 0x54], 0xffffffff
jle 0x4546ea
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x4fdb70], eax
je 0x4546d7
mov eax, dword [0x4f90f4]
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 al, byte [ebp + 1]
cmp al, 4
ja 0x4543f8
mov ecx, 0x4cfc30
cmp al, 3
jbe 0x454404
mov eax, dword [esp + 0x30]
mov esi, edx
mov edx, dword [esp + 0x34]
jmp 0x454435
mov ecx, 0x4cfc30
mov esi, ecx
cmp al, 1
jbe 0x454419
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
jmp 0x454435
mov edx, 0x4cfc30
mov ecx, edx
mov esi, edx
test al, al
je 0x45442c
mov eax, dword [esp + 0x30]
jmp 0x454435
mov eax, 0x4cfc30
mov ecx, eax
mov esi, eax
push 0
push 0
push 0
push 0
push ecx
push esi
push edx
mov edx, eax
mov ecx, edi
call fcn.004b6b50
add esp, 0x1c
test eax, eax
je 0x4543ac
jmp case.0x454339.63
mov al, byte [ebp + 1]
cmp al, 4
ja 0x454469
mov ecx, 0x4cfc30
cmp al, 3
jbe 0x454475
mov eax, dword [esp + 0x30]
mov esi, edx
mov edx, dword [esp + 0x34]
jmp 0x4544a6
mov ecx, 0x4cfc30
mov esi, ecx
cmp al, 1
jbe 0x45448a
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
jmp 0x4544a6
mov edx, 0x4cfc30
mov ecx, edx
mov esi, edx
test al, al
je 0x45449d
mov eax, dword [esp + 0x30]
jmp 0x4544a6
mov eax, 0x4cfc30
mov ecx, eax
mov esi, eax
push 1
push ecx
push esi
push edx
mov edx, eax
mov ecx, edi
call fcn.004b69c0
add esp, 0x10
test eax, eax
jne 0x4543ac
jmp case.0x454339.63
mov al, byte [ebp + 1]
cmp al, 4
ja 0x4544d4
mov ecx, 0x4cfc30
cmp al, 3
jbe 0x4544e0
mov eax, dword [esp + 0x30]
mov esi, edx
mov edx, dword [esp + 0x34]
jmp 0x454511
mov ecx, 0x4cfc30
mov esi, ecx
cmp al, 1
jbe 0x4544f5
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
jmp 0x454511
mov edx, 0x4cfc30
mov ecx, edx
mov esi, edx
test al, al
je 0x454508
mov eax, dword [esp + 0x30]
jmp 0x454511
mov eax, 0x4cfc30
mov ecx, eax
mov esi, eax
push 1
push ecx
push esi
push edx
mov edx, eax
mov ecx, edi
call fcn.004b69c0
add esp, 0x10
test eax, eax
je 0x4543ac
jmp case.0x454339.63
cmp byte [esp + 0x13], 0
je 0x454549
call dword [sym.imp.USER32.dll_CountClipboardFormats]
test eax, eax
jne 0x4546ea
jmp case.0x454339.63
mov esi, dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
push 0xd
call esi
test eax, eax
jne 0x4546ea
push 0xf
call esi
test eax, eax
jne 0x4546ea
jmp case.0x454339.63
mov al, byte [esp + 0x10]
test al, al
je 0x454588
mov edx, dword [esp + 0x24]
mov cl, al
call fcn.0047b300
cmp al, byte [esp + 0x11]
je 0x4546ea
jmp case.0x454339.63
mov edx, dword [esp + 0x2c]
lea eax, [esp + 0x80]
mov ecx, dword [esp + 0x14]
push 0
push eax
call fcn.0047b3a0
add esp, 8
xorps xmm1, xmm1
ucomisd xmm0, xmm1
lahf
test ah, 0x44
jnp 0x4545b3
mov al, 1
jmp 0x4545b5
xor al, al
cmp al, byte [esp + 0x11]
je 0x4546ea
jmp case.0x454339.63
test esi, esi
je 0x454704
lea eax, [esp + 0x20]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [esp + 0x20], 0x103
jne 0x4546f7
mov eax, dword [esp + 0x28]
cmp dword [0x4fdb70], eax
jne 0x4546ac
cmp byte [esp + 0x12], 0
jne 0x454613
mov esi, dword [esp + 0x1c]
add esi, ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, esi
sub ecx, eax
cmp ecx, 5
jle 0x4546b9
mov edx, 1
mov ecx, 0x8000012f
call fcn.004018d0
test al, al
je 0x454310
mov edi, dword [0x4f90f4]
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x3c]
cmp byte [edi + 0xf9], 0
je 0x454322
mov eax, dword [0x4fc5a0]
mov ecx, 0x190
test eax, eax
cmovne ecx, eax
cmp dword [ecx*4 + 0x4fcbe4], ebp
jne 0x454672
cmp dword [ecx*4 + 0x4fc5a4], ebx
mov ecx, dword [esp + 0x40]
je 0x454322
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x3c]
mov dword [eax*4 + 0x4fcbe8], ebp
mov dword [eax*4 + 0x4fc5a8], ebx
inc eax
mov dword [0x4fc5a0], eax
cmp eax, 0x190
jl 0x454322
mov dword [0x4fc5a0], 0
jmp 0x454316
mov esi, dword [esp + 0x1c]
add esi, ebx
cmp byte [esp + 0x12], 0
jne 0x4546ca
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub esi, eax
cmp esi, 5
jle 0x4540a3
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x454310
mov ecx, dword [0x4f90f4]
mov edx, 1
mov ecx, dword [ecx + 0x54]
call fcn.004018d0
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 + 0x20]
jmp 0x45470a
xor eax, eax
mov dword [esp + 0x20], eax
mov ecx, dword [0x4fb9e4]
push 0x18
cdq
push edx
push eax
call fcn.00401470
pop edi
mov eax, 1
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret