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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x4088
call fcn.004c1c60
push ebx
push ebp
push esi
push edi
mov ebp, ecx
cmp byte [ebp], 0x3e
mov dword [esp + 0x28], ebp
jne 0x45372b
mov ecx, dword [0x4db178]
mov edx, str.UseErrorLevel
call fcn.004ac1a0
test eax, eax
mov ecx, 0x4dba98
mov al, 3
setne bl
cmp al, byte [ebp + 1]
mov byte [esp + 0x14], bl
sbb eax, eax
and eax, dword [0x4db12c]
push eax
push 1
push dword [esp + 0x1c]
lea eax, [esp + 0x24]
push eax
push dword [0x4db178]
mov al, bl
xor al, 1
movzx eax, al
push eax
push dword [0x4db174]
push 0
push dword [0x4db170]
call fcn.0044e810
test eax, eax
jne 0x45372b
test bl, bl
je 0x453721
mov ecx, dword [0x4d995c]
push 1
push eax
push 0xffffffffffffffff
push str.ERROR
call fcn.004b04f0
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 0x45384c
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
push ecx
mov ecx, dword [0x4db170]
xor edx, edx
push 0
call fcn.0041d950
mov bh, al
add esp, 0xc
mov byte [esp + 0x10], bh
test bh, bh
jne 0x4537a0
mov ecx, dword [0x4db170]
lea edx, [esp + 0x2c]
push 0
call fcn.004775e0
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
je 0x453782
cmp eax, 0xc
jl 0x453782
cmp eax, 0x2b
jle 0x4537a8
mov ecx, dword [0x4d995c]
push 1
push 0
push 0xffffffffffffffff
push 0x4c40b0
call fcn.004b04f0
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 esi, dword [0x4db174]
mov byte [esp + 0x11], 0
mov dword [esp + 0x24], 1
mov byte [esp + 0x12], 1
mov bl, byte [esi]
mov dword [esp + 0x1c], 0
test bl, bl
je 0x453831
mov edi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__isctype]
movzx eax, bl
test eax, 0xffffff80
jne 0x4537ed
push 2
push eax
call edi
add esp, 8
test eax, eax
je 0x4537ed
and bl, 0xdf
mov al, bl
cmp al, 0x44
je 0x453824
cmp al, 0x4c
je 0x45381a
cmp al, 0x54
jne 0x453829
lea ecx, [esi + 1]
mov byte [esp + 0x12], 0
call fcn.00428e40
mulsd xmm0, qword [0x4d0a70]
cvttsd2si eax, xmm0
mov dword [esp + 0x1c], eax
jmp 0x453829
mov dword [esp + 0x24], 0
jmp 0x453829
mov byte [esp + 0x11], 1
mov bl, byte [esi + 1]
inc esi
test bl, bl
jne 0x4537d4
lea eax, [esp + 0x90]
mov dword [esp + 0x88], 0
mov dword [esp + 0x80], eax
jmp 0x45389a
cmp al, 0x3e
je 0x45386d
mov edx, dword [0x4db170]
mov ecx, dword [0x4db178]
cmp al, 0x5c
je 0x453905
cmp byte [ecx], 0
jne 0x45390e
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
mov al, byte [ebp]
cmp al, 0x3e
je 0x4538ba
mov ecx, dword [0x4d995c]
push 1
push 0
push 0xffffffffffffffff
push 0x4c3cb0
call fcn.004b04f0
mov al, byte [ebp]
cmp al, 0x5c
jne 0x4538d1
push 1
mov ecx, ebp
call fcn.0043e8a0
mov byte [esp + 0x13], 1
cmp eax, 1
je 0x4538d6
mov byte [esp + 0x13], 0
xor edi, edi
lea ebx, [esp + 0x90]
cmp byte [ebp + 1], 0
mov ecx, 0x4001
jbe 0x4539ab
mov ebp, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
test ecx, ecx
jne 0x453963
mov dword [esp + edi*4 + 0x30], 0x4c3c29
jmp 0x453996
cmp byte [edx], 0
je 0x45386d
cmp al, 0x5c
mov byte [esp + 0x12], 0
cmove ecx, edx
call fcn.00428e40
mulsd xmm0, qword [0x4d0a70]
mov dl, byte [esp + 0x10]
mov byte [esp + 0x10], dl
cvttsd2si ecx, xmm0
mov dword [esp + 0x1c], ecx
cmp ecx, 1
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x14], ecx
mov cl, byte [esp + 0x10]
mov byte [esp + 0x11], cl
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x24], ecx
jge 0x45389a
mov dword [esp + 0x1c], 0x1f4
jmp 0x45389a
lea esi, [ecx - 1]
mov dword [esp + edi*4 + 0x30], ebx
push esi
push dword [edi*4 + 0x4db170]
push ebx
call ebp
mov ecx, ebx
mov byte [esi + ebx], 0
add esp, 0xc
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x453981
sub ecx, edx
inc ecx
add ebx, ecx
lea ecx, [esp + 0x4091]
sub ecx, ebx
mov eax, dword [esp + 0x28]
inc edi
movzx eax, byte [eax + 1]
cmp edi, eax
jl 0x4538f4
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 [0x4d70f4]
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x3c]
nop
movzx eax, byte [ebp]
add eax, 0xffffffc2
cmp eax, 0x40
ja case.0x4539e7.63
movzx eax, byte [eax + 0x453e48]
jmp dword [eax*4 + 0x453e28]
mov al, byte [ebp + 1]
cmp al, 4
ja 0x4539fe
mov ecx, 0x4c3c29
cmp al, 3
jbe 0x453a0a
mov eax, dword [esp + 0x30]
mov esi, edx
mov edx, dword [esp + 0x34]
jmp 0x453a3b
mov ecx, 0x4c3c29
mov esi, ecx
cmp al, 1
jbe 0x453a1f
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
jmp 0x453a3b
mov edx, 0x4c3c29
mov ecx, edx
mov esi, edx
test al, al
je 0x453a32
mov eax, dword [esp + 0x30]
jmp 0x453a3b
mov eax, 0x4c3c29
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.004b1900
add esp, 0x1c
test eax, eax
je case.0x4539e7.63
mov eax, dword [0x4d70f4]
cmp dword [eax + 0x54], 0xffffffff
jle 0x453e1b
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x4dba60], eax
je 0x453d85
mov eax, dword [0x4d70f4]
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 0x453aa6
mov ecx, 0x4c3c29
cmp al, 3
jbe 0x453ab2
mov eax, dword [esp + 0x30]
mov esi, edx
mov edx, dword [esp + 0x34]
jmp 0x453ae3
mov ecx, 0x4c3c29
mov esi, ecx
cmp al, 1
jbe 0x453ac7
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
jmp 0x453ae3
mov edx, 0x4c3c29
mov ecx, edx
mov esi, edx
test al, al
je 0x453ada
mov eax, dword [esp + 0x30]
jmp 0x453ae3
mov eax, 0x4c3c29
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.004b1900
add esp, 0x1c
test eax, eax
je 0x453a5a
jmp case.0x4539e7.63
mov al, byte [ebp + 1]
cmp al, 4
ja 0x453b17
mov ecx, 0x4c3c29
cmp al, 3
jbe 0x453b23
mov eax, dword [esp + 0x30]
mov esi, edx
mov edx, dword [esp + 0x34]
jmp 0x453b54
mov ecx, 0x4c3c29
mov esi, ecx
cmp al, 1
jbe 0x453b38
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
jmp 0x453b54
mov edx, 0x4c3c29
mov ecx, edx
mov esi, edx
test al, al
je 0x453b4b
mov eax, dword [esp + 0x30]
jmp 0x453b54
mov eax, 0x4c3c29
mov ecx, eax
mov esi, eax
push 1
push ecx
push esi
push edx
mov edx, eax
mov ecx, edi
call fcn.004b1780
add esp, 0x10
test eax, eax
jne 0x453a5a
jmp case.0x4539e7.63
mov al, byte [ebp + 1]
cmp al, 4
ja 0x453b82
mov ecx, 0x4c3c29
cmp al, 3
jbe 0x453b8e
mov eax, dword [esp + 0x30]
mov esi, edx
mov edx, dword [esp + 0x34]
jmp 0x453bbf
mov ecx, 0x4c3c29
mov esi, ecx
cmp al, 1
jbe 0x453ba3
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
jmp 0x453bbf
mov edx, 0x4c3c29
mov ecx, edx
mov esi, edx
test al, al
je 0x453bb6
mov eax, dword [esp + 0x30]
jmp 0x453bbf
mov eax, 0x4c3c29
mov ecx, eax
mov esi, eax
push 1
push ecx
push esi
push edx
mov edx, eax
mov ecx, edi
call fcn.004b1780
add esp, 0x10
test eax, eax
je 0x453a5a
jmp case.0x4539e7.63
cmp byte [esp + 0x13], 0
je 0x453bf7
call dword [sym.imp.USER32.dll_CountClipboardFormats]
test eax, eax
jne 0x453e1b
jmp case.0x4539e7.63
mov esi, dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
push 1
call esi
test eax, eax
jne 0x453e1b
push 0xf
call esi
test eax, eax
jne 0x453e1b
jmp case.0x4539e7.63
mov al, byte [esp + 0x10]
test al, al
je 0x453c36
mov edx, dword [esp + 0x24]
mov cl, al
call fcn.00477860
cmp al, byte [esp + 0x11]
je 0x453e1b
jmp case.0x4539e7.63
mov edx, dword [esp + 0x2c]
lea eax, [esp + 0x80]
mov ecx, dword [esp + 0x14]
push 0
push eax
call fcn.00477900
add esp, 8
xorps xmm1, xmm1
ucomisd xmm0, xmm1
lahf
test ah, 0x44
jnp 0x453c61
mov al, 1
jmp 0x453c63
xor al, al
cmp al, byte [esp + 0x11]
je 0x453e1b
jmp case.0x4539e7.63
test esi, esi
je 0x453db2
lea eax, [esp + 0x20]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [esp + 0x20], 0x103
jne 0x453da5
mov eax, dword [esp + 0x28]
cmp dword [0x4dba60], eax
jne 0x453d5a
cmp byte [esp + 0x12], 0
jne 0x453cc1
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 0x453d67
mov edx, 1
mov ecx, 0x8000012f
call fcn.00401870
test al, al
je 0x4539bd
mov edi, dword [0x4d70f4]
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x3c]
cmp byte [edi + 0xd9], 0
je 0x4539d0
mov eax, dword [0x4da498]
mov ecx, 0x190
test eax, eax
cmovne ecx, eax
cmp dword [ecx*4 + 0x4daadc], ebp
jne 0x453d20
cmp dword [ecx*4 + 0x4da49c], ebx
mov ecx, dword [esp + 0x40]
je 0x4539d0
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x3c]
mov dword [eax*4 + 0x4daae0], ebp
mov dword [eax*4 + 0x4da4a0], ebx
inc eax
mov dword [0x4da498], eax
cmp eax, 0x190
jl 0x4539d0
mov dword [0x4da498], 0
jmp 0x4539c3
mov esi, dword [esp + 0x1c]
add esi, ebx
cmp byte [esp + 0x12], 0
jne 0x453d78
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub esi, eax
cmp esi, 5
jle 0x453782
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4539bd
mov ecx, dword [0x4d70f4]
mov edx, 1
mov ecx, dword [ecx + 0x54]
call fcn.00401870
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 edi, dword [esp + 0x20]
jmp 0x453db8
xor edi, edi
mov dword [esp + 0x20], edi
mov esi, dword [0x4d995c]
cmp byte [esi + 0x17], 0
jne 0x453dc7
mov esi, dword [esi + 0xc]
mov cl, byte [esi + 0x15]
test cl, 2
je 0x453de0
and cl, 0x3d
mov byte [esi + 0x15], cl
mov ecx, dword [esi]
push ecx
mov edx, dword [ecx]
call dword [edx + 8]
mov cl, byte [esi + 0x15]
mov eax, edi
and cl, 0x9b
cdq
or cl, 0x18
mov dword [esi], eax
mov dword [esi + 4], edx
mov byte [esi + 0x15], cl
jge 0x453e0b
mov ecx, esi
call fcn.004014a0
and byte [esi + 0x15], 0x8f
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [0x4d9984], 0
je 0x453e1b
mov ecx, esi
call fcn.004014a0
pop edi
mov eax, 1
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret