Function at 0x408ac9
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, eax
mov eax, dword [esi + 0x70]
mov dword [ebp - 0x10], eax
lea eax, [ebx + 0x20]
cmp dword [eax], 2
push edi
mov edi, dword [esi + 0x6c]
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x14], eax
jne 0x408e31
cmp dword [ebx + 0x40], 0
jne 0x408cad
mov eax, dword [edi + 0xc]
mov dword [ebx + 0x40], eax
mov eax, dword [edi + 8]
lea esi, [ebx + 0xa4]
mov dword [ebx + 0x44], eax
cmp dword [esi + 4], 0
ja 0x408b1e
push 0x80070057
call fcn.00401793
mov eax, dword [esi]
mov ecx, dword [ebx + 0x40]
mov eax, dword [eax]
mov dword [eax + 8], ecx
lea esi, [ebx + 0x3c]
push 0x2e
xor ecx, ecx
call fcn.004092e0
test eax, eax
jge 0x408b5f
lea eax, [ebp - 8]
mov ecx, edi
call fcn.0040a53d
lea ecx, [ebx + 0x3c]
push ecx
call fcn.0040a56d
mov eax, dword [ebp - 8]
add eax, 0xfffffff4
cmp eax, dword [0x41cc24]
je 0x408b5f
push eax
call fcn.0040171a
mov eax, dword [0x41cc20]
push 0x5c
lea esi, [ebx + 0x3c]
mov dword [ebp - 8], eax
call fcn.00406a25
xor esi, esi
cmp eax, esi
jl 0x408ba7
lea ecx, [ebp - 4]
push ecx
inc eax
lea ecx, [ebx + 0x3c]
call fcn.00406a43
mov edi, eax
lea eax, [ebp - 8]
call fcn.00401d26
mov eax, dword [ebp - 4]
add eax, 0xfffffff4
cmp eax, dword [0x41cc24]
je 0x408ba2
push eax
call fcn.0040171a
mov edi, dword [ebp - 0xc]
xor esi, esi
mov eax, dword [ebx + 0x50]
cmp eax, esi
jbe 0x408bcb
mov ecx, dword [ebp - 8]
cmp dword [ecx - 8], esi
je 0x408bcb
push 0x1400000
push dword [ebx + 0x40]
push esi
push eax
push ecx
mov ecx, 0x41d6a0
call fcn.0040583b
mov eax, dword [ebx + 0x38]
push esi
push 0x80
push 2
push esi
push esi
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
jne 0x408c10
mov eax, ebx
call fcn.00408494
mov eax, dword [ebp - 8]
add eax, 0xfffffff4
cmp eax, dword [0x41cc24]
je 0x408e58
push eax
call fcn.0040171a
jmp 0x408e58
push esi
push esi
push dword [ebx + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebx + 0x7c], esi
je 0x408c96
lea ecx, [edi + 4]
lea esi, [ebp - 4]
call fcn.00401678
push 0x419c5c
mov eax, esi
call fcn.00405af9
xor ecx, ecx
mov esi, eax
call fcn.00409306
test eax, eax
jle 0x408c5f
lea eax, [ebp - 4]
call fcn.004019bc
push dword [ebx + 0x40]
push ecx
lea ecx, [ebp - 4]
mov esi, esp
call fcn.00401678
push ecx
lea ecx, [ebx + 0x3c]
mov esi, esp
call fcn.00401678
mov eax, 0x41d6a0
call fcn.00405701
mov eax, dword [ebp - 4]
add eax, 0xfffffff4
cmp eax, dword [0x41cc24]
je 0x408c96
push eax
call fcn.0040171a
mov eax, dword [ebp - 8]
add eax, 0xfffffff4
cmp eax, dword [0x41cc24]
je 0x408caa
push eax
call fcn.0040171a
mov esi, dword [ebp + 8]
mov eax, dword [ebx + 0x40]
cmp eax, dword [edi + 0xc]
jne 0x408dc1
mov ecx, dword [ebp - 0x10]
xor eax, eax
cmp dword [ecx + 4], eax
jbe 0x408cca
mov dword [edi + 0x34], 1
cmp dword [ebx + 0x98], eax
mov dword [ebp - 4], eax
jle 0x408d16
lea edi, [ebx + 0x94]
mov esi, dword [ebp - 4]
call fcn.004014ed
mov ecx, dword [ebp + 8]
cmp dword [eax], ecx
je 0x408d05
call fcn.004014ed
mov eax, dword [eax]
mov ecx, dword [ebp - 0x10]
cmp dword [eax + 0x70], ecx
jne 0x408d05
call fcn.004014ed
mov eax, dword [eax]
call fcn.00408028
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [ebx + 0x98]
jl 0x408cdb
mov esi, dword [ebp + 8]
and dword [ebp - 4], 0
cmp dword [ebx + 0xb8], 0
jle 0x408d62
lea edi, [ebx + 0xb4]
mov esi, dword [ebp - 4]
call fcn.004014ed
mov ecx, dword [ebp - 0xc]
cmp dword [eax], ecx
je 0x408d51
call fcn.004014ed
mov eax, dword [eax]
cmp dword [eax + 0x10], 0
je 0x408d51
call fcn.004014ed
mov eax, dword [eax]
call fcn.004051bd
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [ebx + 0xb8]
jl 0x408d29
mov esi, dword [ebp + 8]
lea eax, [esi + 0x28]
lea esi, [ebx + 0x28]
call fcn.0040a51f
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
sub eax, dword [ebx + 0x54]
cmp eax, 1
jae 0x408d82
xor eax, eax
inc eax
jmp 0x408d87
call esi
sub eax, dword [ebx + 0x54]
mov dword [ebx + 0x5c], eax
call esi
push dword [ebx + 0x38]
mov dword [ebx + 0x54], eax
mov eax, dword [ebp + 8]
call fcn.00406f76
push 4
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 0
push 1
mov edi, ebx
call fcn.00407ca4
push 0xc8
mov eax, ebx
call fcn.004084b4
jmp 0x408e58
mov eax, esi
mov dword [edi + 0x34], 0xfffffffe
call fcn.00408028
call fcn.0040817d
test eax, eax
je 0x408e0c
lea eax, [esi + 0x28]
lea esi, [ebx + 0x28]
call fcn.0040a51f
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
mov ecx, eax
sub ecx, dword [ebx + 0x54]
xor eax, eax
inc eax
cmp ecx, eax
jb 0x408dfc
call esi
sub eax, dword [ebx + 0x54]
and dword [ebx + 0x54], 0
mov dword [ebx + 0x5c], eax
mov eax, ebx
call fcn.00408494
jmp 0x408e58
call fcn.00407ea9
mov edi, eax
test edi, edi
je 0x408e58
push dword [ebp - 0x10]
mov ecx, esi
call fcn.00406e46
mov eax, esi
call fcn.00406f60
mov dword [edi + 0x34], 2
jmp 0x408e58
mov eax, dword [ebx + 0x40]
cmp eax, dword [edi + 0xc]
mov eax, esi
jne 0x408e4c
mov dword [edi + 0x34], 1
push dword [ebx + 0x38]
call fcn.00406f76
jmp 0x408e58
mov dword [edi + 0x34], 0xfffffffe
call fcn.00408028
pop edi
pop esi
pop ebx
leave
ret 4