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

Disassembly:
push 0xffffffffffffffff
push 0x59148a91
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.590ac020
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 0x59059b78
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.5908e200
add esp, 0xc
test eax, eax
je 0x59059b74
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp + 0xa8]
add ecx, esi
sub eax, dword [ecx + 0x220]
cmp eax, 0x1b7740
jbe 0x59059b63
mov ecx, dword [ecx + 0x208]
cmp ecx, 0xffffffff
je 0x59059b2d
push ecx
call fcn.59081f0d
mov edx, dword [ebp + 0xa8]
lea eax, [esi + edx + 0x104]
push eax
call fcn.5908325f
add esp, 8
mov eax, dword [ebp + 0xac]
sub eax, edi
dec eax
je 0x59059b5d
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.59081ba0
add esp, 0xc
dec dword [ebp + 0xac]
dec edi
sub esi, 0x238
test edi, edi
jge 0x59059ac7
jmp 0x59059b78
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.59059970
add esp, 0xc
test eax, eax
jne 0x59059be6
mov eax, dword [ebx + 0x128]
test eax, eax
je 0x59059be6
mov ecx, dword [ebx + 0x12c]
mov dword [esp + 0x24], 0
push ecx
call fcn.59080b1f
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 0x59059c03
push eax
call fcn.59080a36
add esp, 4
mov dword [ebx + 0x128], 0
mov edi, dword [esp + 0x18]
cmp edi, 0xffffffff
jne 0x59059d50
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.59054620
add esp, 4
mov ecx, dword [esp + 0x20]
push 0x180
push 0x8101
push ecx
mov byte [esp + 0x29c], 1
call fcn.590821dd
add esp, 0xc
cmp eax, 0xffffffff
je 0x59059d39
mov esi, dword [esp + 0x20]
mov ecx, dword [esi - 8]
cmp ecx, 0x104
jl 0x59059cac
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.59081fed
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.5905b510
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.59099e00
mov edi, dword [esp + 0x18]
jmp 0x59059db7
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 0x59059db7
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.59081fed
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 0x5905a06d
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 0x5905a06d
mov ebx, dword [eax + 0x21c]
lea edx, [eax + 0x218]
add eax, 0x210
cmp ebx, dword [eax + 4]
jl 0x5905a06d
jg 0x59059e10
mov edx, dword [edx]
mov ebx, dword [eax]
cmp edx, ebx
jb 0x5905a06d
push ecx
call fcn.59081f0d
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 0x59059e4f
add eax, 0x104
push 2
push eax
mov ecx, ebp
call fcn.590599e0
jmp 0x5905a02f
test cl, 2
je 0x5905a022
lea edx, [ebp + 0xb8]
push 0
push edx
lea ecx, [esp + 0x40]
call fcn.590ac020
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 0x59059ebf
test eax, eax
je 0x59059eac
push eax
call fcn.591315d9
add esp, 4
mov dword [ebp + 0xd8], 0
xor eax, eax
mov dword [ebp + 0xe0], eax
mov dword [ebp + 0xdc], eax
jmp 0x59059fef
test eax, eax
jne 0x59059ef5
lea eax, [ebx + ebx*8]
shl eax, 3
sub eax, ebx
shl eax, 3
push eax
call fcn.591315b0
push ebx
push eax
mov dword [ebp + 0xd8], eax
call fcn.5905c000
add esp, 0xc
mov dword [ebp + 0xe0], ebx
mov dword [ebp + 0xdc], ebx
jmp 0x59059fef
mov ecx, dword [ebp + 0xe0]
cmp ebx, ecx
jg 0x59059f27
cmp ebx, edi
jle 0x59059f1c
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.5905c000
add esp, 8
mov dword [ebp + 0xdc], ebx
jmp 0x59059fef
mov eax, dword [ebp + 0xe4]
test eax, eax
jne 0x59059f54
mov eax, edi
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp eax, 4
jge 0x59059f48
mov eax, 4
jmp 0x59059f54
cmp eax, 0x400
jle 0x59059f54
mov eax, 0x400
add eax, ecx
cmp ebx, eax
jge 0x59059f60
mov dword [esp + 0x1c], eax
jmp 0x59059f66
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.591315b0
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.5905c000
mov eax, dword [ebp + 0xd8]
push eax
call fcn.591315d9
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.590ac080
mov esi, dword [esp + 0x2c]
mov edi, dword [esp + 0x18]
jmp 0x5905a02f
add eax, 0x104
mov ecx, ebp
push eax
call fcn.59059440
mov eax, dword [ebp + 0xac]
mov ecx, dword [ebp + 0xa8]
sub eax, edi
dec eax
lea esi, [ecx + esi]
je 0x5905a067
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.59081ba0
add esp, 0xc
dec dword [ebp + 0xac]
mov eax, dword [esp + 0x10]
xor esi, esi
cmp eax, esi
je 0x5905a091
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x10]
push ecx
push edx
call fcn.590599b0
add esp, 8
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], esi
lea ecx, [esp + 0x44]
mov dword [esp + 0x290], 0xffffffff
call fcn.590ac080
mov ecx, dword [esp + 0x288]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x284
ret 4