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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x808c
call fcn.0049a260
push ebx
push esi
mov esi, dword [ebp + 8]
cmp byte [esi], 0x3e
push edi
jne 0x4365b9
mov ecx, dword [0x4c7f60]
mov eax, str.UseErrorLevel
call fcn.00475ab0
test eax, eax
setne bl
mov al, 3
cmp al, byte [esi + 1]
mov byte [esp + 0x18], bl
mov edx, dword [esp + 0x18]
sbb ecx, ecx
and ecx, dword [0x4c7f0c]
lea eax, [esp + 0x20]
push ecx
mov ecx, dword [0x4c7f60]
push 1
push edx
push eax
test bl, bl
sete dl
push ecx
mov ecx, dword [0x4c7f5c]
movzx eax, dl
mov edx, dword [0x4c7f58]
push eax
push ecx
push 0
push 0x4ca140
call fcn.00431260
test eax, eax
jne 0x4365b9
test bl, bl
je 0x4365ae
push 1
push eax
push 0xffffffffffffffff
push str.ERROR
jmp 0x436b83
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov al, byte [esi]
cmp al, 0x5d
jne 0x4366ee
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push 1
mov ecx, eax
mov eax, dword [0x4c7f58]
push 0
xor edx, edx
call fcn.00412270
add esp, 8
mov byte [esp + 0x13], al
test al, al
jne 0x43664b
mov eax, dword [0x4c7f58]
push 0
lea ebx, [esp + 0x30]
call fcn.004518f0
add esp, 4
mov dword [esp + 0x28], eax
test eax, eax
jne 0x436621
push 1
push eax
mov eax, dword [0x4c87b4]
push 0xffffffffffffffff
push 0x4a531c
push eax
call fcn.004783a0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp eax, 0xc
jl 0x43662b
cmp eax, 0x2b
jle 0x43664b
mov ecx, dword [0x4c87b4]
push 1
push 0
push 0xffffffffffffffff
push 0x4a531c
push ecx
call fcn.004783a0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edi, dword [0x4c7f5c]
movzx eax, word [edi]
xor esi, esi
mov byte [esp + 0x11], 0
mov dword [esp + 0x24], 1
mov byte [esp + 0x10], 1
mov dword [esp + 0x14], esi
cmp ax, si
je 0x4366d7
movzx ebx, ax
test ebx, 0xffffff80
jne 0x43668e
push 2
push ebx
call fcn.0048fcbe
add esp, 8
cmp eax, esi
je 0x43668e
and ebx, 0xffffffdf
movzx eax, bx
cmp eax, 0x44
je 0x4366c4
cmp eax, 0x4c
je 0x4366be
cmp eax, 0x54
jne 0x4366c9
lea esi, [edi + 2]
mov byte [esp + 0x10], 0
call fcn.004130a0
fmul qword [0x4bf1c8]
call fcn.0049d390
mov dword [esp + 0x14], eax
jmp 0x4366c9
mov dword [esp + 0x24], esi
jmp 0x4366c9
mov byte [esp + 0x11], 1
movzx eax, word [edi + 2]
add edi, 2
xor esi, esi
cmp ax, si
jne 0x436671
lea edx, [esp + 0x90]
mov dword [esp + 0x88], esi
mov dword [esp + 0x80], edx
jmp 0x43674d
mov ecx, dword [0x4c7f58]
mov esi, dword [0x4c7f60]
cmp al, 0x3e
je 0x436708
cmp al, 0x5c
je 0x43670c
cmp word [esi], 0
jne 0x436712
cmp al, 0x5c
jne 0x436740
cmp word [ecx], 0
je 0x436740
mov byte [esp + 0x10], 0
cmp al, 0x5c
jne 0x43671d
mov esi, ecx
call fcn.004130a0
fmul qword [0x4bf1c8]
call fcn.0049d390
mov dword [esp + 0x14], eax
cmp eax, 1
jge 0x43674d
mov dword [esp + 0x14], 0x1f4
jmp 0x43674d
mov byte [esp + 0x10], 1
mov dword [esp + 0x14], 0
mov esi, dword [ebp + 8]
cmp byte [esi], 0x3e
je 0x43676b
mov eax, dword [0x4c87b4]
push 1
push 0
push 0xffffffffffffffff
push 0x4a2900
push eax
call fcn.004783a0
cmp byte [esi], 0x5c
jne 0x436785
mov edi, 1
mov ecx, esi
call fcn.00420f10
mov byte [esp + 0x12], 1
cmp eax, edi
je 0x43678a
mov byte [esp + 0x12], 0
mov ecx, esi
xor edi, edi
cmp byte [ecx + 1], 0
mov eax, 0x4001
lea ebx, [esp + 0x90]
jbe 0x436805
test eax, eax
jne 0x4367ae
mov dword [esp + edi*4 + 0x30], 0x4acd84
jmp 0x4367f9
mov edx, dword [edi*4 + 0x4c7f58]
lea esi, [eax - 1]
push esi
push edx
push ebx
mov dword [esp + edi*4 + 0x3c], ebx
call fcn.00491764
add esp, 0xc
xor eax, eax
mov word [ebx + esi*2], ax
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4367d2
sub eax, edx
sar eax, 1
lea ebx, [ebx + eax*2 + 2]
mov ecx, ebx
lea edx, [esp + 0x90]
sub ecx, edx
sar ecx, 1
mov eax, 0x4001
sub eax, ecx
mov ecx, dword [ebp + 8]
movzx edx, byte [ecx + 1]
inc edi
cmp edi, edx
jl 0x4367a0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x18], eax
nop
mov esi, dword [0x4c440c]
mov eax, dword [ebp + 8]
movzx eax, byte [eax]
add eax, 0xffffffc2
cmp eax, 0x3c
ja case.0x43682f.63
movzx ecx, byte [eax + 0x436bb8]
jmp dword [ecx*4 + 0x436b98]
mov edx, dword [ebp + 8]
mov al, byte [edx + 1]
mov ecx, dword [esp + 0x40]
cmp al, 4
ja 0x436849
mov ecx, 0x4acd84
mov ebx, dword [esp + 0x3c]
cmp al, 3
ja 0x436856
mov ebx, 0x4acd84
mov edi, dword [esp + 0x34]
cmp al, 1
ja 0x436863
mov edi, 0x4acd84
mov edx, dword [esp + 0x30]
test al, al
jne 0x436870
mov edx, 0x4acd84
push 0
push 0
push 1
push 0
push ebx
push esi
call fcn.004796d0
add esp, 0x18
test eax, eax
je case.0x43682f.63
mov eax, dword [0x4c440c]
mov eax, dword [eax + 0x54]
cmp eax, 0xffffffff
jle 0x4368a2
push 1
push eax
call fcn.00401340
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 ecx, dword [esp + 0x40]
cmp al, 4
ja 0x4368c3
mov ecx, 0x4acd84
mov ebx, dword [esp + 0x3c]
cmp al, 3
ja 0x4368d0
mov ebx, 0x4acd84
mov edi, dword [esp + 0x34]
cmp al, 1
ja 0x4368dd
mov edi, 0x4acd84
mov edx, dword [esp + 0x30]
test al, al
jne 0x4368ea
mov edx, 0x4acd84
push 0
push 0
push 0
push 0
push ebx
push esi
call fcn.004796d0
add esp, 0x18
test eax, eax
jne case.0x43682f.63
mov ecx, dword [0x4c440c]
mov eax, dword [ecx + 0x54]
cmp eax, 0xffffffff
jle 0x4368a2
push 1
push eax
call fcn.00401340
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 0x43693e
mov edi, 0x4acd84
mov edx, dword [esp + 0x3c]
cmp al, 3
ja 0x43694b
mov edx, 0x4acd84
mov ecx, dword [esp + 0x34]
cmp al, 1
ja 0x436958
mov ecx, 0x4acd84
test al, al
mov eax, dword [esp + 0x30]
jne 0x436965
mov eax, 0x4acd84
push 1
push edi
push edx
push ecx
push eax
push esi
call fcn.004794f0
add esp, 0x18
test eax, eax
je case.0x43682f.63
mov edx, dword [0x4c440c]
mov eax, dword [edx + 0x54]
cmp eax, 0xffffffff
jle 0x4368a2
push 1
push eax
call fcn.00401340
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 0x4369ba
mov edi, 0x4acd84
mov edx, dword [esp + 0x3c]
cmp al, 3
ja 0x4369c7
mov edx, 0x4acd84
mov ecx, dword [esp + 0x34]
cmp al, 1
ja 0x4369d4
mov ecx, 0x4acd84
test al, al
mov eax, dword [esp + 0x30]
jne 0x4369e1
mov eax, 0x4acd84
push 1
push edi
push edx
push ecx
push eax
push esi
call fcn.004794f0
add esp, 0x18
test eax, eax
je 0x43688a
jmp case.0x43682f.63
cmp byte [esp + 0x12], 0
je 0x436a17
call dword [sym.imp.USER32.dll_CountClipboardFormats]
test eax, eax
jne 0x4368a2
jmp case.0x43682f.63
mov esi, dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
push 0xd
call esi
test eax, eax
jne 0x4368a2
push 0xf
call esi
test eax, eax
jne 0x4368a2
jmp case.0x43682f.63
cmp byte [esp + 0x13], 0
je 0x436a5e
mov eax, dword [esp + 0x24]
mov bl, byte [esp + 0x13]
push eax
call fcn.00451af0
add esp, 4
cmp al, byte [esp + 0x11]
je 0x4368a2
jmp case.0x43682f.63
mov ecx, dword [esp + 0x2c]
mov edi, dword [esp + 0x28]
push 0
push ecx
lea eax, [esp + 0x88]
call fcn.00451ba0
fldz
fucompp
add esp, 8
fnstsw ax
test ah, 0x44
jnp 0x436a87
mov al, 1
jmp 0x436a89
xor al, al
cmp al, byte [esp + 0x11]
je 0x4368a2
jmp case.0x43682f.63
cmp dword [esp + 0x20], 0
je 0x436b42
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x1c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [esp + 0x1c], 0x103
jne 0x436b4c
cmp byte [esp + 0x10], 0
jne 0x436ade
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esp + 0x18]
add ecx, dword [esp + 0x14]
sub ecx, eax
cmp ecx, 5
jle 0x436b78
push 1
push 0x8000012f
call fcn.00401340
add esp, 8
test al, al
je 0x436810
mov esi, dword [0x4c440c]
cmp byte [esi + 0xf5], 0
je 0x436816
mov eax, dword [0x4ca060]
mov ecx, dword [ebp + 8]
mov edx, dword [esp + 0x18]
mov dword [eax*4 + 0x4c9a20], ecx
mov dword [eax*4 + 0x4c78c0], edx
inc eax
mov dword [0x4ca060], eax
cmp eax, 0x190
jl 0x436816
mov dword [0x4ca060], 0
jmp 0x436816
mov dword [esp + 0x1c], 0
jmp 0x436b57
mov ecx, dword [esp + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x1c]
cdq
push 0x18
push edx
push eax
mov eax, dword [0x4c87b4]
call fcn.004010e0
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 1
push 0
push 0xffffffffffffffff
push 0x4a531c
mov edx, dword [0x4c87b4]
push edx
call fcn.004783a0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4