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

Disassembly:
push 0xffffffffffffffff
push 0x59143251
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.590a72b0
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 0x590556f8
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.59089490
add esp, 0xc
test eax, eax
je 0x590556f4
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp + 0xa8]
add ecx, esi
sub eax, dword [ecx + 0x220]
cmp eax, 0x1b7740
jbe 0x590556e3
mov ecx, dword [ecx + 0x208]
cmp ecx, 0xffffffff
je 0x590556ad
push ecx
call fcn.5907d19d
mov edx, dword [ebp + 0xa8]
lea eax, [esi + edx + 0x104]
push eax
call fcn.5907e4ef
add esp, 8
mov eax, dword [ebp + 0xac]
sub eax, edi
dec eax
je 0x590556dd
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.5907ce30
add esp, 0xc
dec dword [ebp + 0xac]
dec edi
sub esi, 0x238
test edi, edi
jge 0x59055647
jmp 0x590556f8
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.590554f0
add esp, 0xc
test eax, eax
jne 0x59055766
mov eax, dword [ebx + 0x128]
test eax, eax
je 0x59055766
mov ecx, dword [ebx + 0x12c]
mov dword [esp + 0x24], 0
push ecx
call fcn.5907bdaf
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 0x59055783
push eax
call fcn.5907bcc6
add esp, 4
mov dword [ebx + 0x128], 0
mov edi, dword [esp + 0x18]
cmp edi, 0xffffffff
jne 0x590558d0
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.59050230
add esp, 4
mov ecx, dword [esp + 0x20]
push 0x180
push 0x8101
push ecx
mov byte [esp + 0x29c], 1
call fcn.5907d46d
add esp, 0xc
cmp eax, 0xffffffff
je 0x590558b9
mov esi, dword [esp + 0x20]
mov ecx, dword [esi - 8]
cmp ecx, 0x104
jl 0x5905582c
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.5907d27d
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.59057090
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.59095090
mov edi, dword [esp + 0x18]
jmp 0x59055937
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 0x59055937
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.5907d27d
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 0x59055bed
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 0x59055bed
mov ebx, dword [eax + 0x21c]
lea edx, [eax + 0x218]
add eax, 0x210
cmp ebx, dword [eax + 4]
jl 0x59055bed
jg 0x59055990
mov edx, dword [edx]
mov ebx, dword [eax]
cmp edx, ebx
jb 0x59055bed
push ecx
call fcn.5907d19d
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 0x590559cf
add eax, 0x104
push 2
push eax
mov ecx, ebp
call fcn.59055560
jmp 0x59055baf
test cl, 2
je 0x59055ba2
lea edx, [ebp + 0xb8]
push 0
push edx
lea ecx, [esp + 0x40]
call fcn.590a72b0
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 0x59055a3f
test eax, eax
je 0x59055a2c
push eax
call fcn.5912c529
add esp, 4
mov dword [ebp + 0xd8], 0
xor eax, eax
mov dword [ebp + 0xe0], eax
mov dword [ebp + 0xdc], eax
jmp 0x59055b6f
test eax, eax
jne 0x59055a75
lea eax, [ebx + ebx*8]
shl eax, 3
sub eax, ebx
shl eax, 3
push eax
call fcn.5912c500
push ebx
push eax
mov dword [ebp + 0xd8], eax
call fcn.59057b80
add esp, 0xc
mov dword [ebp + 0xe0], ebx
mov dword [ebp + 0xdc], ebx
jmp 0x59055b6f
mov ecx, dword [ebp + 0xe0]
cmp ebx, ecx
jg 0x59055aa7
cmp ebx, edi
jle 0x59055a9c
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.59057b80
add esp, 8
mov dword [ebp + 0xdc], ebx
jmp 0x59055b6f
mov eax, dword [ebp + 0xe4]
test eax, eax
jne 0x59055ad4
mov eax, edi
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp eax, 4
jge 0x59055ac8
mov eax, 4
jmp 0x59055ad4
cmp eax, 0x400
jle 0x59055ad4
mov eax, 0x400
add eax, ecx
cmp ebx, eax
jge 0x59055ae0
mov dword [esp + 0x1c], eax
jmp 0x59055ae6
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.5912c500
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.59057b80
mov eax, dword [ebp + 0xd8]
push eax
call fcn.5912c529
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.590a7310
mov esi, dword [esp + 0x2c]
mov edi, dword [esp + 0x18]
jmp 0x59055baf
add eax, 0x104
mov ecx, ebp
push eax
call fcn.59054fc0
mov eax, dword [ebp + 0xac]
mov ecx, dword [ebp + 0xa8]
sub eax, edi
dec eax
lea esi, [ecx + esi]
je 0x59055be7
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.5907ce30
add esp, 0xc
dec dword [ebp + 0xac]
mov eax, dword [esp + 0x10]
xor esi, esi
cmp eax, esi
je 0x59055c11
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x10]
push ecx
push edx
call fcn.59055530
add esp, 8
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], esi
lea ecx, [esp + 0x44]
mov dword [esp + 0x290], 0xffffffff
call fcn.590a7310
mov ecx, dword [esp + 0x288]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x284
ret 4