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

Disassembly:
sub esp, 0x80
cmp dword [0x4ca728], 0
push ebx
push ebp
push esi
jg 0x403b27
mov ecx, dword [0x4c8024]
cmp byte [ecx + 0xcd], 0
je 0x403b27
mov eax, dword [0x4ca73c]
cmp eax, dword [0x4c8020]
jge 0x403b27
cmp dword [0x4c801c], 0
je 0x403b27
cmp dword [0x4ca63c], 0
jne 0x403b27
cmp byte [ecx + 0xcc], 0
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
jne 0x40393f
cmp byte [ecx + 0xce], 0
jne 0x403932
cmp dword [ecx + 0xc0], 0xffffffff
jle 0x403932
call ebp
mov ecx, dword [0x4c8024]
sub eax, dword [ecx + 0xbc]
cmp eax, dword [ecx + 0xc0]
jb 0x403932
mov byte [ecx + 0xcc], 1
cmp byte [ecx + 0xcc], 0
je 0x403b27
mov esi, dword [0x4cce38]
xor ebx, ebx
test esi, esi
je 0x403b27
push edi
cmp byte [esi + 0x11], 0
je 0x403978
cmp byte [esi + 0x10], 0
ja 0x403978
mov eax, dword [esi + 0xc]
cmp eax, dword [ecx + 0x2c]
jl 0x403978
call ebp
mov edi, eax
mov ecx, edi
sub ecx, dword [esi + 8]
cmp ecx, dword [esi + 4]
jae 0x40399f
mov ecx, dword [0x4c8024]
mov edi, dword [esi + 0x14]
mov esi, edi
test edi, edi
jne 0x403950
pop edi
test ebx, ebx
je 0x403b27
lea ecx, [esp + 0xc]
call fcn.004041a0
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x80
ret
test ebx, ebx
jne 0x4039df
mov ecx, dword [0x4ca738]
mov ebx, 1
push 0
push ebx
call fcn.00401550
push 0x7f
push eax
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
inc dword [0x4ca73c]
add esp, 0xc
add dword [0x4c8024], 0xe8
mov byte [esp + 0x8f], 0
cmp byte [esi + 0x12], 0
mov dword [esi + 8], edi
je 0x403a32
mov byte [esi + 0x11], 0
sub dword [0x4cce44], 1
jne 0x403a32
cmp dword [0x4ca758], 0
jne 0x403a32
cmp dword [0x4cb204], 0
jne 0x403a32
cmp byte [0x4ca632], 0
je 0x403a32
push 9
push dword [0x4ca754]
call dword [sym.imp.USER32.dll_KillTimer]
movzx ecx, byte [0x4ca632]
xor edx, edx
test eax, eax
cmovne ecx, edx
mov byte [0x4ca632], cl
mov eax, dword [0x4ee514]
mov dword [0x4cce94], edi
mov edx, dword [esi]
test al, 1
jne 0x403a59
push 0
or eax, 1
mov ecx, 0x4ee518
push 0
mov dword [0x4ee514], eax
call fcn.00422440
mov eax, dword [0x4ccbd8]
mov ecx, dword [edx]
cmp ecx, dword [eax]
je 0x403a6c
cmp ecx, dword [0x4ee518]
jne 0x403a77
mov eax, dword [edx + 8]
test eax, eax
je 0x403a77
mov al, byte [eax]
jmp 0x403a79
xor al, al
mov ecx, dword [esi + 0xc]
xor dl, dl
push eax
push 0
call fcn.00404090
mov eax, dword [0x4c8024]
push 0
push 0
push 0
mov dword [eax + 0xa0], esi
inc byte [esi + 0x10]
mov ecx, dword [esi]
mov edx, ecx
push 0
push str.call
call fcn.0048cfc0
dec byte [esi + 0x10]
add esp, 0x1c
cmp byte [esi + 0x12], 0
mov edi, dword [esi + 0x14]
je 0x403b0b
cmp byte [esi + 0x11], 0
jne 0x403b0b
mov edx, dword [esi]
test edx, edx
je 0x403b0b
mov eax, dword [0x4ee514]
mov ecx, edx
test al, 1
jne 0x403ae8
push 0
or eax, 1
mov ecx, 0x4ee518
push 0
mov dword [0x4ee514], eax
call fcn.00422440
mov ecx, dword [esi]
mov eax, dword [0x4ccbd8]
mov edx, dword [edx]
cmp edx, dword [eax]
je 0x403b0b
cmp edx, dword [0x4ee518]
je 0x403b0b
test ecx, ecx
je 0x403b05
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [esi], 0
cmp dword [esi], 0
jne 0x403b1c
push 0
mov ecx, 0x4cc848
call fcn.00428830
mov ecx, dword [0x4c8024]
jmp 0x40397b
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x80
ret