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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x8088
call fcn.004e88a0
push ebx
push ebp
push esi
push edi
mov ebp, ecx
cmp byte [ebp], 0x3e
jne 0x4537a7
mov ecx, dword [0x520360]
mov edx, str.UseErrorLevel
call fcn.004afb20
test eax, eax
mov ecx, 0x520c68
mov al, 3
setne bl
cmp al, byte [ebp + 1]
mov byte [esp + 0x14], bl
sbb eax, eax
and eax, dword [0x520314]
push eax
push 1
push dword [esp + 0x1c]
lea eax, [esp + 0x24]
push eax
push dword [0x520360]
mov al, bl
xor al, 1
movzx eax, al
push eax
push dword [0x52035c]
push 0
push dword [0x520358]
call fcn.0044ec20
test eax, eax
jne 0x4537a7
test bl, bl
je 0x45379d
mov ecx, dword [0x51eabc]
push 1
push eax
push 0xffffffffffffffff
push str.ERROR
call fcn.004b3e10
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 0x4538d3
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
push ecx
mov ecx, dword [0x520358]
xor edx, edx
push 0
call fcn.0041e390
mov bl, al
add esp, 0xc
mov byte [esp + 0x10], bl
test bl, bl
jne 0x45381e
mov ecx, dword [0x520358]
lea edx, [esp + 0x28]
push 0
call fcn.0047abf0
mov ecx, eax
add esp, 4
mov dword [esp + 0x14], ecx
test ecx, ecx
je 0x453800
cmp ecx, 0xc
jl 0x453800
cmp ecx, 0x2b
jle 0x453826
mov ecx, dword [0x51eabc]
push 1
push 0
push 0xffffffffffffffff
push 0x5068e4
call fcn.004b3e10
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 [0x52035c]
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 0x4538b8
mov ecx, eax
movzx esi, cx
test esi, 0xffffff80
jne 0x45386d
push 2
push esi
call fcn.004d4154
add esp, 8
test eax, eax
je 0x45386d
and esi, 0xffffffdf
cmp esi, 0x44
je 0x4538a5
cmp esi, 0x4c
je 0x45389b
cmp esi, 0x54
jne 0x4538aa
lea ecx, [edi + 2]
mov byte [esp + 0x12], 0
call fcn.00429920
mulsd xmm0, qword [0x514a48]
cvttsd2si edx, xmm0
mov dword [esp + 0x1c], edx
jmp 0x4538aa
mov dword [esp + 0x24], 0
jmp 0x4538aa
mov byte [esp + 0x11], 1
movzx eax, word [edi + 2]
add edi, 2
mov ecx, eax
test ax, ax
jne 0x453850
lea eax, [esp + 0x90]
mov dword [esp + 0x88], 0
mov dword [esp + 0x80], eax
jmp 0x453922
cmp al, 0x3e
je 0x4538f5
mov edx, dword [0x520358]
mov ecx, dword [0x520360]
cmp al, 0x5c
je 0x453987
cmp word [ecx], 0
jne 0x453991
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 0x453942
mov ecx, dword [0x51eabc]
push 1
push 0
push 0xffffffffffffffff
push 0x4f04b0
call fcn.004b3e10
mov al, byte [ebp]
cmp al, 0x5c
jne 0x453959
push 1
mov ecx, ebp
call fcn.0043ebd0
mov byte [esp + 0x13], 1
cmp eax, 1
je 0x45395e
mov byte [esp + 0x13], 0
xor edi, edi
lea ebx, [esp + 0x90]
cmp byte [ebp + 1], 0
mov ecx, 0x4001
jbe 0x453a46
test ecx, ecx
jne 0x4539e6
mov dword [esp + edi*4 + 0x30], 0x4f03e8
jmp 0x453a39
cmp word [edx], 0
je 0x4538f5
cmp al, 0x5c
mov byte [esp + 0x12], 0
cmove ecx, edx
call fcn.00429920
mulsd xmm0, qword [0x514a48]
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 0x453922
mov dword [esp + 0x1c], 0x1f4
jmp 0x453922
lea esi, [ecx - 1]
mov dword [esp + edi*4 + 0x30], ebx
push esi
push dword [edi*4 + 0x520358]
push ebx
call fcn.004d95fc
mov ecx, ebx
add esp, 0xc
xor eax, eax
mov word [ebx + esi*2], ax
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x453a10
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
movzx eax, byte [ebp + 1]
inc edi
cmp edi, eax
jl 0x453976
mov eax, dword fs:[0x24]
mov dword [esp + 0x2c], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, eax
mov edi, dword [0x51b98c]
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x3c]
nop word [eax + eax]
movzx eax, byte [ebp]
add eax, 0xffffffc2
cmp eax, 0x40
ja case.0x453a87.63
movzx eax, byte [eax + 0x453ee8]
jmp dword [eax*4 + 0x453ec8]
mov al, byte [ebp + 1]
cmp al, 4
ja 0x453a9e
mov ecx, 0x4f03e8
cmp al, 3
jbe 0x453aaa
mov eax, dword [esp + 0x30]
mov esi, edx
mov edx, dword [esp + 0x34]
jmp 0x453adb
mov ecx, 0x4f03e8
mov esi, ecx
cmp al, 1
jbe 0x453abf
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
jmp 0x453adb
mov edx, 0x4f03e8
mov ecx, edx
mov esi, edx
test al, al
je 0x453ad2
mov eax, dword [esp + 0x30]
jmp 0x453adb
mov eax, 0x4f03e8
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.004b5280
add esp, 0x1c
test eax, eax
je case.0x453a87.63
mov eax, dword [0x51b98c]
cmp dword [eax + 0x54], 0xffffffff
jle 0x453ebb
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x5203dc], eax
je 0x453e25
mov eax, dword [0x51b98c]
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 0x453b46
mov ecx, 0x4f03e8
cmp al, 3
jbe 0x453b52
mov eax, dword [esp + 0x30]
mov esi, edx
mov edx, dword [esp + 0x34]
jmp 0x453b83
mov ecx, 0x4f03e8
mov esi, ecx
cmp al, 1
jbe 0x453b67
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
jmp 0x453b83
mov edx, 0x4f03e8
mov ecx, edx
mov esi, edx
test al, al
je 0x453b7a
mov eax, dword [esp + 0x30]
jmp 0x453b83
mov eax, 0x4f03e8
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.004b5280
add esp, 0x1c
test eax, eax
je 0x453afa
jmp case.0x453a87.63
mov al, byte [ebp + 1]
cmp al, 4
ja 0x453bb7
mov ecx, 0x4f03e8
cmp al, 3
jbe 0x453bc3
mov eax, dword [esp + 0x30]
mov esi, edx
mov edx, dword [esp + 0x34]
jmp 0x453bf4
mov ecx, 0x4f03e8
mov esi, ecx
cmp al, 1
jbe 0x453bd8
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
jmp 0x453bf4
mov edx, 0x4f03e8
mov ecx, edx
mov esi, edx
test al, al
je 0x453beb
mov eax, dword [esp + 0x30]
jmp 0x453bf4
mov eax, 0x4f03e8
mov ecx, eax
mov esi, eax
push 1
push ecx
push esi
push edx
mov edx, eax
mov ecx, edi
call fcn.004b50f0
add esp, 0x10
test eax, eax
jne 0x453afa
jmp case.0x453a87.63
mov al, byte [ebp + 1]
cmp al, 4
ja 0x453c22
mov ecx, 0x4f03e8
cmp al, 3
jbe 0x453c2e
mov eax, dword [esp + 0x30]
mov esi, edx
mov edx, dword [esp + 0x34]
jmp 0x453c5f
mov ecx, 0x4f03e8
mov esi, ecx
cmp al, 1
jbe 0x453c43
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
jmp 0x453c5f
mov edx, 0x4f03e8
mov ecx, edx
mov esi, edx
test al, al
je 0x453c56
mov eax, dword [esp + 0x30]
jmp 0x453c5f
mov eax, 0x4f03e8
mov ecx, eax
mov esi, eax
push 1
push ecx
push esi
push edx
mov edx, eax
mov ecx, edi
call fcn.004b50f0
add esp, 0x10
test eax, eax
je 0x453afa
jmp case.0x453a87.63
cmp byte [esp + 0x13], 0
je 0x453c97
call dword [sym.imp.USER32.dll_CountClipboardFormats]
test eax, eax
jne 0x453ebb
jmp case.0x453a87.63
mov esi, dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
push 0xd
call esi
test eax, eax
jne 0x453ebb
push 0xf
call esi
test eax, eax
jne 0x453ebb
jmp case.0x453a87.63
mov al, byte [esp + 0x10]
test al, al
je 0x453cd6
mov edx, dword [esp + 0x24]
mov cl, al
call fcn.0047adc0
cmp al, byte [esp + 0x11]
je 0x453ebb
jmp case.0x453a87.63
mov edx, dword [esp + 0x28]
lea eax, [esp + 0x80]
mov ecx, dword [esp + 0x14]
push 0
push eax
call fcn.0047ae60
add esp, 8
xorps xmm1, xmm1
ucomisd xmm0, xmm1
lahf
test ah, 0x44
jnp 0x453d01
mov al, 1
jmp 0x453d03
xor al, al
cmp al, byte [esp + 0x11]
je 0x453ebb
jmp case.0x453a87.63
test esi, esi
je 0x453e52
lea eax, [esp + 0x20]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [esp + 0x20], 0x103
jne 0x453e45
mov eax, dword [esp + 0x2c]
cmp dword [0x5203dc], eax
jne 0x453dfa
cmp byte [esp + 0x12], 0
jne 0x453d61
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 0x453e07
mov edx, 1
mov ecx, 0x8000012f
call fcn.00401860
test al, al
je 0x453a58
mov edi, dword [0x51b98c]
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x3c]
cmp byte [edi + 0xf9], 0
je 0x453a70
mov eax, dword [0x51f680]
mov ecx, 0x190
test eax, eax
cmovne ecx, eax
cmp dword [ecx*4 + 0x51fcc4], ebp
jne 0x453dc0
cmp dword [ecx*4 + 0x51f684], ebx
mov ecx, dword [esp + 0x40]
je 0x453a70
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x3c]
mov dword [eax*4 + 0x51fcc8], ebp
mov dword [eax*4 + 0x51f688], ebx
inc eax
mov dword [0x51f680], eax
cmp eax, 0x190
jl 0x453a70
mov dword [0x51f680], 0
jmp 0x453a5e
mov esi, dword [esp + 0x1c]
add esi, ebx
cmp byte [esp + 0x12], 0
jne 0x453e18
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub esi, eax
cmp esi, 5
jle 0x453800
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x453a58
mov ecx, dword [0x51b98c]
mov edx, 1
mov ecx, dword [ecx + 0x54]
call fcn.00401860
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 0x453e58
xor edi, edi
mov dword [esp + 0x20], edi
mov esi, dword [0x51eabc]
cmp byte [esi + 0x17], 0
jne 0x453e67
mov esi, dword [esi + 0xc]
mov cl, byte [esi + 0x15]
test cl, 2
je 0x453e80
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 0x453eab
mov ecx, esi
call fcn.00401490
and byte [esi + 0x15], 0x8f
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [0x51eae4], 0
je 0x453ebb
mov ecx, esi
call fcn.00401490
pop edi
mov eax, 1
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret