Function at 0x588c90
Capabilities:
Check if file exists
Get file attributes
Get file size
Get socket status
Read file on windows
Resolve function by parsing pe exports

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x78
push 0xffffffffffffffff
push 0x655838
mov eax, dword fs:[0]
push eax
sub esp, 0x94
push ebx
push esi
push edi
mov eax, dword [0x7496c8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp + 0x1c], esi
xor edi, edi
mov dword [ebp - 4], edi
wait
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + 0x320]
cmp ecx, 0x80
jne 0x588ce7
mov dword [esi + 0x28], edi
jmp 0x588fe5
mov edx, dword [eax + 0x318]
cmp edx, 4
je 0x588ed4
cmp ecx, 0x40
jne 0x588d08
cmp byte [eax + 0x17f], 0
jne 0x588ed4
cmp edx, 8
je 0x588ed4
cmp ecx, 0x800
je 0x588ed4
cmp edx, 0x40
jne 0x588d2f
cmp byte [eax + 0x17f], 0
jne 0x588ed4
lea ecx, [ebp + 0x74]
call fcn.00402500
mov ebx, 1
mov byte [ebp - 4], bl
lea eax, [ebp + 0x74]
push eax
mov ecx, dword [esi + 0xc]
mov edx, dword [ecx]
push edx
call fcn.0046afc0
push str.googleusercontent.com
mov eax, dword [ebp + 0x74]
push eax
call fcn.00614d5e
add esp, 0x10
neg eax
sbb eax, eax
inc eax
mov ecx, dword [esi + 0x1b8]
or ecx, dword [esi + 0x1bc]
jne 0x588ec3
cmp byte [esi + 0x870], cl
jne 0x588ec3
cmp dword [esi + 0x1a4], ebx
jle 0x588ec3
mov ecx, dword [esi + 0xc]
cmp byte [ecx + 0x167], 0
je 0x588ec3
cmp dword [ecx + 0x320], edi
jne 0x588ec3
mov ecx, dword [esi + 0x25c]
cmp byte [ecx + 0xd8], 0
je 0x588dc1
cmp eax, edi
je 0x588ec3
mov dword [ecx + 0x3504], ebx
mov eax, dword [esi + 0x25c]
mov dword [eax + 0x34e8], edi
mov dword [eax + 0x34ec], edi
mov eax, dword [esi + 0x25c]
mov dword [eax + 0x34d0], edi
mov dword [eax + 0x34d4], edi
mov ecx, dword [esi + 0x25c]
mov byte [ecx + 0x666f], bl
mov eax, dword [esi + 0x25c]
lea ecx, [eax + 0x3470]
mov edx, dword [ecx]
add eax, 0x6660
push eax
mov eax, dword [edx + 0x18]
call eax
xor eax, eax
mov dword [ebp - 0x14], eax
cmp eax, dword [esi + 0x464]
jae 0x588e36
mov ecx, dword [esi + 0x25c]
mov edx, dword [esi + eax*4 + 0x468]
cmp edx, dword [ecx + 0x6660]
je 0x588e36
add eax, ebx
jmp 0x588e12
mov ecx, dword [esi + 0x464]
cmp eax, ecx
jne 0x588e61
cmp ecx, 0x80
jae 0x588e61
mov ecx, dword [esi + 0x25c]
mov edx, dword [ecx + 0x6660]
mov dword [esi + eax*4 + 0x468], edx
add dword [esi + 0x464], ebx
xor eax, eax
mov dword [ebp - 0x18], eax
cmp eax, dword [esi + 0x668]
jae 0x588e87
mov ecx, dword [esi + 0x25c]
mov edx, dword [esi + eax*4 + 0x66c]
cmp edx, dword [ecx + 0x6660]
je 0x588e87
add eax, ebx
jmp 0x588e63
mov ecx, dword [esi + 0x668]
cmp eax, ecx
jne 0x588eb2
cmp ecx, 0x80
jae 0x588eb2
mov ecx, dword [esi + 0x25c]
mov edx, dword [ecx + 0x6660]
mov dword [esi + eax*4 + 0x66c], edx
add dword [esi + 0x668], ebx
mov eax, 2
mov dword [esi + 0x1b0], eax
mov dword [esi + 0x1a8], eax
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x74]
call fcn.00402570
jmp 0x588fe5
mov dword [esi + 0x28], edi
cmp dword [eax + 0x310], edi
je 0x588fe5
cmp dword [esi + 0x238], edi
je 0x588fe5
mov eax, dword [eax + 0x310]
or dword [eax + 0x174], 0x100
mov eax, dword [esi + 0xc]
mov eax, dword [eax + 0x310]
cmp dword [eax + 0x93c], 3
jne 0x588f33
mov eax, dword [eax + 0x50]
cmp eax, edi
je 0x588f24
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x588f33
mov ecx, dword [esi + 0xc]
mov edx, dword [ecx + 0x310]
mov dword [edx + 0x93c], edi
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + 0x310]
mov eax, dword [ecx + 0x93c]
cmp eax, edi
je 0x588f54
cmp eax, 2
je 0x588f54
cmp eax, 4
jne 0x588fe5
cmp dword [ecx + 0x940], edi
jne 0x588fe5
push 0x6a3fe8
mov ecx, esi
call fcn.005a7ef0
mov eax, dword [esi + 0x258]
cmp eax, edi
je 0x588fa0
mov ecx, dword [esi + 0xc]
mov edx, dword [ecx + 0x310]
mov al, byte [eax + 0xae7]
mov byte [edx + 0xae7], al
mov ecx, dword [esi + 0x258]
mov edx, dword [esi + 0xc]
mov eax, dword [edx + 0x310]
mov ecx, dword [ecx + 8]
mov dword [eax + 8], ecx
mov eax, dword [esi + 0xc]
mov edx, dword [eax + 0x310]
mov ecx, dword [edx + 0x20]
cmp ecx, edi
je 0x588fd5
push ecx
mov eax, dword [eax]
push eax
call fcn.00614d5e
add esp, 8
test eax, eax
jne 0x588fd5
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + 0x310]
mov dl, byte [eax + 0x348]
mov byte [ecx + 0x368], dl
push 1
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + 0x310]
call fcn.005bb720
mov eax, dword [esi + 0xc]
cmp dword [eax + 0x320], edi
je 0x589003
cmp byte [eax + 0x324], 0
je 0x589003
mov dword [eax + 0xb0], 1
mov ecx, dword [esi + 0xc]
mov eax, dword [ecx]
push 0x6706a4
push eax
call fcn.006148e0
add esp, 8
test eax, eax
je 0x589021
mov byte [esi + 0x250], 1
push 1
mov edx, dword [0x74f9a8]
push edx
mov ecx, esi
call fcn.005a90a0
mov ecx, dword [esi + 0x258]
cmp ecx, edi
je 0x589040
call fcn.005ac160
mov ecx, esi
call fcn.005a80a0
mov dword [ebp + 0x50], 0xbb8
mov ecx, esi
call fcn.005a86a0
add dword [esi + 0x1b4], 0xfffffffb
lea ecx, [ebp + 0x70]
call fcn.00402500
mov byte [ebp - 4], 2
xor edi, edi
mov dword [ebp + 0x60], edi
mov dword [ebp + 0x64], edi
mov eax, dword [esi + 0x1c0]
mov dword [ebp + 0x34], eax
mov ecx, dword [esi + 0x1c4]
mov dword [ebp + 0x38], ecx
mov ecx, esi
call fcn.005a87e0
xor edx, edx
cmp byte [esi + 0x250], dl
sete dl
add edx, 2
mov dword [ebp + 0xc], edx
mov dword [ebp + 0x10], edi
lea eax, [ebp - 0xa0]
push eax
call fcn.00616d61
lea ecx, [ebp]
push ecx
call fcn.00616d61
add esp, 8
mov dword [ebp + 0x24], edi
mov dword [ebp + 0x28], edi
mov dword [ebp + 0x50], 0x14db
mov byte [ebp + 0x6e], 1
mov dword [ebp + 0x4c], edi
xor ebx, ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x40], edi
cmp edi, dword [esi + 0x1a8]
jge 0x589103
mov edx, edi
imul edx, edx, 0x3470
mov eax, dword [esi + 0x25c]
lea ecx, [edx + eax]
cmp dword [ecx + 0x94], 0
je 0x589100
inc ebx
call fcn.00584be0
test al, al
je 0x589100
inc dword [ebp + 0x4c]
inc edi
jmp 0x5890d1
mov eax, 1
cmp dword [ebp + 0x4c], eax
jne 0x589118
cmp ebx, eax
jne 0x589118
mov byte [ebp + 0x6e], 0
mov dword [ebp + 0xc], eax
cmp dword [esi + 0x1c], 0
je 0x58919c
lea ecx, [esi + 0x28]
call fcn.0054fb20
mov ecx, dword [esi + 0xc]
cmp dword [ecx + 0x320], 0x20
jne 0x589140
mov eax, dword [ecx + 0xf0]
mov ecx, dword [ecx + 0xf4]
jmp 0x58914c
mov eax, dword [esi + 0x1b8]
mov ecx, dword [esi + 0x1bc]
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], ecx
mov eax, dword [esi + 0x1c0]
mov ecx, dword [esi + 0x1c4]
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x54], 0
lea ecx, [ebp - 0x64]
push ecx
push 0x1471
push 0x111
mov edx, dword [esi + 0x10]
mov eax, dword [edx]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x70]
call fcn.00402570
mov eax, 0x7540
wait
jmp 0x58a579
mov ecx, esi
call fcn.005a7c90
mov byte [ebp + 0x5c], al
test al, al
je 0x5891c8
lea ecx, [ebp - 0x4c]
push ecx
call fcn.00616d61
add esp, 4
mov edx, dword [esi + 0x1c0]
mov dword [ebp + 0x24], edx
mov eax, dword [esi + 0x1c4]
mov dword [ebp + 0x28], eax
xor ebx, ebx
xor edi, edi
lea esp, [esp]
cmp edi, dword [esi + 0x1a8]
jge 0x5891ff
mov ecx, edi
imul ecx, ecx, 0x3470
mov edx, dword [esi + 0x25c]
add ecx, edx
cmp dword [ecx + 0x94], 0
je 0x589235
call fcn.0056fed0
test al, al
je 0x589235
mov ebx, 1
mov byte [ebp + 0x6f], 0
cmp byte [ebp + 0x6e], 0
je 0x589238
test ebx, ebx
jne 0x589251
lea eax, [ebp + 0xc]
push eax
lea ecx, [esi + 0x668]
push ecx
lea edx, [esi + 0x464]
push edx
lea eax, [esi + 0x260]
push eax
push ebx
call dword [sym.imp.WS2_32.dll_select]
mov ebx, eax
mov byte [ebp + 0x6f], 1
jmp 0x589251
inc edi
jmp 0x5891d0
mov ebx, 1
xor ecx, ecx
cmp byte [esi + 0x250], cl
sete cl
add ecx, 2
mov dword [ebp + 0xc], ecx
mov byte [ebp + 0x6e], bl
cmp dword [esi + 0x1c], 0
je 0x589264
lea ecx, [esi + 0x28]
call fcn.0054fb20
jmp 0x589185
mov eax, dword [esi + 0x1c0]
or eax, dword [esi + 0x1c4]
jne 0x5892a5
lea edx, [ebp]
push edx
call fcn.00616d61
add esp, 4
mov eax, dword [ebp]
sub eax, dword [ebp - 0xa0]
cmp eax, 0x12c
jle 0x5892a5
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x70]
call fcn.00402570
mov eax, 0x7533
wait
jmp 0x58a579
mov ecx, dword [esi + 0x1c0]
mov dword [ebp + 0x44], ecx
mov edx, dword [esi + 0x1c4]
mov dword [ebp + 0x48], edx
cmp ebx, 0xffffffff
je 0x589309
test ebx, ebx
je 0x589309
xor ebx, ebx
cmp ebx, dword [esi + 0x1a8]
jge 0x589310
mov eax, ebx
imul eax, eax, 0x3470
mov ecx, dword [esi + 0x25c]
lea edi, [eax + ecx]
cmp dword [edi + 0x94], 0
je 0x589306
cmp dword [esi + 0x1c], 0
jne 0x589257
mov ecx, edi
cmp byte [ebp + 0x6f], 0
jne 0x589301
call fcn.0056fed0
test al, al
je 0x589306
mov ecx, edi
call fcn.0057f190
inc ebx
jmp 0x5892c2
mov ecx, esi
call fcn.005854c0
mov edx, dword [ebp + 0x5c]
push edx
push 0
mov ecx, esi
call fcn.005a8880
lea eax, [ebp - 0x24]
push eax
call fcn.00616d61
add esp, 4
mov eax, dword [ebp - 0x24]
mov ecx, eax
sub ecx, dword [ebp]
imul ecx, ecx, 0x3e8
movzx edx, word [ebp + 4]
sub ecx, edx
mov di, word [ebp - 0x20]
movzx edx, di
add ecx, edx
cmp ecx, 0xfa
jl 0x589390
lea eax, [ebp]
push eax
call fcn.00616d61
add esp, 4
xor edi, edi
lea esp, [esp]
cmp edi, dword [esi + 0x1a8]
jge 0x589389
mov ecx, edi
imul ecx, ecx, 0x3470
mov edx, dword [esi + 0x25c]
add ecx, edx
cmp dword [ecx + 0x94], 0
je 0x589386
call fcn.0056cb60
inc edi
jmp 0x589360
mov di, word [ebp - 0x20]
mov eax, dword [ebp - 0x24]
xor ebx, ebx
cmp dword [esi + 0x24], ebx
jne 0x5894ea
mov ecx, dword [esi + 0x1c0]
mov edx, dword [esi + 0x1c4]
cmp dword [ebp + 0x38], edx
jg 0x5894ea
jl 0x5893bb
cmp dword [ebp + 0x34], ecx
jae 0x5894ea
cmp dword [ebp + 0x44], ecx
jne 0x5894ea
cmp dword [ebp + 0x48], edx
jne 0x5894ea
mov ecx, dword [ebp + 0x60]
imul eax, eax, 0x3e8
or ecx, dword [ebp + 0x64]
jne 0x5893ec
movzx edx, di
add eax, edx
cdq
mov dword [ebp + 0x60], eax
mov dword [ebp + 0x64], edx
jmp 0x5894f0
movzx ecx, di
add eax, ecx
cdq
mov edi, eax
mov ebx, edx
mov ecx, dword [esi + 0xc]
call fcn.0056cb20
fstp qword [ebp + 0x2c]
mov ecx, dword [esi + 0xc]
call fcn.0056cae0
fld qword [ebp + 0x2c]
fcom st(1)
fnstsw ax
test ah, 0x41
jne 0x589419
fstp st(1)
jmp 0x58941b
fstp st(0)
fmul qword [0x6a3fe0]
fadd qword [0x6a3fd8]
call fcn.006154d6
sub edi, dword [ebp + 0x60]
sbb ebx, dword [ebp + 0x64]
cmp ebx, edx
jl 0x5894f0
jg 0x589444
cmp edi, eax
jbe 0x5894f0
xor ebx, ebx
mov dword [ebp + 0x60], ebx
mov dword [ebp + 0x64], ebx
mov ecx, esi
call fcn.005bcb90
test eax, eax
je 0x5894f0
cmp dword [esi + 0x1c], ebx
jne 0x589185
push str.Restart_type_s018_n
mov ecx, esi
call fcn.005a7ef0
mov ecx, dword [esi + 0x25c]
call fcn.00573220
mov ecx, dword [esi + 0x25c]
call fcn.00571630
mov ecx, dword [esi + 0x25c]
mov edx, dword [ecx]
lea eax, [ecx + 0x31f0]
push eax
mov edx, dword [edx + 0x18]
call edx
mov edi, eax
cmp edi, ebx
jne 0x5894b2
push ebx
mov ecx, dword [esi + 0x25c]
call fcn.00581a00
mov edi, eax
cmp edi, ebx
je 0x5894c6
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x70]
call fcn.00402570
mov eax, edi
wait
jmp 0x58a579
mov eax, dword [esi + 0x1c0]
mov dword [ebp + 0x34], eax
mov ecx, dword [esi + 0x1c4]
mov dword [ebp + 0x38], ecx
push 1
mov edx, dword [0x74f9a8]
push edx
mov ecx, esi
call fcn.005a90a0
jmp 0x5894f0
mov dword [ebp + 0x60], ebx
mov dword [ebp + 0x64], ebx
mov eax, dword [esi + 0xc]
cmp dword [eax + 0xb0], 2
jne 0x589904
mov bl, 1
mov ecx, dword [esi + 0x1b8]
mov edx, dword [esi + 0x1bc]
mov eax, edx
test eax, eax
jl 0x589535
jg 0x58951b
cmp ecx, 0x32
jbe 0x589535
mov eax, dword [esi + 0x25c]
cmp dword [eax + 0x84], 0
jl 0x58955c
jg 0x589535
cmp dword [eax + 0x80], 0x32
jb 0x58955c
test edx, edx
jg 0x589578
jl 0x589540
cmp ecx, 0x32
ja 0x589578
mov eax, dword [esi + 0x25c]
mov edi, dword [eax + 0x84]
cmp edi, edx
jg 0x589578
jl 0x58955c
mov edx, dword [eax + 0x80]
cmp edx, ecx
jae 0x589578
xor bl, bl
cmp byte [eax + 0xd8], bl
je 0x589578
mov ecx, dword [eax + 0x58]
or ecx, dword [eax + 0x5c]
jne 0x589578
cmp byte [eax + 0xd9], cl
je 0x589578
mov bl, 1
mov ecx, dword [esi + 0xc]
test dword [ecx + 0x154], 0x100
je 0x5895f3
mov eax, dword [esi + 0x1c0]
cmp dword [esi + 0x1c4], 0
jg 0x5895f3
jl 0x58959f
cmp eax, 0x7d1
jae 0x5895f3
mov eax, dword [ecx]
push str.youtube.com
push eax
call fcn.006148e0
add esp, 8
test eax, eax
jne 0x5895ca
mov edx, dword [esi + 0xc]
mov eax, dword [edx]
push str.googlevideo.com
push eax
call fcn.006148e0
add esp, 8
test eax, eax
je 0x5895f3
mov eax, dword [esi + 0x1b8]
mov ecx, dword [esi + 0x1bc]
test ecx, ecx
jl 0x589904
jg 0x5895eb
cmp eax, 0x7d1
jb 0x589904
or eax, ecx
je 0x589904
test bl, bl
je 0x589904
movzx eax, byte [esi + 0x256]
push eax
mov ecx, dword [esi + 0xc]
call fcn.005c6c50
mov dword [ebp + 0x68], eax
mov edi, dword [esi + 0xc]
cmp byte [edi + 0x342], 0
je 0x589628
mov ecx, 0x74f0a0
call fcn.0056cc70
test al, al
jne 0x589631
cmp byte [esi + 0x870], 0
je 0x58969f
xor ebx, ebx
cmp dword [edi + 0xb0], 2
jne 0x589641
cmp dword [ebp + 0x68], ebx
je 0x5896a1
mov ecx, dword [esi + 0x25c]
call fcn.00573220
lea ecx, [esi + 0x28]
call fcn.005509a0
mov dword [esi + 0xc8], ebx
mov dword [esi + 0xcc], ebx
mov dword [esi + 0xd0], ebx
mov dword [esi + 0xd4], ebx
mov dword [esi + 0x1c0], ebx
mov dword [esi + 0x1c4], ebx
mov ecx, dword [esi + 0xc]
cmp byte [ecx + 0x342], 0
je 0x589c31
mov ecx, 0x74f0a0
call fcn.0056cc70
test al, al
je 0x589c31
jmp 0x589185
xor ebx, ebx
cmp dword [esi + 0xb8], ebx
jle 0x58972c
mov edx, dword [edi + 0xcc]
mov eax, edx
lea ebx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5896b8
sub eax, ebx
je 0x58972c
mov edi, dword [edi + 0xbc]
test edi, edi
je 0x5896ea
mov eax, edx
lea ebx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5896d2
sub eax, ebx
push eax
push edi
push edx
call fcn.00617c6f
add esp, 0xc
test eax, eax
je 0x58972c
mov eax, dword [esi + 0x14]
cmp dword [eax], 0
je 0x58970b
mov edx, dword [esi + 0xb8]
push edx
mov ecx, dword [ebp + 0x50]
push ecx
push 0x111
mov edx, dword [eax]
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [esi + 0x18]
cmp dword [eax], 0
je 0x58972c
mov ecx, dword [esi + 0xb8]
push ecx
mov edx, dword [ebp + 0x50]
push edx
push 0x111
mov eax, dword [eax]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
cmp dword [ebp + 0x68], 0
je 0x589904
cmp dword [esi + 0x13c], 0
jne 0x5898a6
cmp byte [0x74f0a7], 0
jne 0x589835
mov byte [ebp + 0x6f], 0
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + 0xbc]
test ecx, ecx
je 0x5897ad
mov edi, dword [eax + 0xe4]
mov eax, edi
lea ebx, [eax + 1]
lea esp, [esp]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x589770
sub eax, ebx
je 0x5897ad
mov eax, edi
lea ecx, [ecx]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x5897a0
test dl, dl
je 0x58979c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x5897a0
add eax, 2
add ecx, 2
test dl, dl
jne 0x589780
xor eax, eax
jmp 0x5897a5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x5897ad
mov byte [ebp + 0x6f], 1
mov edx, dword [esi + 0x1b8]
mov edi, dword [esi + 0x1bc]
test edi, edi
jl 0x5897e4
jg 0x5897c3
test edx, edx
jbe 0x5897e4
mov ecx, dword [esi + 0xc]
mov eax, dword [ecx + 0xe8]
mov ecx, dword [ecx + 0xec]
test ecx, ecx
jl 0x5897e4
jg 0x5897dc
test eax, eax
jbe 0x5897e4
cmp eax, edx
jne 0x5897ea
cmp ecx, edi
jne 0x5897ea
cmp byte [ebp + 0x6f], 0
je 0x589835
push 0x66b96c
mov eax, dword [esi + 0xc]
lea ecx, [eax + 0xe4]
call fcn.00545860
mov eax, dword [esi + 0xc]
mov dword [eax + 0xe8], 0
mov dword [eax + 0xec], 0
push 0x50040
mov ecx, dword [esi + 0xc]
mov edx, dword [ecx + 8]
push edx
mov eax, dword [0x7501a8]
push eax
push 0
call fcn.0046db70
add esp, 0x10
jmp 0x589185
mov eax, dword [esi + 0xc]
cmp dword [eax + 0x3c], 0
je 0x5898a6
cmp dword [eax + 0x34], 0
je 0x589849
mov eax, dword [eax + 0x34]
jmp 0x58984c
add eax, 0x38
push 0x2e
push eax
call fcn.00612d55
add esp, 8
mov edi, eax
test edi, edi
je 0x5898a6
push 0x67cdcc
push edi
call fcn.0061874a
add esp, 8
test eax, eax
je 0x5898a6
push 0x677540
push edi
call fcn.0061874a
add esp, 8
test eax, eax
je 0x5898a6
push 0x50004
mov ecx, dword [esi + 0xc]
mov edx, dword [ecx + 8]
push edx
mov eax, dword [0x74fa1c]
push eax
push 0
call fcn.0046db70
add esp, 0x10
cmp eax, 7
je 0x589185
mov eax, dword [esi + 0xc]
cmp dword [eax + 0x3c], 0
je 0x589904
cmp dword [eax + 0x34], 0
je 0x5898ba
mov eax, dword [eax + 0x34]
jmp 0x5898bd
add eax, 0x38
push 0x2e
push eax
call fcn.00612d55
add esp, 8
mov edi, eax
test edi, edi
je 0x589904
push 0x67cdcc
push edi
call fcn.0061874a
add esp, 8
test eax, eax
je 0x589904
push 0x677540
push edi
call fcn.0061874a
add esp, 8
test eax, eax
je 0x589904
mov ecx, dword [esi + 0xc]
call fcn.005c2290
mov edi, eax
test edi, edi
jne 0x5894b2
cmp byte [ebp + 0x5c], 0
je 0x589b3c
mov eax, dword [esi + 0x1c0]
cmp dword [esi + 0x1c4], 0
jl 0x589b3c
jg 0x58992e
cmp eax, 0x400
jbe 0x589b3c
mov ecx, esi
call fcn.005a7c60
mov ebx, eax
mov edi, edx
lea ecx, [ebp - 0x38]
push ecx
call fcn.00616d61
add esp, 4
mov eax, dword [esi + 0x1c0]
mov ecx, dword [esi + 0x1c4]
sub eax, dword [ebp + 0x24]
sbb ecx, dword [ebp + 0x28]
mov dword [ebp + 0x14], eax
mov dword [ebp + 0x18], ecx
js 0x589b3c
jg 0x58996d
test eax, eax
jbe 0x589b3c
mov eax, dword [ebp - 0x38]
sub eax, dword [ebp - 0x4c]
imul eax, eax, 0x3e8
movzx edx, word [ebp - 0x48]
sub eax, edx
movzx ecx, word [ebp - 0x34]
add eax, ecx
mov dword [ebp + 0x74], eax
jne 0x589991
mov dword [ebp + 0x74], 1
fild qword [ebp + 0x14]
fmul qword [0x6796f0]
fidiv dword [ebp + 0x74]
call fcn.006154d6
mov ecx, eax
cmp edx, edi
jl 0x589b3c
jg 0x5899b6
cmp ecx, ebx
jbe 0x589b3c
sub ecx, ebx
sbb edx, edi
mov dword [ebp + 0x58], edx
mov eax, dword [ebp + 0x74]
cdq
push edx
push eax
mov edx, dword [ebp + 0x58]
push edx
push ecx
call fcn.00617ef0
push edi
push ebx
push edx
push eax
call fcn.00617220
mov dword [ebp + 0x74], eax
mov eax, dword [esi + 0x1c8]
cdq
mov dword [ebp + 0x3c], eax
mov dword [ebp + 0x40], edx
push 0
push 2
push edi
push ebx
call fcn.00617220
cmp dword [ebp + 0x40], edx
jg 0x589a26
jl 0x5899fd
cmp dword [ebp + 0x3c], eax
jae 0x589a26
mov eax, 0x66666667
imul dword [ebp + 0x74]
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp + 0x74], eax
mov ecx, dword [ebp + 0x74]
xor ebx, ebx
cmp ecx, 0x2ee0
jle 0x589a57
mov ecx, 0x2ee0
jmp 0x589a5f
push 0
push 9
push edi
push ebx
call fcn.00617ef0
push 0
push 0xa
push edx
push eax
call fcn.00617220
cmp dword [ebp + 0x40], edx
jg 0x589a12
jl 0x589a48
cmp dword [ebp + 0x3c], eax
jae 0x589a12
mov eax, dword [ebp + 0x74]
cdq
sub eax, edx
sar eax, 1
mov ecx, eax
mov dword [ebp + 0x74], ecx
jmp 0x589a15
cmp ecx, ebx
jle 0x589b3c
mov edi, dword [esi + 0x86c]
cmp edi, 0xffffffff
je 0x589b35
mov dword [esi + 0x260], ebx
mov dword [esi + 0x464], ebx
mov dword [esi + 0x668], ebx
xor eax, eax
cmp eax, dword [esi + 0x260]
jae 0x589a96
cmp dword [esi + eax*4 + 0x264], edi
je 0x589a96
inc eax
jmp 0x589a82
mov edx, dword [esi + 0x260]
cmp eax, edx
jne 0x589ab5
cmp edx, 0x80
jae 0x589ab5
mov dword [esi + eax*4 + 0x264], edi
inc dword [esi + 0x260]
xor eax, eax
cmp eax, dword [esi + 0x668]
jae 0x589ad1
mov edx, dword [esi + eax*4 + 0x66c]
cmp edx, dword [esi + 0x86c]
je 0x589ad1
inc eax
jmp 0x589ab7
lea edi, [esi + 0x668]
mov edx, dword [edi]
cmp eax, edx
jne 0x589af4
cmp edx, 0x80
jae 0x589af4
mov edx, dword [esi + 0x86c]
mov dword [esi + eax*4 + 0x66c], edx
inc dword [edi]
mov eax, 0x10624dd3
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x2c], eax
imul eax, eax, 0x3e8
sub ecx, eax
imul ecx, ecx, 0x3e8
mov dword [ebp - 0x28], ecx
lea eax, [ebp - 0x2c]
push eax
push edi
lea ecx, [esi + 0x464]
push ecx
lea edx, [esi + 0x260]
push edx
push ebx
call dword [sym.imp.WS2_32.dll_select]
jmp 0x589b3c
push ecx
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, esi
call fcn.00585130
mov dword [ebp + 0x68], eax
test eax, eax
je 0x58a549
mov byte [ebp + 0x6d], 1
cmp eax, 1
jne 0x589dd0
cmp dword [esi + 0x40], 0
jne 0x589dd0
mov eax, dword [esi + 0xc]
cmp dword [eax + 0x320], 0
je 0x589c72
cmp byte [eax + 0x324], 0
je 0x589c72
mov ecx, dword [esi + 0x25c]
add ecx, 0x10
call fcn.00560b50
mov ecx, esi
call fcn.00587cd0
test eax, eax
je 0x589c48
mov byte [ebp + 0x6d], 0
mov eax, dword [esi + 0xc]
mov byte [eax + 0x33b], 0
mov ecx, dword [esi + 0xc]
mov byte [ecx + 0x33c], 1
mov edx, dword [esi + 0xc]
mov byte [edx + 0x32a], 0
mov eax, dword [esi + 0x40]
mov ecx, dword [esi + 0xc]
fld qword [eax + 0x18]
fstp qword [ecx + 0x3a8]
mov ecx, esi
call fcn.005a8270
mov edx, dword [esi + 0xc]
mov bl, byte [edx + 0x342]
test bl, bl
je 0x589bf2
mov ecx, 0x74f0a0
call fcn.0056cc70
test al, al
jne 0x589bff
cmp byte [esi + 0x870], 0
je 0x58a549
test bl, bl
je 0x589c15
mov ecx, 0x74f0a0
call fcn.0056cc70
test al, al
jne 0x589185
lea ecx, [esi + 0x28]
call fcn.005509a0
mov dword [esi + 0x1c0], 0
mov dword [esi + 0x1c4], 0
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x70]
call fcn.00402570
mov eax, 0x756a
wait
jmp 0x58a579
mov eax, dword [esi + 0xc]
mov byte [eax + 0x33b], 0
mov ecx, dword [esi + 0xc]
mov byte [ecx + 0x33c], 1
mov edx, dword [esi + 0xc]
mov byte [edx + 0x32a], 0
mov dword [ebp + 0x68], 0x753c
jmp 0x589dd0
mov eax, dword [eax]
push str.googlevideo.com
push eax
call fcn.006148e0
add esp, 8
test eax, eax
je 0x589dd0
mov eax, dword [esi + 0x1c0]
cmp dword [esi + 0x1c4], 0
jg 0x589dd0
jl 0x589caa
cmp eax, 0x1f400
jae 0x589dd0
mov eax, dword [esi + 0xc]
mov eax, dword [eax + 8]
test eax, eax
je 0x589dd0
push str.dur0.0
push eax
call fcn.006148e0
add esp, 8
test eax, eax
jne 0x589ce2
mov ecx, dword [esi + 0xc]
mov eax, dword [ecx + 8]
push str._dur0.0
push eax
call fcn.006148e0
add esp, 8
test eax, eax
je 0x589d46
mov edx, dword [esi + 0xc]
mov eax, dword [edx + 8]
push str.sourceyt_otf
push eax
call fcn.006148e0
add esp, 8
test eax, eax
jne 0x589d12
mov eax, dword [esi + 0xc]
mov eax, dword [eax + 8]
push str._sourceyt_otf
push eax
call fcn.006148e0
add esp, 8
test eax, eax
je 0x589d46
mov ecx, dword [esi + 0xc]
mov eax, dword [ecx + 8]
push str.otf1
push eax
call fcn.006148e0
add esp, 8
test eax, eax
jne 0x589db2
mov edx, dword [esi + 0xc]
mov eax, dword [edx + 8]
push str._otf1
push eax
call fcn.006148e0
add esp, 8
test eax, eax
jne 0x589db2
mov eax, dword [esi + 0xc]
mov eax, dword [eax + 0xc8]
push str.sourceyt_otf
push eax
call fcn.006148e0
add esp, 8
test eax, eax
jne 0x589d7c
mov ecx, dword [esi + 0xc]
mov eax, dword [ecx + 0xc8]
push str._sourceyt_otf
push eax
call fcn.006148e0
add esp, 8
test eax, eax
je 0x589dd0
mov edx, dword [esi + 0xc]
mov eax, dword [edx + 0xc8]
push str.otf1
push eax
call fcn.006148e0
add esp, 8
test eax, eax
jne 0x589db2
mov eax, dword [esi + 0xc]
mov eax, dword [eax + 0xc8]
push str._otf1
push eax
call fcn.006148e0
add esp, 8
test eax, eax
je 0x589dd0
lea ecx, [ebp + 0x6d]
push ecx
mov ecx, esi
call fcn.00588670
mov edi, eax
test edi, edi
jne 0x5894b2
cmp byte [ebp + 0x6d], al
je 0x58a549
cmp dword [esi + 0x1c], 0
jne 0x589257
push str.http:rcd__dwnl_finished__s1_t7__r_n
mov ecx, esi
call fcn.005a7ef0
mov ecx, dword [esi + 0xc]
test dword [ecx + 0x154], 0x100
je 0x58a238
mov eax, dword [esi + 0x1c0]
cmp dword [esi + 0x1c4], 0
jg 0x58a238
jl 0x589e19
cmp eax, 0x7d1
jae 0x58a238
mov eax, dword [ecx]
push str.youtube.com
push eax
call fcn.006148e0
add esp, 8
test eax, eax
jne 0x589e48
mov edx, dword [esi + 0xc]
mov eax, dword [edx]
push str.googlevideo.com
push eax
call fcn.006148e0
add esp, 8
test eax, eax
je 0x58a238
push str.http:rcd__Check_for_redirect__s1_r_n
mov ecx, esi
call fcn.005a7ef0
mov dword [ebp + 0x5c], 0
mov edx, dword [esi + 0x1c0]
mov eax, dword [esi + 0x1b8]
mov ecx, dword [esi + 0x1bc]
cmp edx, eax
jne 0x589e79
cmp dword [esi + 0x1c4], ecx
je 0x589e81
or eax, ecx
jne 0x58a238
mov ecx, dword [esi + 0x25c]
add ecx, 0x10
call fcn.00560b50
push 0
push 0
push 3
push 0
push 1
push 0x80000000
mov eax, dword [esi + 0xb0]
mov ecx, dword [eax + 0x10]
push ecx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileW]
call ebx
mov edi, eax
mov dword [ebp + 0x20], edi
cmp edi, 0xffffffff
jne 0x589f47
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x140], eax
cmp eax, 0x20
je 0x589ed8
cmp eax, 5
jne 0x58a207
lea ecx, [ebp + 0x74]
call fcn.00402500
mov byte [ebp - 4], 3
mov edx, dword [esi + 0x140]
push edx
push str.Check_for_redirect__cf_failed__lastErr_ld_Sleep_1000_r_n
lea eax, [ebp + 0x74]
push eax
call fcn.00402f80
add esp, 0xc
mov ecx, dword [ebp + 0x74]
push ecx
mov ecx, esi
call fcn.005a7ef0
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0
push 3
push 0
push 1
push 0x80000000
mov edx, dword [esi + 0xb0]
mov eax, dword [edx + 0x10]
push eax
call ebx
mov edi, eax
mov dword [ebp + 0x20], edi
mov byte [ebp - 4], 2
lea ecx, [ebp + 0x74]
call fcn.00402570
cmp edi, 0xffffffff
je 0x58a207
mov ebx, dword [esi + 0x1c0]
mov dword [ebp + 0x54], ebx
mov ecx, dword [esi + 0x1c4]
mov dword [ebp + 0x58], ecx
mov dword [ebp + 0x74], ebx
mov eax, dword [esi + 0x1b8]
or eax, dword [esi + 0x1bc]
je 0x589f76
mov edx, dword [esi + 0xc]
cmp byte [edx + 0x33b], 0
je 0x589f9d
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
mov dword [ebp + 0x74], ebx
test ebx, ebx
jne 0x589f9d
mov ebx, dword [esi + 0x1c0]
mov dword [ebp + 0x14], ebx
mov eax, dword [esi + 0x1c4]
mov dword [ebp + 0x18], eax
mov dword [ebp + 0x74], ebx
mov ecx, dword [esi + 0x25c]
cmp dword [ecx + 0x31e8], 0
je 0x589fe6
mov byte [ebp - 4], 4
wait
mov edx, dword [esi + 0x25c]
mov eax, dword [edx + 0x31e8]
push eax
call fcn.005e76a7
add esp, 4
wait
mov dword [ebp - 4], 2
jmp 0x589fe6
lea eax, [ebx + 1]
push eax
call fcn.005e76b2
add esp, 4
mov ecx, dword [esi + 0x25c]
mov dword [ecx + 0x31e8], eax
mov edx, dword [esi + 0x25c]
cmp dword [edx + 0x31e8], 0
je 0x58a0fc
push str.Check_for_redirect__s2_r_n
mov ecx, esi
call fcn.005a7ef0
mov dword [ebp + 0x74], 0
push 0
lea eax, [ebp + 0x74]
push eax
push ebx
mov ecx, dword [esi + 0x25c]
mov edx, dword [ecx + 0x31e8]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp + 0x30], eax
test eax, eax
je 0x58a1a7
cmp dword [ebp + 0x74], ebx
jne 0x58a1a7
mov eax, dword [esi + 0x25c]
mov ecx, dword [eax + 0x31e8]
mov byte [ebx + ecx], 0
push str.Check_for_redirect__s3__fc:_r_n
mov ecx, esi
call fcn.005a7ef0
mov edx, dword [esi + 0x25c]
mov eax, dword [edx + 0x31e8]
push eax
mov ecx, esi
call fcn.005a7ef0
push 0x66d294
mov ecx, esi
call fcn.005a7ef0
push 7
push 0x66b000
mov ecx, dword [esi + 0x25c]
mov edx, dword [ecx + 0x31e8]
push edx
call fcn.00617c6f
add esp, 0xc
test eax, eax
je 0x58a190
push 8
push 0x66afe0
mov eax, dword [esi + 0x25c]
mov ecx, dword [eax + 0x31e8]
push ecx
call fcn.00617c6f
add esp, 0xc
test eax, eax
je 0x58a190
mov edx, dword [esi + 0x25c]
mov eax, dword [edx + 0x31e8]
push eax
call fcn.005e76a7
add esp, 4
mov eax, dword [esi + 0x25c]
mov dword [eax + 0x31e8], 0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
cmp dword [ebp + 0x5c], edi
je 0x58a238
push str.http:rcd__Redirect_found_r_n
mov ecx, esi
call fcn.005a7ef0
mov dword [esi + 0x1c0], edi
mov dword [esi + 0x1c4], edi
fldz
fstp qword [esi + 0x188]
lea ebx, [esi + 0x28]
mov ecx, ebx
call fcn.0054fb20
mov ecx, ebx
call fcn.005509a0
mov dword [esi + 0xc8], edi
mov dword [esi + 0xcc], edi
mov dword [esi + 0xd0], edi
mov dword [esi + 0xd4], edi
mov eax, dword [esi + 0x25c]
mov dword [eax + 0x60], edi
mov dword [eax + 0x64], edi
mov ecx, dword [esi + 0x25c]
call fcn.00571630
push 1
push edi
push edi
mov ecx, esi
call fcn.005a9480
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x70]
call fcn.00402570
mov eax, 0x7583
wait
jmp 0x58a579
mov ecx, dword [esi + 0x25c]
call fcn.00578110
mov dword [ebp + 0x5c], 1
jmp 0x58a0fc
lea ecx, [ebp + 0x68]
call fcn.00402500
mov byte [ebp - 4], 6
mov ecx, dword [ebp + 0x74]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov edx, dword [ebp + 0x30]
push edx
push str.Check_for_redirect__rf_res_ld__lastErr_ld__buff_ld__read_ld_r_n
lea eax, [ebp + 0x68]
push eax
call fcn.00402f80
add esp, 0x18
mov ecx, dword [ebp + 0x68]
push ecx
mov ecx, esi
call fcn.005a7ef0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 2
lea ecx, [ebp + 0x68]
call fcn.00402570
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x70]
call fcn.00402570
or eax, 0xffffffff
wait
jmp 0x58a579
lea ecx, [ebp + 0x68]
call fcn.00402500
mov byte [ebp - 4], 7
mov edx, dword [esi + 0x140]
push edx
push str.Check_for_redirect__cf_failed__lastErr_ld_r_n
lea eax, [ebp + 0x68]
push eax
call fcn.00402f80
add esp, 0xc
mov ecx, dword [ebp + 0x68]
push ecx
mov ecx, esi
call fcn.005a7ef0
jmp 0x58a1e6
mov edi, dword [ebp + 0x68]
cmp edi, 0x753c
je 0x58a24c
cmp edi, 0xffffffff
jne 0x58a2d9
mov eax, dword [esi + 0xc]
test dword [eax + 0x154], 0x100
je 0x58a476
cmp dword [eax + 0x30], 0
je 0x58a476
mov eax, dword [esi + 0x1c0]
or eax, dword [esi + 0x1c4]
je 0x58a476
mov eax, dword [esi + 0x1b8]
cmp dword [esi + 0x1bc], 0
jl 0x58a476
jg 0x58a29b
cmp eax, 0x40000000
jbe 0x58a476
push str.Checking_flv_file_struct._n
mov ecx, esi
call fcn.005a7ef0
mov ecx, esi
call fcn.00587020
test eax, eax
je 0x58a476
mov eax, dword [esi + 0x1c0]
mov ecx, dword [esi + 0x1c4]
push 1
push ecx
push eax
mov ecx, esi
call fcn.005a9480
push str.DurationlastTimeStamp__seems_the_flv_file_is_comlete._n
mov ecx, esi
call fcn.005a7ef0
mov edx, dword [esi + 0x1c0]
mov eax, dword [esi + 0x1c4]
mov dword [ebp + 0x58], eax
mov eax, dword [esi + 0x1b8]
mov ecx, dword [esi + 0x1bc]
cmp edx, eax
jne 0x58a39d
mov edi, ecx
cmp dword [ebp + 0x58], edi
jne 0x58a39d
mov edi, eax
or edi, ecx
je 0x58a39d
mov edi, dword [esi + 0x10]
cmp dword [edi], 0
je 0x58a34b
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x78], ecx
mov eax, dword [esi + 0x1c4]
mov dword [ebp - 0x74], edx
mov dword [ebp - 0x70], eax
mov eax, dword [esi + 0x1c8]
mov dword [ebp - 0x6c], eax
lea ecx, [ebp - 0x7c]
push ecx
push 0x1471
push 0x111
mov edx, dword [edi]
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edx, dword [esi + 0x14]
cmp dword [edx], 0
je 0x58a39d
mov eax, dword [esi + 0x238]
mov dword [ebp - 0x94], eax
mov eax, dword [esi + 0x1c0]
mov ecx, dword [esi + 0x1c4]
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x88], ecx
mov eax, dword [esi + 0x1c8]
mov dword [ebp - 0x84], eax
lea ecx, [ebp - 0x94]
push ecx
push 0x1394
push 0x111
mov edx, dword [edx]
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [esi + 0x1c4]
push eax
mov ecx, dword [esi + 0x1c0]
push ecx
mov edx, dword [0x74f9a4]
push edx
lea eax, [ebp + 0x70]
push eax
call fcn.00402f80
add esp, 0x10
push 1
mov ecx, dword [ebp + 0x70]
push ecx
mov ecx, esi
call fcn.005a90a0
mov ecx, dword [esi + 0x1c0]
mov edi, dword [esi + 0x1b8]
mov eax, dword [esi + 0x1bc]
cmp ecx, edi
jne 0x58a3f1
mov edx, dword [esi + 0x1c4]
mov ebx, eax
cmp edx, ebx
je 0x58a4cc
mov edx, edi
or edx, eax
je 0x58a4cc
mov dword [ebp + 0x44], ecx
mov ecx, dword [esi + 0x1c4]
mov dword [ebp + 0x48], ecx
mov dword [ebp + 0x58], eax
mov edx, dword [esi + 0xc]
mov eax, dword [edx + 0x360]
xor ecx, ecx
mov edx, eax
add edx, edi
mov ebx, ecx
adc ebx, dword [ebp + 0x58]
mov dword [ebp + 0x58], ebx
cmp dword [ebp + 0x44], edx
jne 0x58a431
mov edx, ebx
cmp dword [ebp + 0x48], edx
je 0x58a4cc
mov edx, dword [esi + 0x1c4]
mov ebx, dword [esi + 0x1bc]
add eax, edi
adc ecx, ebx
cmp edx, ecx
jl 0x58a1f2
jg 0x58a457
cmp dword [esi + 0x1c0], eax
jbe 0x58a1f2
lea ecx, [esi + 0x28]
call fcn.00550340
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x70]
call fcn.00402570
mov eax, 0x7570
wait
jmp 0x58a579
mov edx, dword [esi + 0x1c4]
push edx
mov eax, dword [esi + 0x1c0]
push eax
mov ecx, dword [0x74f9b0]
push ecx
lea edx, [ebp + 0x70]
push edx
call fcn.00402f80
add esp, 0x10
push 1
mov eax, dword [ebp + 0x70]
push eax
mov ecx, esi
call fcn.005a90a0
mov esi, dword [esi + 0x140]
test esi, esi
je 0x58a4b6
cmp edi, 0x753c
je 0x58a4b8
mov esi, edi
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x70]
call fcn.00402570
mov eax, esi
wait
jmp 0x58a579
mov ecx, dword [esi + 0xc]
cmp dword [ecx + 0x320], 0
je 0x58a506
mov eax, dword [esi + 0x40]
test eax, eax
je 0x58a506
mov eax, dword [eax + 0x40]
test eax, eax
je 0x58a506
mov eax, dword [eax + 0x48]
test eax, eax
je 0x58a506
cmp dword [ecx + 0x318], 8
jne 0x58a506
add ecx, 0x3f4
push ecx
push eax
call fcn.00586ba0
add esp, 8
xor edi, edi
cmp edi, dword [esi + 0x1a8]
jge 0x58a531
mov eax, edi
imul eax, eax, 0x3470
mov ecx, dword [esi + 0x25c]
add ecx, eax
cmp dword [ecx + 0x94], 0
je 0x58a52e
call fcn.0056cb60
inc edi
jmp 0x58a508
mov ecx, esi
call fcn.005aa3f0
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x70]
call fcn.00402570
xor eax, eax
wait
jmp 0x58a579
mov ecx, esi
call fcn.00585770
mov ecx, esi
call fcn.005aa3f0
jmp 0x589118
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add ebp, 0x78
mov esp, ebp
pop ebp
ret