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

Disassembly:
push 0xffffffffffffffff
push 0x591554c1
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.590b48a0
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 0x5905f6d8
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.590952c0
add esp, 0xc
test eax, eax
je 0x5905f6d4
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp + 0xa8]
add ecx, esi
sub eax, dword [ecx + 0x220]
cmp eax, 0x1b7740
jbe 0x5905f6c3
mov ecx, dword [ecx + 0x208]
cmp ecx, 0xffffffff
je 0x5905f68d
push ecx
call fcn.59088fbd
mov edx, dword [ebp + 0xa8]
lea eax, [esi + edx + 0x104]
push eax
call fcn.5908a33f
add esp, 8
mov eax, dword [ebp + 0xac]
sub eax, edi
dec eax
je 0x5905f6bd
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.59088c50
add esp, 0xc
dec dword [ebp + 0xac]
dec edi
sub esi, 0x238
test edi, edi
jge 0x5905f627
jmp 0x5905f6d8
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.5905f4d0
add esp, 0xc
test eax, eax
jne 0x5905f746
mov eax, dword [ebx + 0x128]
test eax, eax
je 0x5905f746
mov ecx, dword [ebx + 0x12c]
mov dword [esp + 0x24], 0
push ecx
call fcn.59087b6f
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 0x5905f763
push eax
call fcn.59087a86
add esp, 4
mov dword [ebx + 0x128], 0
mov edi, dword [esp + 0x18]
cmp edi, 0xffffffff
jne 0x5905f8b0
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.59059ff0
add esp, 4
mov ecx, dword [esp + 0x20]
push 0x180
push 0x8101
push ecx
mov byte [esp + 0x29c], 1
call fcn.5908928d
add esp, 0xc
cmp eax, 0xffffffff
je 0x5905f899
mov esi, dword [esp + 0x20]
mov ecx, dword [esi - 8]
cmp ecx, 0x104
jl 0x5905f80c
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.5908909d
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.59061140
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.590a0ec0
mov edi, dword [esp + 0x18]
jmp 0x5905f917
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 0x5905f917
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.5908909d
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 0x5905fbcd
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 0x5905fbcd
mov ebx, dword [eax + 0x21c]
lea edx, [eax + 0x218]
add eax, 0x210
cmp ebx, dword [eax + 4]
jl 0x5905fbcd
jg 0x5905f970
mov edx, dword [edx]
mov ebx, dword [eax]
cmp edx, ebx
jb 0x5905fbcd
push ecx
call fcn.59088fbd
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 0x5905f9af
add eax, 0x104
push 2
push eax
mov ecx, ebp
call fcn.5905f540
jmp 0x5905fb8f
test cl, 2
je 0x5905fb82
lea edx, [ebp + 0xb8]
push 0
push edx
lea ecx, [esp + 0x40]
call fcn.590b48a0
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 0x5905fa1f
test eax, eax
je 0x5905fa0c
push eax
call fcn.5913d2f9
add esp, 4
mov dword [ebp + 0xd8], 0
xor eax, eax
mov dword [ebp + 0xe0], eax
mov dword [ebp + 0xdc], eax
jmp 0x5905fb4f
test eax, eax
jne 0x5905fa55
lea eax, [ebx + ebx*8]
shl eax, 3
sub eax, ebx
shl eax, 3
push eax
call fcn.5913d2d0
push ebx
push eax
mov dword [ebp + 0xd8], eax
call fcn.59061d80
add esp, 0xc
mov dword [ebp + 0xe0], ebx
mov dword [ebp + 0xdc], ebx
jmp 0x5905fb4f
mov ecx, dword [ebp + 0xe0]
cmp ebx, ecx
jg 0x5905fa87
cmp ebx, edi
jle 0x5905fa7c
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.59061d80
add esp, 8
mov dword [ebp + 0xdc], ebx
jmp 0x5905fb4f
mov eax, dword [ebp + 0xe4]
test eax, eax
jne 0x5905fab4
mov eax, edi
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp eax, 4
jge 0x5905faa8
mov eax, 4
jmp 0x5905fab4
cmp eax, 0x400
jle 0x5905fab4
mov eax, 0x400
add eax, ecx
cmp ebx, eax
jge 0x5905fac0
mov dword [esp + 0x1c], eax
jmp 0x5905fac6
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.5913d2d0
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.59061d80
mov eax, dword [ebp + 0xd8]
push eax
call fcn.5913d2f9
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.590b4900
mov esi, dword [esp + 0x2c]
mov edi, dword [esp + 0x18]
jmp 0x5905fb8f
add eax, 0x104
mov ecx, ebp
push eax
call fcn.5905efa0
mov eax, dword [ebp + 0xac]
mov ecx, dword [ebp + 0xa8]
sub eax, edi
dec eax
lea esi, [ecx + esi]
je 0x5905fbc7
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.59088c50
add esp, 0xc
dec dword [ebp + 0xac]
mov eax, dword [esp + 0x10]
xor esi, esi
cmp eax, esi
je 0x5905fbf1
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x10]
push ecx
push edx
call fcn.5905f510
add esp, 8
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], esi
lea ecx, [esp + 0x44]
mov dword [esp + 0x290], 0xffffffff
call fcn.590b4900
mov ecx, dword [esp + 0x288]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x284
ret 4