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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x461980
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x474860]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x3c], ecx
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x34], eax
mov dword [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, 5
ja 0x4056b9
sti
iretd
mov ebx, 1
mov edi, edi
xor eax, eax
push 0xffffffffffffffff
push eax
mov word [ebp - 0x28], ax
lea eax, [ebp + 0x18]
push eax
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
call fcn.00401f90
mov eax, ebx
mov byte [ebp - 4], 3
sub eax, 2
jne 0x4057a2
sub esp, 0x18
mov ecx, esp
push 0xffffffffffffffff
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], 7
push eax
mov word [ecx], ax
lea eax, [ebp + 0x18]
push eax
call fcn.00401f90
lea ecx, [ebp - 0x5c]
call fcn.00427850
mov esi, eax
lea eax, [ebp - 0x28]
add esp, 0x18
cmp eax, esi
je 0x405791
cmp dword [ebp - 0x14], 8
jb 0x405735
push dword [ebp - 0x28]
call fcn.00447bb4
add esp, 4
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
cmp dword [esi + 0x14], 8
jae 0x405767
mov eax, dword [esi + 0x10]
inc eax
je 0x405772
add eax, eax
push eax
lea eax, [ebp - 0x28]
push esi
push eax
call fcn.00447c20
add esp, 0xc
jmp 0x405772
mov eax, dword [esi]
mov dword [ebp - 0x28], eax
mov dword [esi], 0
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
cmp dword [ebp - 0x48], 8
jb 0x4057a2
push dword [ebp - 0x5c]
call fcn.00447bb4
add esp, 4
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x30], esp
xor eax, eax
push 0xffffffffffffffff
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [ebp + 0x48]
push eax
call fcn.00401f90
sub esp, 0x18
mov ecx, esp
mov byte [ebp - 4], 4
mov dword [ebp - 0x40], esp
xor eax, eax
push 0xffffffffffffffff
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [ebp + 0x30]
push eax
call fcn.00401f90
sub esp, 0x18
mov ecx, esp
mov byte [ebp - 4], 5
xor eax, eax
push 0xffffffffffffffff
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [ebp - 0x28]
push eax
call fcn.00401f90
push dword [ebp + 0x14]
mov edx, dword [ebp - 0x38]
push dword [ebp + 0x10]
mov ecx, dword [ebp - 0x3c]
push dword [ebp - 0x34]
mov byte [ebp - 4], 3
push edi
call int.00405950
add esp, 0x58
mov byte [ebp - 0x29], al
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, 4
ja 0x405879
stc
sbb dword [ecx - 0x3c], 0xcee83339
clc
pop eax
jge 0x4058c4
jo 0x405835
loopne 0x4058bc
inc bp
inc ebp
xchg byte [ebp + 0x7fa3ca9f], dl
bound eax, qword [edx + ebp + 0x42]
dec ebp
sub ah, dl
mov ch, dh
add eax, 0xabda0000
dec edx
cmpsd dword [esi], dword es:[edi]
lcall 0xf7b, 0x64465e93
cmp esi, dword [eax - 0x7f825caf]
jge 0x405853
cmp byte [ebp - 0x29], 0
jne 0x4058c3
add byte [ebp + 0x44], dh
test edi, edi
je 0x4058a2
mov esi, dword [edi]
test esi, esi
je 0x4058a2
push esi
call fcn.004486af
add esp, 4
test esi, esi
je 0x40589c
mov dword [edi], 0x8123
mov dword [edi], 0
mov byte [ebp - 4], 2
cmp dword [ebp - 0x14], 8
jb 0x4058b7
push dword [ebp - 0x28]
call fcn.00447bb4
add al, 0
add esp, 4
inc ebx
cmp ebx, 2
jle 0x4056c0
invalid
jmp 0x4058d4
cmp dword [ebp - 0x14], 8
jb 0x4058d4
jge 0x4058b2
or byte [edx + 0xb], dh
push dword [ebp - 0x28]
call fcn.00447bb4
add esp, 4
cmp dword [ebp + 0x2c], 8
jb 0x4058e5
push dword [ebp + 0x18]
call fcn.00447bb4
add esp, 4
xor eax, eax
cmp dword [ebp + 0x44], 8
mov dword [ebp + 0x2c], 7
mov dword [ebp + 0x28], 0
mov word [ebp + 0x18], ax
jb 0x40590a
push dword [ebp + 0x30]
call fcn.00447bb4
add esp, 4
xor eax, eax
cmp dword [ebp + 0x5c], 8
mov dword [ebp + 0x44], 7
mov dword [ebp + 0x40], 0
mov word [ebp + 0x30], ax
jb 0x40592f
push dword [ebp + 0x48]
call fcn.00447bb4
add esp, 4
mov al, byte [ebp - 0x29]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00447bb9
mov esp, ebp
pop ebp
ret