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

Disassembly:
push 0xffffffffffffffff
push 0x4b9b78
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
mov eax, dword [0x4e3f80]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x3c]
xor ebx, ebx
mov dword [esp + 0x24], ebx
mov ecx, dword [esp + 0x30]
mov eax, dword [ecx - 0xc]
cmp eax, 5
jge 0x40552c
mov dword [esp + 0x24], 0xffffffff
lea eax, [ecx - 0x10]
jmp 0x40584e
push 4
lea ecx, [esp + 0x40]
push ecx
lea ecx, [esp + 0x38]
call fcn.004083b0
push 5
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x38]
mov byte [esp + 0x2c], 1
call fcn.004083b0
mov byte [esp + 0x24], 2
cmp dword [edi + 0x838], ebx
je 0x405630
cmp dword [edi + 0x834], ebx
je 0x405630
mov eax, dword [esp + 0x3c]
push str..snp
push eax
call fcn.0049de7f
add esp, 8
cmp eax, ebx
jne 0x405630
cmp dword [edi + 0x83c], ebx
je 0x4057f6
mov edx, dword [edi + 0x834]
mov eax, edx
lea esi, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4055a0
mov ecx, dword [esp + 0x30]
sub eax, esi
sar eax, 1
push eax
push edx
push ecx
call fcn.0049ed39
add esp, 0xc
test eax, eax
jne 0x4057f6
push 0x2c
call fcn.004907ee
add esp, 4
cmp eax, ebx
je 0x4055df
mov esi, eax
call fcn.00405880
mov esi, eax
jmp 0x4055e1
xor esi, esi
mov edx, dword [esp + 0x2c]
push edx
mov ecx, esi
mov dword [esi + 0x14], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x24], 3
call fcn.00401a90
lea eax, [esp + 0x30]
lea ecx, [esi + 4]
push eax
call fcn.00408830
push 0xffffffffffffffff
lea ecx, [esp + 0x38]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00402490
mov edx, dword [eax]
mov dword [esi + 0x1c], edx
mov eax, dword [eax + 4]
mov dword [esi + 0x20], eax
jmp 0x4057e4
mov esi, dword [esp + 0x3c]
push 0x4c40d0
push esi
call fcn.0049de7f
add esp, 8
cmp eax, ebx
jne 0x405681
push 0x2c
call fcn.004907ee
add esp, 4
cmp eax, ebx
je 0x40566e
mov esi, eax
call fcn.00405880
mov ecx, dword [esp + 0x2c]
mov esi, eax
mov dword [esi + 0x24], 3
push ecx
jmp 0x4057a6
mov ecx, dword [esp + 0x2c]
xor esi, esi
mov dword [esi + 0x24], 3
push ecx
jmp 0x4057a6
push 0x4c40dc
push esi
call fcn.0049de7f
add esp, 8
cmp eax, ebx
jne 0x4056c4
push 0x2c
call fcn.004907ee
add esp, 4
cmp eax, ebx
je 0x4056b6
mov esi, eax
call fcn.00405880
mov esi, eax
mov dword [esi + 0x24], 4
jmp 0x4057a1
xor esi, esi
mov dword [esi + 0x24], 4
jmp 0x4057a1
push 0x4c40e8
push esi
call fcn.0049de7f
add esp, 8
cmp eax, ebx
je 0x40577f
lea eax, [esp + 0x3c]
push eax
mov ecx, 0x4c40f4
call fcn.00408210
test eax, eax
je 0x40577f
lea ecx, [esp + 0x3c]
push ecx
mov ecx, 0x4c4100
call fcn.00408210
test eax, eax
je 0x40577f
lea edx, [esp + 0x3c]
push edx
mov ecx, 0x4c410c
call fcn.00408210
test eax, eax
je 0x405754
lea eax, [esp + 0x3c]
push eax
mov ecx, 0x4c4118
call fcn.00408210
test eax, eax
je 0x405754
lea ecx, [esp + 0x3c]
push ecx
mov ecx, 0x4c4124
call fcn.00408210
test eax, eax
je 0x405754
lea edx, [esp + 0x3c]
push edx
mov ecx, 0x4c4130
call fcn.00408210
test eax, eax
jne 0x4057f6
push 0x2c
call fcn.004907ee
add esp, 4
cmp eax, ebx
je 0x405774
mov esi, eax
call fcn.00405880
mov esi, eax
mov dword [esi + 0x24], 2
jmp 0x4057a1
xor esi, esi
mov dword [esi + 0x24], 2
jmp 0x4057a1
push 0x2c
call fcn.004907ee
add esp, 4
cmp eax, ebx
je 0x405798
mov esi, eax
call fcn.00405880
mov esi, eax
jmp 0x40579a
xor esi, esi
mov dword [esi + 0x24], 1
mov eax, dword [esp + 0x2c]
push eax
mov dword [esi + 0x14], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 8], ebx
mov ecx, esi
mov dword [esi + 0x18], ebx
call fcn.00401a90
lea edx, [esp + 0x30]
push edx
lea ecx, [esi + 4]
call fcn.00408830
push 0xffffffffffffffff
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x1c]
call fcn.00402490
mov ecx, dword [eax]
mov dword [esi + 0x1c], ecx
mov edx, dword [eax + 4]
mov dword [esi + 0x20], edx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push ebp
push edi
mov ecx, esi
mov dword [esi + 0x28], eax
call fcn.00406570
mov byte [esp + 0x24], 1
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40581b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x24], bl
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40583f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x24], 0xffffffff
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405867
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 0x14