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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x108
cmp dword [0x4faa54], 0
push ebx
push ebp
push esi
push edi
jg 0x404719
mov ecx, dword [0x4f8174]
cmp byte [ecx + 0xed], 0
je 0x404719
mov eax, dword [0x4faa68]
cmp eax, dword [0x4f8170]
jge 0x404719
cmp dword [0x4f816c], 0
je 0x404719
cmp dword [0x4faa50], 0
jne 0x404719
cmp byte [ecx + 0xec], 0
mov edx, dword [sym.imp.KERNEL32.dll_GetTickCount]
jne 0x40439c
cmp byte [ecx + 0xee], 0
jne 0x40438f
cmp dword [ecx + 0xe0], 0xffffffff
jle 0x40438f
call edx
mov ecx, dword [0x4f8174]
mov edx, dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ecx + 0xdc]
cmp eax, dword [ecx + 0xe0]
jb 0x40438f
mov byte [ecx + 0xec], 1
cmp byte [ecx + 0xec], 0
je 0x404719
mov ebx, dword [0x4fd6c8]
xor ebp, ebp
mov dword [esp + 0x14], ebp
test ebx, ebx
je 0x404719
cmp byte [ebx + 0x11], 0
je 0x4043d8
cmp byte [ebx + 0x10], 0
ja 0x4043d8
mov eax, dword [ebx + 0xc]
cmp eax, dword [ecx + 0x2c]
jl 0x4043d8
call edx
mov edi, eax
mov ecx, edi
sub ecx, dword [ebx + 8]
cmp ecx, dword [ebx + 4]
jae 0x404402
mov ecx, dword [0x4f8174]
mov esi, dword [ebx + 0x14]
mov edx, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, esi
test esi, esi
jne 0x4043b0
test ebp, ebp
je 0x404719
lea ecx, [esp + 0x18]
call fcn.00404de0
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
test ebp, ebp
jne 0x4044bf
mov esi, dword [0x4faa64]
mov dword [esp + 0x14], 1
cmp byte [esi + 0x17], 0
jne 0x404421
mov esi, dword [esi + 0xc]
test byte [esi + 0x15], 8
je 0x40442e
mov ecx, esi
call fcn.004014f0
mov al, byte [esi + 0x17]
cmp al, 1
jne 0x404446
test byte [esi + 0x15], 4
je 0x404441
push esi
call fcn.0044e610
mov ecx, dword [esi + 8]
jmp 0x404494
cmp al, 2
jne 0x40448f
mov ecx, dword [0x4fd77c]
test ecx, ecx
jne 0x404494
mov ebp, dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
push 0xd
call ebp
test eax, eax
jne 0x404477
push 0xf
call ebp
test eax, eax
mov ecx, 0x4cec24
mov eax, 0x4cec30
cmove ecx, eax
jmp 0x404494
push 0
call fcn.00406590
cmp eax, 0xffffffff
mov ecx, 0x4cec30
cmovne ecx, dword [0x4fd778]
jmp 0x404494
mov ecx, 0x4fb624
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 [0x4faa68]
xor eax, eax
add esp, 0xc
mov word [esp + 0x116], ax
add dword [0x4f8174], 0x108
cmp byte [ebx + 0x12], 0
mov dword [ebx + 8], edi
je 0x404509
mov byte [ebx + 0x11], 0
sub dword [0x4fd6d4], 1
jne 0x404509
cmp dword [0x4faa84], 0
jne 0x404509
cmp dword [0x4fb5d8], 0
jne 0x404509
cmp byte [0x4fa90e], 0
je 0x404509
push 9
push dword [0x4faa80]
call dword [sym.imp.USER32.dll_KillTimer]
test eax, eax
je 0x404509
mov byte [0x4fa90e], 0
mov eax, dword [0x4ff12c]
mov dword [0x4fd72c], edi
mov edx, dword [ebx]
test al, 1
jne 0x404530
push 0
or eax, 1
mov ecx, 0x4ff130
push 0
mov dword [0x4ff12c], eax
call fcn.0042d040
mov eax, dword [0x4fd260]
mov ecx, dword [edx]
cmp ecx, dword [eax]
je 0x404543
cmp ecx, dword [0x4ff130]
jne 0x404557
mov eax, 8
mov eax, dword [edx + eax]
test eax, eax
je 0x404557
mov dl, byte [eax]
mov byte [esp + 0x13], dl
jmp 0x40455c
mov byte [esp + 0x13], 0
cmp dword [0x4faa7c], 0
mov ecx, 0x42
mov ebp, dword [0x4f8174]
mov esi, 0x4fa948
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 [0x4fd718], xmm0
je 0x4045a6
mov eax, dword [0x4f9bd8]
mov ecx, 0x4cec30
test eax, eax
je 0x40459f
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 0x4045d5
cmp byte [esp + 0x13], 0x65
sete al
mov byte [ebp + 0xee], al
jne 0x4045d5
mov dword [ebp], 0xffffffff
mov dword [ebp + 4], 0xffffffff
mov dword [ebp + 0x24], 0xffffffff
cmp dword [0x4fd724], 0
je 0x4045e7
cmp dword [0x4fd720], 0
jne 0x4045eb
test al, al
je 0x404622
mov byte [ebp + 0xec], 0
test al, al
jne 0x404622
cmp dword [0x4fd724], 0
jge 0x40460b
mov dword [ebp + 0xe0], 0xffffffff
jmp 0x404622
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp + 0xdc], eax
mov eax, dword [0x4fd724]
mov dword [ebp + 0xe0], eax
mov eax, dword [0x4f8174]
mov dword [eax + 0xc0], ebx
inc byte [ebx + 0x10]
mov ecx, dword [0x4f9b74]
cmp ecx, dword [0x4f9b78]
jne 0x404649
call fcn.00406c70
mov ecx, dword [0x4f9b74]
cmp ecx, dword [0x4f9b70]
jb 0x40465e
mov eax, dword [0x4fd25c]
mov dword [ecx], eax
mov ecx, dword [0x4f9b74]
add ecx, 0xc
push 0
push 0
mov dword [0x4f9b74], 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.0049c630
sub dword [0x4f9b74], 0xc
add esp, 0x14
dec byte [ebx + 0x10]
cmp byte [ebx + 0x12], 0
mov esi, dword [ebx + 0x14]
je 0x4046f9
cmp byte [ebx + 0x11], 0
jne 0x4046f9
mov edx, dword [ebx]
test edx, edx
je 0x4046f9
mov eax, dword [0x4ff12c]
mov ecx, edx
test al, 1
jne 0x4046d6
push 0
or eax, 1
mov ecx, 0x4ff130
push 0
mov dword [0x4ff12c], eax
call fcn.0042d040
mov ecx, dword [ebx]
mov eax, dword [0x4fd260]
mov edx, dword [edx]
cmp edx, dword [eax]
je 0x4046f9
cmp edx, dword [0x4ff130]
je 0x4046f9
test ecx, ecx
je 0x4046f3
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebx], 0
cmp dword [ebx], 0
jne 0x40470a
push 0
mov ecx, 0x4fcc10
call fcn.00433b80
mov ecx, dword [0x4f8174]
mov ebp, dword [esp + 0x14]
jmp 0x4043db
pop edi
xor al, al
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret