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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x408c
call fcn.0049fa60
push ebx
push esi
mov esi, dword [ebp + 8]
cmp byte [esi], 0x3d
push edi
jne 0x43888f
mov eax, dword [0x4bb6b0]
push str.UseErrorLevel
call fcn.0047e090
add esp, 4
test eax, eax
setne bl
mov al, 3
cmp al, byte [esi + 1]
mov byte [esp + 0x14], bl
mov edx, dword [esp + 0x14]
sbb ecx, ecx
and ecx, dword [0x4bb704]
lea eax, [esp + 0x20]
push ecx
mov ecx, dword [0x4bb6b0]
push 1
push edx
push eax
test bl, bl
sete dl
push ecx
mov ecx, dword [0x4bb6ac]
movzx eax, dl
mov edx, dword [0x4bb6a8]
push eax
push ecx
push 0
push 0x4bd7e0
call fcn.00433ba0
test eax, eax
jne 0x43888f
test bl, bl
je 0x438884
push 1
push eax
push 0xffffffffffffffff
push str.ERROR
jmp 0x438f3b
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov al, byte [esi]
cmp al, 0x5c
jne 0x4389c3
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push 1
mov ecx, eax
mov eax, dword [0x4bb6a8]
push 0
xor edx, edx
call fcn.00412ca0
add esp, 8
mov byte [esp + 0xf], al
test al, al
jne 0x438921
mov eax, dword [0x4bb6a8]
push 0
lea ebx, [esp + 0x30]
call fcn.00455fc0
add esp, 4
mov dword [esp + 0x24], eax
test eax, eax
jne 0x4388f7
push 1
push eax
mov eax, dword [0x4bbf74]
push 0xffffffffffffffff
push 0x4a7fd8
push eax
call fcn.00481890
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp eax, 0xc
jl 0x438901
cmp eax, 0x2b
jle 0x438921
mov ecx, dword [0x4bbf74]
push 1
push 0
push 0xffffffffffffffff
push 0x4a7fd8
push ecx
call fcn.00481890
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edi, dword [0x4bb6ac]
mov al, byte [edi]
mov byte [esp + 0xd], 0
mov dword [esp + 0x14], 1
mov byte [esp + 0xc], 1
mov dword [esp + 0x10], 0
test al, al
je 0x4389a8
movzx ebx, al
test ebx, 0xffffff80
jne 0x438964
push 2
push ebx
call fcn.0049303e
add esp, 8
test eax, eax
je 0x438964
and bl, 0xdf
cmp bl, 0x44
je 0x43899b
cmp bl, 0x4c
je 0x438991
cmp bl, 0x54
jne 0x4389a0
lea esi, [edi + 1]
mov byte [esp + 0xc], 0
call fcn.00416fd0
fmul qword [0x4b0c68]
call fcn.004a11b0
mov dword [esp + 0x10], eax
jmp 0x4389a0
mov dword [esp + 0x14], 0
jmp 0x4389a0
mov byte [esp + 0xd], 1
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x438947
lea edx, [esp + 0x90]
mov dword [esp + 0x88], 0
mov dword [esp + 0x80], edx
jmp 0x438a20
mov ecx, dword [0x4bb6a8]
mov esi, dword [0x4bb6b0]
cmp al, 0x3d
je 0x4389dc
cmp al, 0x5b
je 0x4389e0
cmp byte [esi], 0
jne 0x4389e5
cmp al, 0x5b
jne 0x438a13
cmp byte [ecx], 0
je 0x438a13
mov byte [esp + 0xc], 0
cmp al, 0x5b
jne 0x4389f0
mov esi, ecx
call fcn.00416fd0
fmul qword [0x4b0c68]
call fcn.004a11b0
mov dword [esp + 0x10], eax
cmp eax, 1
jge 0x438a20
mov dword [esp + 0x10], 0x1f4
jmp 0x438a20
mov byte [esp + 0xc], 1
mov dword [esp + 0x10], 0
mov esi, dword [ebp + 8]
cmp byte [esi], 0x3d
je 0x438a3e
mov eax, dword [0x4bbf74]
push 1
push 0
push 0xffffffffffffffff
push 0x4a6904
push eax
call fcn.00481890
cmp byte [esi], 0x5b
jne 0x438a58
mov edi, 1
mov ecx, esi
call fcn.004249c0
mov byte [esp + 0xe], 1
cmp eax, edi
je 0x438a5d
mov byte [esp + 0xe], 0
mov ecx, dword [ebp + 8]
xor esi, esi
cmp byte [ecx + 1], 0
mov eax, 0x4001
lea ebx, [esp + 0x90]
jbe 0x438ac6
test eax, eax
jne 0x438a82
mov dword [esp + esi*4 + 0x30], 0x4a6869
jmp 0x438aba
mov edx, dword [esi*4 + 0x4bb6a8]
lea edi, [eax - 1]
push edi
push edx
push ebx
mov dword [esp + esi*4 + 0x3c], ebx
call fcn.004954d0
mov eax, ebx
add esp, 0xc
mov byte [edi + ebx], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x438aa4
sub eax, edx
lea ebx, [ebx + eax + 1]
lea eax, [esp + 0x4091]
sub eax, ebx
mov ecx, dword [ebp + 8]
movzx edx, byte [ecx + 1]
inc esi
cmp esi, edx
jl 0x438a74
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esp + 0x28], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x1c], eax
lea ebx, [ebx]
mov esi, dword [0x4b7468]
mov eax, dword [ebp + 8]
movzx eax, byte [eax]
add eax, 0xffffffc3
cmp eax, 0x3e
ja case.0x438aff.62
movzx ecx, byte [eax + 0x438f70]
jmp dword [ecx*4 + 0x438f50]
mov edx, dword [ebp + 8]
mov al, byte [edx + 1]
mov ebx, dword [esp + 0x40]
cmp al, 4
ja 0x438b19
mov ebx, 0x4a6869
mov ecx, dword [esp + 0x3c]
cmp al, 3
ja 0x438b26
mov ecx, 0x4a6869
mov edi, dword [esp + 0x34]
cmp al, 1
ja 0x438b33
mov edi, 0x4a6869
mov edx, dword [esp + 0x30]
test al, al
jne 0x438b40
mov edx, 0x4a6869
push 0
push 0
push 1
push 0
push ecx
push esi
mov ecx, ebx
call fcn.00482bd0
add esp, 0x18
test eax, eax
je case.0x438aff.62
mov edx, dword [0x4b7468]
cmp dword [edx + 0x54], 0xffffffff
jle 0x438ebb
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x4bd780], eax
jne 0x438eab
mov eax, dword [0x4b7468]
mov ecx, dword [eax + 0x54]
push 1
push ecx
call fcn.00401280
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp + 8]
mov al, byte [eax + 1]
mov ebx, dword [esp + 0x40]
cmp al, 4
ja 0x438bb2
mov ebx, 0x4a6869
mov ecx, dword [esp + 0x3c]
cmp al, 3
ja 0x438bbf
mov ecx, 0x4a6869
mov edi, dword [esp + 0x34]
cmp al, 1
ja 0x438bcc
mov edi, 0x4a6869
mov edx, dword [esp + 0x30]
test al, al
jne 0x438bd9
mov edx, 0x4a6869
push 0
push 0
push 0
push 0
push ecx
push esi
mov ecx, ebx
call fcn.00482bd0
add esp, 0x18
test eax, eax
jne case.0x438aff.62
mov ecx, dword [0x4b7468]
cmp dword [ecx + 0x54], 0xffffffff
jle 0x438ed9
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x4bd780], eax
jne 0x438ec9
mov edx, dword [0x4b7468]
mov eax, dword [edx + 0x54]
push 1
push eax
call fcn.00401280
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp + 8]
mov al, byte [ecx + 1]
mov edi, dword [esp + 0x40]
cmp al, 4
ja 0x438c4c
mov edi, 0x4a6869
mov edx, dword [esp + 0x3c]
cmp al, 3
ja 0x438c59
mov edx, 0x4a6869
mov ecx, dword [esp + 0x34]
cmp al, 1
ja 0x438c66
mov ecx, 0x4a6869
test al, al
mov eax, dword [esp + 0x30]
jne 0x438c73
mov eax, 0x4a6869
push 1
push edi
push edx
push ecx
push eax
push esi
call fcn.00482a00
add esp, 0x18
test eax, eax
je case.0x438aff.62
mov eax, dword [0x4b7468]
cmp dword [eax + 0x54], 0xffffffff
jle 0x438ef6
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x4bd780], eax
jne 0x438ee7
mov ecx, dword [0x4b7468]
mov edx, dword [ecx + 0x54]
push 1
push edx
call fcn.00401280
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edx, dword [ebp + 8]
mov al, byte [edx + 1]
mov edi, dword [esp + 0x40]
cmp al, 4
ja 0x438ce0
mov edi, 0x4a6869
mov edx, dword [esp + 0x3c]
cmp al, 3
ja 0x438ced
mov edx, 0x4a6869
mov ecx, dword [esp + 0x34]
cmp al, 1
ja 0x438cfa
mov ecx, 0x4a6869
test al, al
mov eax, dword [esp + 0x30]
jne 0x438d07
mov eax, 0x4a6869
push 1
push edi
push edx
push ecx
push eax
push esi
call fcn.00482a00
add esp, 0x18
test eax, eax
je 0x438b5c
jmp case.0x438aff.62
cmp byte [esp + 0xe], 0
je 0x438d3d
call dword [sym.imp.USER32.dll_CountClipboardFormats]
test eax, eax
jne 0x438ebb
jmp case.0x438aff.62
mov esi, dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
push 1
call esi
test eax, eax
jne 0x438ebb
push 0xf
call esi
test eax, eax
jne 0x438ebb
jmp case.0x438aff.62
cmp byte [esp + 0xf], 0
je 0x438d84
mov eax, dword [esp + 0x14]
mov bl, byte [esp + 0xf]
push eax
call fcn.004561b0
add esp, 4
cmp al, byte [esp + 0xd]
je 0x438ebb
jmp case.0x438aff.62
mov ecx, dword [esp + 0x2c]
mov edi, dword [esp + 0x24]
push 0
push ecx
lea eax, [esp + 0x88]
call fcn.00456260
fldz
fucompp
add esp, 8
fnstsw ax
test ah, 0x44
jnp 0x438dad
mov al, 1
jmp 0x438daf
xor al, al
cmp al, byte [esp + 0xd]
je 0x438ebb
jmp case.0x438aff.62
cmp dword [esp + 0x20], 0
je 0x438ea1
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x18]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [esp + 0x18], 0x103
jne 0x438f04
mov ecx, dword [esp + 0x28]
cmp dword [0x4bd780], ecx
jne 0x438e74
cmp byte [esp + 0xc], 0
jne 0x438e10
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [esp + 0x1c]
add edx, dword [esp + 0x10]
sub edx, eax
cmp edx, 5
jle 0x438e7b
push 1
push 0x8000012f
call fcn.00401280
add esp, 8
test al, al
je 0x438ae0
mov esi, dword [0x4b7468]
cmp byte [esi + 0xd5], 0
je 0x438ae6
mov eax, dword [0x4bd718]
mov edx, dword [ebp + 8]
mov ecx, dword [esp + 0x1c]
mov dword [eax*4 + 0x4bd0d8], edx
mov dword [eax*4 + 0x4bb068], ecx
inc eax
mov dword [0x4bd718], eax
cmp eax, 0x190
jl 0x438ae6
mov dword [0x4bd718], 0
jmp 0x438ae6
cmp byte [esp + 0xc], 0
jne 0x438e94
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [esp + 0x1c]
add edx, dword [esp + 0x10]
sub edx, eax
cmp edx, 5
jle 0x438f30
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x438ae0
mov dword [esp + 0x18], 0
jmp 0x438f0f
mov edx, dword [0x4b7468]
mov eax, dword [edx + 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [0x4b7468]
mov edx, dword [ecx + 0x54]
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [0x4b7468]
mov ecx, dword [eax + 0x54]
push ecx
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [esp + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x18]
cdq
push 0x18
push edx
push eax
mov eax, dword [0x4bbf74]
call fcn.004010d0
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 1
push 0
push 0xffffffffffffffff
push 0x4a7fd8
mov edx, dword [0x4bbf74]
push edx
call fcn.00481890
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4