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

Disassembly:
push 0xffffffffffffffff
push 0x59156221
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x278
push ebx
push ebp
mov ebp, ecx
push esi
push edi
push 1
lea eax, [ebp + 0x88]
lea ecx, [esp + 0x48]
push eax
call fcn.590b5cc0
mov edi, dword [ebp + 0xac]
mov ebx, dword [esp + 0x298]
dec edi
mov dword [esp + 0x290], 0
test edi, edi
mov dword [esp + 0x18], 0xffffffff
jl 0x5905eda8
lea esi, [edi + edi*8]
shl esi, 3
sub esi, edi
shl esi, 3
mov ecx, dword [ebp + 0xa8]
lea eax, [ebx + 4]
push 0x80
push eax
lea edx, [esi + ecx + 4]
push edx
call fcn.590966e0
add esp, 0xc
test eax, eax
je 0x5905eda4
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp + 0xa8]
add ecx, esi
sub eax, dword [ecx + 0x220]
cmp eax, 0x1b7740
jbe 0x5905ed93
mov ecx, dword [ecx + 0x208]
cmp ecx, 0xffffffff
je 0x5905ed5d
push ecx
call fcn.5908a3dd
mov edx, dword [ebp + 0xa8]
lea eax, [esi + edx + 0x104]
push eax
call fcn.5908b75f
add esp, 8
mov eax, dword [ebp + 0xac]
sub eax, edi
dec eax
je 0x5905ed8d
mov ecx, dword [ebp + 0xa8]
lea edx, [eax + eax*8]
shl edx, 3
sub edx, eax
lea eax, [esi + ecx + 0x238]
shl edx, 3
push edx
add ecx, esi
push eax
push ecx
call fcn.5908a070
add esp, 0xc
dec dword [ebp + 0xac]
dec edi
sub esi, 0x238
test edi, edi
jge 0x5905ecf7
jmp 0x5905eda8
mov dword [esp + 0x18], edi
xor eax, eax
lea edx, [esp + 0x14]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
lea eax, [esp + 0x10]
push edx
push eax
push ebx
mov dword [esp + 0x30], 1
call fcn.5905eba0
add esp, 0xc
test eax, eax
jne 0x5905ee16
mov eax, dword [ebx + 0x128]
test eax, eax
je 0x5905ee16
mov ecx, dword [ebx + 0x12c]
mov dword [esp + 0x24], 0
push ecx
call fcn.59088f8f
mov ecx, dword [ebx + 0x12c]
mov esi, dword [ebx + 0x128]
mov dword [esp + 0x18], ecx
mov edx, ecx
mov edi, eax
mov dword [esp + 0x14], eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
add esp, 4
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx + 0x128]
test eax, eax
je 0x5905ee33
push eax
call fcn.59088ea6
add esp, 4
mov dword [ebx + 0x128], 0
mov edi, dword [esp + 0x18]
cmp edi, 0xffffffff
jne 0x5905ef80
mov ecx, 0x8d
xor eax, eax
lea edi, [esp + 0x54]
lea esi, [ebx + 4]
rep stosd dword es:[edi], eax
mov ecx, 0x20
lea edi, [esp + 0x54]
mov dword [esp + 0x258], 0xffffffff
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebx + 0x94]
mov edx, dword [ebx]
mov dword [esp + 0x270], eax
mov eax, dword [ebx + 0x90]
mov dword [esp + 0x260], eax
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x268], ecx
mov dword [esp + 0x54], edx
call fcn.59059630
add esp, 4
mov ecx, dword [esp + 0x20]
push 0x180
push 0x8101
push ecx
mov byte [esp + 0x29c], 1
call fcn.5908a6ad
add esp, 0xc
cmp eax, 0xffffffff
je 0x5905ef69
mov esi, dword [esp + 0x20]
mov ecx, dword [esi - 8]
cmp ecx, 0x104
jl 0x5905eedc
mov ecx, 0x103
mov edx, ecx
lea edi, [esp + 0x154]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, dword [esp + 0x10]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x258], eax
push ecx
push edx
push eax
call fcn.5908a4bd
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x274]
mov ecx, dword [esp + 0x278]
add esp, 0xc
cdq
add esi, eax
lea edi, [ebp + 0xa8]
mov dword [esp + 0x268], esi
push 0xffffffffffffffff
mov esi, dword [edi + 4]
adc ecx, edx
lea eax, [esi + 1]
mov dword [esp + 0x270], ecx
push eax
mov ecx, edi
call fcn.59060810
mov edx, dword [edi]
lea ecx, [esi + esi*8]
shl ecx, 3
sub ecx, esi
lea esi, [esp + 0x50]
lea edi, [edx + ecx*8]
mov ecx, 0x8e
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp + 0xac]
dec eax
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x290], 0
call fcn.590a22e0
mov edi, dword [esp + 0x18]
jmp 0x5905efe7
mov eax, dword [ebp + 0xa8]
lea esi, [edi + edi*8]
shl esi, 3
sub esi, edi
shl esi, 3
lea ebx, [esi + eax]
mov eax, dword [esi + eax + 0x208]
cmp eax, 0xffffffff
mov dword [esp + 0x1c], eax
je 0x5905efe7
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebx + 0x220], eax
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
push ecx
push edx
push eax
call fcn.5908a4bd
mov ecx, dword [ebp + 0xa8]
mov eax, dword [esp + 0x20]
cdq
lea ecx, [esi + ecx + 0x218]
add esp, 0xc
mov esi, dword [ecx]
add esi, eax
mov dword [ecx], esi
mov eax, dword [ecx + 4]
adc eax, edx
mov dword [ecx + 4], eax
cmp edi, 0xffffffff
je 0x5905f29d
mov edx, dword [ebp + 0xa8]
lea esi, [edi + edi*8]
shl esi, 3
sub esi, edi
shl esi, 3
mov dword [esp + 0x2c], esi
mov ecx, dword [esi + edx + 0x208]
lea eax, [esi + edx]
cmp ecx, 0xffffffff
je 0x5905f29d
mov ebx, dword [eax + 0x21c]
lea edx, [eax + 0x218]
add eax, 0x210
cmp ebx, dword [eax + 4]
jl 0x5905f29d
jg 0x5905f040
mov edx, dword [edx]
mov ebx, dword [eax]
cmp edx, ebx
jb 0x5905f29d
push ecx
call fcn.5908a3dd
mov eax, dword [ebp + 0xa8]
add esp, 4
mov dword [esi + eax + 0x208], 0xffffffff
mov ecx, dword [ebp + 0xa8]
lea eax, [esi + ecx]
mov ecx, dword [esi + ecx]
test cl, 1
jne 0x5905f07f
add eax, 0x104
push 2
push eax
mov ecx, ebp
call fcn.5905ec10
jmp 0x5905f25f
test cl, 2
je 0x5905f252
lea edx, [ebp + 0xb8]
push 0
push edx
lea ecx, [esp + 0x40]
call fcn.590b5cc0
mov edi, dword [ebp + 0xdc]
mov ecx, dword [ebp + 0xa8]
mov eax, dword [ebp + 0xd8]
add esi, ecx
lea ebx, [edi + 1]
mov byte [esp + 0x290], 2
test ebx, ebx
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], edi
jne 0x5905f0ef
test eax, eax
je 0x5905f0dc
push eax
call fcn.5913e209
add esp, 4
mov dword [ebp + 0xd8], 0
xor eax, eax
mov dword [ebp + 0xe0], eax
mov dword [ebp + 0xdc], eax
jmp 0x5905f21f
test eax, eax
jne 0x5905f125
lea eax, [ebx + ebx*8]
shl eax, 3
sub eax, ebx
shl eax, 3
push eax
call fcn.5913e1e0
push ebx
push eax
mov dword [ebp + 0xd8], eax
call fcn.59061450
add esp, 0xc
mov dword [ebp + 0xe0], ebx
mov dword [ebp + 0xdc], ebx
jmp 0x5905f21f
mov ecx, dword [ebp + 0xe0]
cmp ebx, ecx
jg 0x5905f157
cmp ebx, edi
jle 0x5905f14c
lea edx, [edi + edi*8]
mov ecx, ebx
shl edx, 3
sub edx, edi
sub ecx, edi
push ecx
lea eax, [eax + edx*8]
push eax
call fcn.59061450
add esp, 8
mov dword [ebp + 0xdc], ebx
jmp 0x5905f21f
mov eax, dword [ebp + 0xe4]
test eax, eax
jne 0x5905f184
mov eax, edi
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp eax, 4
jge 0x5905f178
mov eax, 4
jmp 0x5905f184
cmp eax, 0x400
jle 0x5905f184
mov eax, 0x400
add eax, ecx
cmp ebx, eax
jge 0x5905f190
mov dword [esp + 0x1c], eax
jmp 0x5905f196
mov dword [esp + 0x1c], ebx
mov eax, ebx
lea ecx, [eax + eax*8]
shl ecx, 3
sub ecx, eax
shl ecx, 3
push ecx
call fcn.5913e1e0
mov edx, dword [ebp + 0xdc]
mov esi, dword [ebp + 0xd8]
mov edi, eax
mov dword [esp + 0x2c], eax
lea ecx, [edx + edx*8]
shl ecx, 3
sub ecx, edx
shl ecx, 3
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 0xdc]
sub edx, ecx
push edx
lea edx, [ecx + ecx*8]
shl edx, 3
sub edx, ecx
lea eax, [eax + edx*8]
push eax
call fcn.59061450
mov eax, dword [ebp + 0xd8]
push eax
call fcn.5913e209
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x2c]
mov edi, dword [esp + 0x44]
mov esi, dword [esp + 0x40]
add esp, 0x10
mov dword [ebp + 0xd8], ecx
mov dword [ebp + 0xdc], ebx
mov dword [ebp + 0xe0], edx
mov ecx, dword [ebp + 0xd8]
lea eax, [edi + edi*8]
shl eax, 3
sub eax, edi
lea edi, [ecx + eax*8]
mov ecx, 0x8e
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x38]
mov byte [esp + 0x290], 0
call fcn.590b5d20
mov esi, dword [esp + 0x2c]
mov edi, dword [esp + 0x18]
jmp 0x5905f25f
add eax, 0x104
mov ecx, ebp
push eax
call fcn.5905e670
mov eax, dword [ebp + 0xac]
mov ecx, dword [ebp + 0xa8]
sub eax, edi
dec eax
lea esi, [ecx + esi]
je 0x5905f297
lea edx, [eax + eax*8]
shl edx, 3
sub edx, eax
lea eax, [edi + 1]
shl edx, 3
push edx
lea edx, [eax + eax*8]
shl edx, 3
sub edx, eax
lea eax, [ecx + edx*8]
push eax
push esi
call fcn.5908a070
add esp, 0xc
dec dword [ebp + 0xac]
mov eax, dword [esp + 0x10]
xor esi, esi
cmp eax, esi
je 0x5905f2c1
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x10]
push ecx
push edx
call fcn.5905ebe0
add esp, 8
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], esi
lea ecx, [esp + 0x44]
mov dword [esp + 0x290], 0xffffffff
call fcn.590b5d20
mov ecx, dword [esp + 0x288]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x284
ret 4