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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + 0x70]
push ebx
push esi
mov esi, dword [ecx + 0x6c]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x10], eax
lea eax, [edi + 0x20]
cmp dword [eax], 2
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x18], eax
jne 0x40918c
cmp dword [edi + 0x40], 0
jne 0x408ff4
mov eax, dword [esi + 0x10]
mov dword [edi + 0x40], eax
mov eax, dword [esi + 0xc]
mov ebx, edi
mov dword [edi + 0x44], eax
call fcn.00408530
lea ebx, [edi + 0xa0]
cmp dword [ebx + 4], 0
ja 0x408e6c
push 0x80070057
call fcn.004017a7
mov eax, dword [ebx]
mov eax, dword [eax]
mov ecx, dword [edi + 0x40]
mov dword [eax + 8], ecx
cmp dword [edi + 0x74], 0
je 0x408ea3
lea eax, [ebp - 8]
mov ecx, esi
call fcn.0040a7c0
lea ecx, [edi + 0x3c]
push ecx
call fcn.004069c5
mov eax, dword [ebp - 8]
add eax, 0xfffffff4
cmp eax, dword [0x41cc24]
je 0x408ea3
push eax
call fcn.0040172e
mov eax, dword [0x41cc20]
lea ebx, [edi + 0x3c]
push 0x5c
mov esi, ebx
mov dword [ebp - 8], eax
mov dword [ebp - 0x14], ebx
call fcn.00406db0
xor esi, esi
cmp eax, esi
jl 0x408eef
lea ecx, [ebp - 4]
push ecx
inc eax
mov ecx, ebx
call fcn.00406dce
mov edi, eax
lea eax, [ebp - 8]
call fcn.00401d75
mov eax, dword [ebp - 4]
add eax, 0xfffffff4
cmp eax, dword [0x41cc24]
je 0x408eea
push eax
call fcn.0040172e
mov edi, dword [ebp + 8]
xor esi, esi
mov eax, dword [edi + 0x50]
cmp eax, esi
mov ebx, 0x41d698
jbe 0x408f14
mov ecx, dword [ebp - 8]
cmp dword [ecx - 8], esi
je 0x408f14
push 0x1400000
push dword [edi + 0x40]
push esi
push eax
push ecx
push ebx
call fcn.00405575
mov eax, dword [edi + 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 0x408f59
mov eax, edi
call fcn.004087ca
mov eax, dword [ebp - 8]
add eax, 0xfffffff4
cmp eax, dword [0x41cc24]
je 0x4091b8
push eax
call fcn.0040172e
jmp 0x4091b8
push esi
push esi
push dword [edi + 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 [edi + 0x78], esi
je 0x408fdd
mov ecx, dword [ebp - 0xc]
add ecx, 4
lea esi, [ebp - 4]
call fcn.00401671
push 0x419c64
mov eax, esi
call fcn.004058dc
xor ecx, ecx
mov esi, eax
call fcn.00409649
test eax, eax
jle 0x408fab
lea eax, [ebp - 4]
call fcn.004019d0
push dword [edi + 0x40]
push ecx
lea ecx, [ebp - 4]
mov esi, esp
call fcn.00401671
push ecx
mov ecx, dword [ebp - 0x14]
mov esi, esp
call fcn.00401671
call fcn.004053c1
mov eax, dword [ebp - 4]
add eax, 0xfffffff4
cmp eax, dword [0x41cc24]
je 0x408fdd
push eax
call fcn.0040172e
mov eax, dword [ebp - 8]
add eax, 0xfffffff4
cmp eax, dword [0x41cc24]
je 0x408ff1
push eax
call fcn.0040172e
mov esi, dword [ebp - 0xc]
mov eax, dword [edi + 0x40]
cmp eax, dword [esi + 0x10]
jne 0x409113
mov eax, dword [ebp - 0x10]
cmp dword [eax + 4], 0
jbe 0x409013
inc dword [esi + 0x3c]
mov dword [esi + 0x38], 1
xor esi, esi
cmp dword [edi + 0x94], esi
jle 0x40905b
add edi, 0x90
call fcn.004096ac
mov ecx, dword [ebp + 0xc]
cmp dword [eax], ecx
je 0x40904d
call fcn.004096ac
mov eax, dword [eax]
mov ecx, dword [ebp - 0x10]
cmp dword [eax + 0x70], ecx
jne 0x40904d
call fcn.004096ac
mov eax, dword [eax]
mov ebx, dword [ebp + 8]
call fcn.00408368
mov eax, dword [ebp + 8]
inc esi
cmp esi, dword [eax + 0x94]
jl 0x409023
mov edi, eax
xor esi, esi
cmp dword [edi + 0xb4], esi
jle 0x4090b2
add edi, 0xb0
call fcn.004096ac
mov ecx, dword [ebp - 0xc]
cmp dword [eax], ecx
je 0x4090a4
call fcn.004096ac
mov eax, dword [eax]
xor ebx, ebx
cmp dword [eax + 0x14], ebx
je 0x4090a4
call fcn.004096ac
mov eax, dword [eax]
mov dword [eax + 0x38], ebx
mov dword [eax + 0x10], ebx
mov dword [eax + 0x3c], ebx
mov dword [eax + 0x40], ebx
mov dword [eax + 0x48], ebx
mov dword [eax + 0x4c], ebx
mov dword [eax + 0x50], ebx
mov dword [eax + 0x54], ebx
mov eax, dword [ebp + 8]
inc esi
cmp esi, dword [eax + 0xb4]
jl 0x40906b
mov edi, eax
mov eax, dword [ebp + 0xc]
add eax, 0x28
lea esi, [edi + 0x28]
call fcn.0040a7a2
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
sub eax, dword [edi + 0x54]
cmp eax, 1
jae 0x4090d5
xor eax, eax
inc eax
jmp 0x4090da
call esi
sub eax, dword [edi + 0x54]
mov dword [edi + 0x5c], eax
call esi
push dword [edi + 0x38]
mov dword [edi + 0x54], eax
mov eax, dword [ebp + 0xc]
call fcn.004072cb
push 4
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 0
push 1
call fcn.00407fb9
mov eax, dword [ebp + 8]
push 0xc8
call fcn.004087ea
jmp 0x4091b8
mov eax, dword [ebp + 0xc]
mov ebx, edi
mov dword [esi + 0x38], 0xfffffffe
call fcn.00408368
call fcn.004084bd
test eax, eax
je 0x409164
mov eax, dword [ebp + 0xc]
add eax, 0x28
lea esi, [edi + 0x28]
call fcn.0040a7a2
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
mov ecx, eax
sub ecx, dword [edi + 0x54]
xor eax, eax
inc eax
cmp ecx, eax
jb 0x409154
call esi
sub eax, dword [edi + 0x54]
and dword [edi + 0x54], 0
mov dword [edi + 0x5c], eax
mov eax, edi
call fcn.004087ca
jmp 0x4091b8
push edi
call fcn.004081d6
mov esi, eax
test esi, esi
je 0x4091b8
push dword [ebp - 0x10]
mov ecx, dword [ebp + 0xc]
call fcn.0040719b
mov eax, dword [ebp + 0xc]
call fcn.004072b5
mov dword [esi + 0x38], 2
jmp 0x4091b8
mov eax, dword [edi + 0x40]
cmp eax, dword [esi + 0x10]
mov eax, ecx
jne 0x4091aa
inc dword [esi + 0x3c]
mov dword [esi + 0x38], 1
push dword [edi + 0x38]
call fcn.004072cb
jmp 0x4091b8
mov ebx, edi
mov dword [esi + 0x38], 0xfffffffe
call fcn.00408368
pop edi
pop esi
pop ebx
leave
ret 8