Function at 0x4045a0
Capabilities:
Check for time delay via gettickcount
Set current directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x108
cmp dword [0x4fb9d4], 0
push ebx
push ebp
push esi
push edi
jg 0x4049c9
mov ecx, dword [0x4f90f4]
cmp byte [ecx + 0xed], 0
je 0x4049c9
mov eax, dword [0x4fb9e8]
cmp eax, dword [0x4f90f0]
jge 0x4049c9
cmp dword [0x4f90ec], 0
je 0x4049c9
cmp dword [0x4fb9d0], 0
jne 0x4049c9
cmp byte [ecx + 0xec], 0
mov edx, dword [sym.imp.KERNEL32.dll_GetTickCount]
jne 0x40464c
cmp byte [ecx + 0xee], 0
jne 0x40463f
cmp dword [ecx + 0xe0], 0xffffffff
jle 0x40463f
call edx
mov ecx, dword [0x4f90f4]
mov edx, dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ecx + 0xdc]
cmp eax, dword [ecx + 0xe0]
jb 0x40463f
mov byte [ecx + 0xec], 1
cmp byte [ecx + 0xec], 0
je 0x4049c9
mov ebx, dword [0x4fe648]
xor ebp, ebp
mov dword [esp + 0x14], ebp
test ebx, ebx
je 0x4049c9
cmp byte [ebx + 0x11], 0
je 0x404688
cmp byte [ebx + 0x10], 0
ja 0x404688
mov eax, dword [ebx + 0xc]
cmp eax, dword [ecx + 0x2c]
jl 0x404688
call edx
mov edi, eax
mov ecx, edi
sub ecx, dword [ebx + 8]
cmp ecx, dword [ebx + 4]
jae 0x4046b2
mov ecx, dword [0x4f90f4]
mov esi, dword [ebx + 0x14]
mov edx, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, esi
test esi, esi
jne 0x404660
test ebp, ebp
je 0x4049c9
lea ecx, [esp + 0x18]
call fcn.00405090
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
test ebp, ebp
jne 0x40476f
mov esi, dword [0x4fb9e4]
mov dword [esp + 0x14], 1
cmp byte [esi + 0x17], 0
jne 0x4046d1
mov esi, dword [esi + 0xc]
test byte [esi + 0x15], 8
je 0x4046de
mov ecx, esi
call fcn.004014f0
mov al, byte [esi + 0x17]
cmp al, 1
jne 0x4046f6
test byte [esi + 0x15], 4
je 0x4046f1
push esi
call fcn.0044f0e0
mov ecx, dword [esi + 8]
jmp 0x404744
cmp al, 2
jne 0x40473f
mov ecx, dword [0x4fe6fc]
test ecx, ecx
jne 0x404744
mov ebp, dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
push 0xd
call ebp
test eax, eax
jne 0x404727
push 0xf
call ebp
test eax, eax
mov ecx, 0x4cfc24
mov eax, 0x4cfc30
cmove ecx, eax
jmp 0x404744
push 0
call fcn.00406840
cmp eax, 0xffffffff
mov ecx, 0x4cfc30
cmovne ecx, dword [0x4fe6f8]
jmp 0x404744
mov ecx, 0x4fc5a4
push 0x7f
push ecx
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
inc dword [0x4fb9e8]
xor eax, eax
add esp, 0xc
mov word [esp + 0x116], ax
add dword [0x4f90f4], 0x108
cmp byte [ebx + 0x12], 0
mov dword [ebx + 8], edi
je 0x4047b9
mov byte [ebx + 0x11], 0
sub dword [0x4fe654], 1
jne 0x4047b9
cmp dword [0x4fba04], 0
jne 0x4047b9
cmp dword [0x4fc558], 0
jne 0x4047b9
cmp byte [0x4fb88e], 0
je 0x4047b9
push 9
push dword [0x4fba00]
call dword [sym.imp.USER32.dll_KillTimer]
test eax, eax
je 0x4047b9
mov byte [0x4fb88e], 0
mov eax, dword [0x5000ac]
mov dword [0x4fe6ac], edi
mov edx, dword [ebx]
test al, 1
jne 0x4047e0
push 0
or eax, 1
mov ecx, 0x5000b0
push 0
mov dword [0x5000ac], eax
call fcn.0042d5b0
mov eax, dword [0x4fe1e0]
mov ecx, dword [edx]
cmp ecx, dword [eax]
je 0x4047f3
cmp ecx, dword [0x5000b0]
jne 0x404807
mov eax, 8
mov eax, dword [edx + eax]
test eax, eax
je 0x404807
mov dl, byte [eax]
mov byte [esp + 0x13], dl
jmp 0x40480c
mov byte [esp + 0x13], 0
cmp dword [0x4fb9fc], 0
mov ecx, 0x42
mov ebp, dword [0x4f90f4]
mov esi, 0x4fb8c8
mov eax, dword [ebx + 0xc]
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
xorps xmm0, xmm0
mov dword [ebp + 0x2c], eax
movlpd qword [0x4fe698], xmm0
je 0x404856
mov eax, dword [0x4fab58]
mov ecx, 0x4cfc30
test eax, eax
je 0x40484f
mov eax, dword [eax]
test eax, eax
cmovne ecx, eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov al, byte [ebp + 0xee]
test al, al
jne 0x404885
cmp byte [esp + 0x13], 0x65
sete al
mov byte [ebp + 0xee], al
jne 0x404885
mov dword [ebp], 0xffffffff
mov dword [ebp + 4], 0xffffffff
mov dword [ebp + 0x24], 0xffffffff
cmp dword [0x4fe6a4], 0
je 0x404897
cmp dword [0x4fe6a0], 0
jne 0x40489b
test al, al
je 0x4048d2
mov byte [ebp + 0xec], 0
test al, al
jne 0x4048d2
cmp dword [0x4fe6a4], 0
jge 0x4048bb
mov dword [ebp + 0xe0], 0xffffffff
jmp 0x4048d2
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp + 0xdc], eax
mov eax, dword [0x4fe6a4]
mov dword [ebp + 0xe0], eax
mov eax, dword [0x4f90f4]
mov dword [eax + 0xc0], ebx
inc byte [ebx + 0x10]
mov ecx, dword [0x4faaf4]
cmp ecx, dword [0x4faaf8]
jne 0x4048f9
call fcn.00406ef0
mov ecx, dword [0x4faaf4]
cmp ecx, dword [0x4faaf0]
jb 0x40490e
mov eax, dword [0x4fe1dc]
mov dword [ecx], eax
mov ecx, dword [0x4faaf4]
add ecx, 0xc
push 0
push 0
mov dword [0x4faaf4], ecx
push 0
mov dword [ecx], 0
mov dword [ecx + 4], str.Timer
mov dword [ecx + 8], 0
mov ecx, dword [ebx]
mov edx, ecx
push 0
push str.call
call fcn.0049ce20
sub dword [0x4faaf4], 0xc
add esp, 0x14
dec byte [ebx + 0x10]
cmp byte [ebx + 0x12], 0
mov esi, dword [ebx + 0x14]
je 0x4049a9
cmp byte [ebx + 0x11], 0
jne 0x4049a9
mov edx, dword [ebx]
test edx, edx
je 0x4049a9
mov eax, dword [0x5000ac]
mov ecx, edx
test al, 1
jne 0x404986
push 0
or eax, 1
mov ecx, 0x5000b0
push 0
mov dword [0x5000ac], eax
call fcn.0042d5b0
mov ecx, dword [ebx]
mov eax, dword [0x4fe1e0]
mov edx, dword [edx]
cmp edx, dword [eax]
je 0x4049a9
cmp edx, dword [0x5000b0]
je 0x4049a9
test ecx, ecx
je 0x4049a3
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebx], 0
cmp dword [ebx], 0
jne 0x4049ba
push 0
mov ecx, 0x4fdb90
call fcn.00434210
mov ecx, dword [0x4f90f4]
mov ebp, dword [esp + 0x14]
jmp 0x40468b
pop edi
xor al, al
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret