Function at 0x58c860
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 0x65ac88
mov eax, dword fs:[0]
push eax
sub esp, 0x94
push ebx
push esi
push edi
mov eax, dword [0x74f8a0]
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 0x58c8b7
mov dword [esi + 0x28], edi
jmp 0x58cbb5
mov edx, dword [eax + 0x318]
cmp edx, 4
je 0x58caa4
cmp ecx, 0x40
jne 0x58c8d8
cmp byte [eax + 0x17f], 0
jne 0x58caa4
cmp edx, 8
je 0x58caa4
cmp ecx, 0x800
je 0x58caa4
cmp edx, 0x40
jne 0x58c8ff
cmp byte [eax + 0x17f], 0
jne 0x58caa4
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.00462fb0
push str.googleusercontent.com
mov eax, dword [ebp + 0x74]
push eax
call fcn.00619b9e
add esp, 0x10
neg eax
sbb eax, eax
inc eax
mov ecx, dword [esi + 0x1b8]
or ecx, dword [esi + 0x1bc]
jne 0x58ca93
cmp byte [esi + 0x870], cl
jne 0x58ca93
cmp dword [esi + 0x1a4], ebx
jle 0x58ca93
mov ecx, dword [esi + 0xc]
cmp byte [ecx + 0x167], 0
je 0x58ca93
cmp dword [ecx + 0x320], edi
jne 0x58ca93
mov ecx, dword [esi + 0x25c]
cmp byte [ecx + 0xd8], 0
je 0x58c991
cmp eax, edi
je 0x58ca93
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 0x58ca06
mov ecx, dword [esi + 0x25c]
mov edx, dword [esi + eax*4 + 0x468]
cmp edx, dword [ecx + 0x6660]
je 0x58ca06
add eax, ebx
jmp 0x58c9e2
mov ecx, dword [esi + 0x464]
cmp eax, ecx
jne 0x58ca31
cmp ecx, 0x80
jae 0x58ca31
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 0x58ca57
mov ecx, dword [esi + 0x25c]
mov edx, dword [esi + eax*4 + 0x66c]
cmp edx, dword [ecx + 0x6660]
je 0x58ca57
add eax, ebx
jmp 0x58ca33
mov ecx, dword [esi + 0x668]
cmp eax, ecx
jne 0x58ca82
cmp ecx, 0x80
jae 0x58ca82
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 0x58cbb5
mov dword [esi + 0x28], edi
cmp dword [eax + 0x310], edi
je 0x58cbb5
cmp dword [esi + 0x238], edi
je 0x58cbb5
mov eax, dword [eax + 0x310]
or dword [eax + 0x174], 0x100
mov eax, dword [esi + 0xc]
mov eax, dword [eax + 0x310]
cmp dword [eax + 0x944], 3
jne 0x58cb03
mov eax, dword [eax + 0x50]
cmp eax, edi
je 0x58caf4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x58cb03
mov ecx, dword [esi + 0xc]
mov edx, dword [ecx + 0x310]
mov dword [edx + 0x944], edi
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + 0x310]
mov eax, dword [ecx + 0x944]
cmp eax, edi
je 0x58cb24
cmp eax, 2
je 0x58cb24
cmp eax, 4
jne 0x58cbb5
cmp dword [ecx + 0x948], edi
jne 0x58cbb5
push 0x6a90c0
mov ecx, esi
call fcn.005abf20
mov eax, dword [esi + 0x258]
cmp eax, edi
je 0x58cb70
mov ecx, dword [esi + 0xc]
mov edx, dword [ecx + 0x310]
mov al, byte [eax + 0xaef]
mov byte [edx + 0xaef], 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 0x58cba5
push ecx
mov eax, dword [eax]
push eax
call fcn.00619b9e
add esp, 8
test eax, eax
jne 0x58cba5
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.005bfa10
mov eax, dword [esi + 0xc]
cmp dword [eax + 0x320], edi
je 0x58cbd3
cmp byte [eax + 0x324], 0
je 0x58cbd3
mov dword [eax + 0xb0], 1
mov ecx, dword [esi + 0xc]
mov eax, dword [ecx]
push str..googlevideo.com
push eax
call fcn.00619720
add esp, 8
test eax, eax
je 0x58cbf1
mov byte [esi + 0x250], 1
push 1
mov edx, dword [0x755b88]
push edx
mov ecx, esi
call fcn.005ad0d0
mov ecx, dword [esi + 0x258]
cmp ecx, edi
je 0x58cc10
call fcn.005b0190
mov ecx, esi
call fcn.005ac0d0
mov dword [ebp + 0x50], 0xbb8
mov ecx, esi
call fcn.005ac6d0
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.005ac810
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.0061bba1
lea ecx, [ebp]
push ecx
call fcn.0061bba1
add esp, 8
mov dword [ebp + 0x24], edi
mov dword [ebp + 0x28], edi
mov dword [ebp + 0x50], 0
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 0x58ccd3
mov edx, edi
imul edx, edx, 0x3470
mov eax, dword [esi + 0x25c]
lea ecx, [edx + eax]
cmp dword [ecx + 0x94], 0
je 0x58ccd0
inc ebx
call fcn.005887b0
test al, al
je 0x58ccd0
inc dword [ebp + 0x4c]
inc edi
jmp 0x58cca1
mov eax, 1
cmp dword [ebp + 0x4c], eax
jne 0x58cce8
cmp ebx, eax
jne 0x58cce8
mov byte [ebp + 0x6e], 0
mov dword [ebp + 0xc], eax
cmp dword [esi + 0x1c], 0
je 0x58cd6c
lea ecx, [esi + 0x28]
call fcn.00553780
mov ecx, dword [esi + 0xc]
cmp dword [ecx + 0x320], 0x20
jne 0x58cd10
mov eax, dword [ecx + 0xf0]
mov ecx, dword [ecx + 0xf4]
jmp 0x58cd1c
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 0x58e149
mov ecx, esi
call fcn.005abcc0
mov byte [ebp + 0x5c], al
test al, al
je 0x58cd98
lea ecx, [ebp - 0x4c]
push ecx
call fcn.0061bba1
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 0x58cdcf
mov ecx, edi
imul ecx, ecx, 0x3470
mov edx, dword [esi + 0x25c]
add ecx, edx
cmp dword [ecx + 0x94], 0
je 0x58ce05
call fcn.00573b60
test al, al
je 0x58ce05
mov ebx, 1
mov byte [ebp + 0x6f], 0
cmp byte [ebp + 0x6e], 0
je 0x58ce08
test ebx, ebx
jne 0x58ce21
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 0x58ce21
inc edi
jmp 0x58cda0
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 0x58ce34
lea ecx, [esi + 0x28]
call fcn.00553780
jmp 0x58cd55
mov eax, dword [esi + 0x1c0]
or eax, dword [esi + 0x1c4]
jne 0x58ce75
lea edx, [ebp]
push edx
call fcn.0061bba1
add esp, 4
mov eax, dword [ebp]
sub eax, dword [ebp - 0xa0]
cmp eax, 0x12c
jle 0x58ce75
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x70]
call fcn.00402570
mov eax, 0x7533
wait
jmp 0x58e149
mov ecx, dword [esi + 0x1c0]
mov dword [ebp + 0x44], ecx
mov edx, dword [esi + 0x1c4]
mov dword [ebp + 0x48], edx
cmp ebx, 0xffffffff
je 0x58ced9
test ebx, ebx
je 0x58ced9
xor ebx, ebx
cmp ebx, dword [esi + 0x1a8]
jge 0x58cee0
mov eax, ebx
imul eax, eax, 0x3470
mov ecx, dword [esi + 0x25c]
lea edi, [eax + ecx]
cmp dword [edi + 0x94], 0
je 0x58ced6
cmp dword [esi + 0x1c], 0
jne 0x58ce27
mov ecx, edi
cmp byte [ebp + 0x6f], 0
jne 0x58ced1
call fcn.00573b60
test al, al
je 0x58ced6
mov ecx, edi
call fcn.00582d10
inc ebx
jmp 0x58ce92
mov ecx, esi
call fcn.00589090
mov edx, dword [ebp + 0x5c]
push edx
push 0
mov ecx, esi
call fcn.005ac8b0
lea eax, [ebp - 0x24]
push eax
call fcn.0061bba1
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 0x58cf60
lea eax, [ebp]
push eax
call fcn.0061bba1
add esp, 4
xor edi, edi
lea esp, [esp]
cmp edi, dword [esi + 0x1a8]
jge 0x58cf59
mov ecx, edi
imul ecx, ecx, 0x3470
mov edx, dword [esi + 0x25c]
add ecx, edx
cmp dword [ecx + 0x94], 0
je 0x58cf56
call fcn.005707f0
inc edi
jmp 0x58cf30
mov di, word [ebp - 0x20]
mov eax, dword [ebp - 0x24]
xor ebx, ebx
cmp dword [esi + 0x24], ebx
jne 0x58d0ba
mov ecx, dword [esi + 0x1c0]
mov edx, dword [esi + 0x1c4]
cmp dword [ebp + 0x38], edx
jg 0x58d0ba
jl 0x58cf8b
cmp dword [ebp + 0x34], ecx
jae 0x58d0ba
cmp dword [ebp + 0x44], ecx
jne 0x58d0ba
cmp dword [ebp + 0x48], edx
jne 0x58d0ba
mov ecx, dword [ebp + 0x60]
imul eax, eax, 0x3e8
or ecx, dword [ebp + 0x64]
jne 0x58cfbc
movzx edx, di
add eax, edx
cdq
mov dword [ebp + 0x60], eax
mov dword [ebp + 0x64], edx
jmp 0x58d0c0
movzx ecx, di
add eax, ecx
cdq
mov edi, eax
mov ebx, edx
mov ecx, dword [esi + 0xc]
call fcn.005707b0
fstp qword [ebp + 0x2c]
mov ecx, dword [esi + 0xc]
call fcn.00570770
fld qword [ebp + 0x2c]
fcom st(1)
fnstsw ax
test ah, 0x41
jne 0x58cfe9
fstp st(1)
jmp 0x58cfeb
fstp st(0)
fmul qword [0x6a90b8]
fadd qword [0x6a90b0]
call fcn.0061a316
sub edi, dword [ebp + 0x60]
sbb ebx, dword [ebp + 0x64]
cmp ebx, edx
jl 0x58d0c0
jg 0x58d014
cmp edi, eax
jbe 0x58d0c0
xor ebx, ebx
mov dword [ebp + 0x60], ebx
mov dword [ebp + 0x64], ebx
mov ecx, esi
call fcn.005c0e90
test eax, eax
je 0x58d0c0
cmp dword [esi + 0x1c], ebx
jne 0x58cd55
push str.Restart_type_s018_n
mov ecx, esi
call fcn.005abf20
mov ecx, dword [esi + 0x25c]
call fcn.00576d20
mov ecx, dword [esi + 0x25c]
call fcn.00575130
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 0x58d082
push ebx
mov ecx, dword [esi + 0x25c]
call fcn.00585580
mov edi, eax
cmp edi, ebx
je 0x58d096
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x70]
call fcn.00402570
mov eax, edi
wait
jmp 0x58e149
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 [0x755b88]
push edx
mov ecx, esi
call fcn.005ad0d0
jmp 0x58d0c0
mov dword [ebp + 0x60], ebx
mov dword [ebp + 0x64], ebx
mov eax, dword [esi + 0xc]
cmp dword [eax + 0xb0], 2
jne 0x58d4d4
mov bl, 1
mov ecx, dword [esi + 0x1b8]
mov edx, dword [esi + 0x1bc]
mov eax, edx
test eax, eax
jl 0x58d105
jg 0x58d0eb
cmp ecx, 0x32
jbe 0x58d105
mov eax, dword [esi + 0x25c]
cmp dword [eax + 0x84], 0
jl 0x58d12c
jg 0x58d105
cmp dword [eax + 0x80], 0x32
jb 0x58d12c
test edx, edx
jg 0x58d148
jl 0x58d110
cmp ecx, 0x32
ja 0x58d148
mov eax, dword [esi + 0x25c]
mov edi, dword [eax + 0x84]
cmp edi, edx
jg 0x58d148
jl 0x58d12c
mov edx, dword [eax + 0x80]
cmp edx, ecx
jae 0x58d148
xor bl, bl
cmp byte [eax + 0xd8], bl
je 0x58d148
mov ecx, dword [eax + 0x58]
or ecx, dword [eax + 0x5c]
jne 0x58d148
cmp byte [eax + 0xd9], cl
je 0x58d148
mov bl, 1
mov ecx, dword [esi + 0xc]
test dword [ecx + 0x154], 0x100
je 0x58d1c3
mov eax, dword [esi + 0x1c0]
cmp dword [esi + 0x1c4], 0
jg 0x58d1c3
jl 0x58d16f
cmp eax, 0x7d1
jae 0x58d1c3
mov eax, dword [ecx]
push str.youtube.com
push eax
call fcn.00619720
add esp, 8
test eax, eax
jne 0x58d19a
mov edx, dword [esi + 0xc]
mov eax, dword [edx]
push str.googlevideo.com
push eax
call fcn.00619720
add esp, 8
test eax, eax
je 0x58d1c3
mov eax, dword [esi + 0x1b8]
mov ecx, dword [esi + 0x1bc]
test ecx, ecx
jl 0x58d4d4
jg 0x58d1bb
cmp eax, 0x7d1
jb 0x58d4d4
or eax, ecx
je 0x58d4d4
test bl, bl
je 0x58d4d4
movzx eax, byte [esi + 0x256]
push eax
mov ecx, dword [esi + 0xc]
call fcn.005cafb0
mov dword [ebp + 0x68], eax
mov edi, dword [esi + 0xc]
cmp byte [edi + 0x342], 0
je 0x58d1f8
mov ecx, 0x755280
call fcn.00570900
test al, al
jne 0x58d201
cmp byte [esi + 0x870], 0
je 0x58d26f
xor ebx, ebx
cmp dword [edi + 0xb0], 2
jne 0x58d211
cmp dword [ebp + 0x68], ebx
je 0x58d271
mov ecx, dword [esi + 0x25c]
call fcn.00576d20
lea ecx, [esi + 0x28]
call fcn.00554600
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 0x58d801
mov ecx, 0x755280
call fcn.00570900
test al, al
je 0x58d801
jmp 0x58cd55
xor ebx, ebx
cmp dword [esi + 0xb8], ebx
jle 0x58d2fc
mov edx, dword [edi + 0xcc]
mov eax, edx
lea ebx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x58d288
sub eax, ebx
je 0x58d2fc
mov edi, dword [edi + 0xbc]
test edi, edi
je 0x58d2ba
mov eax, edx
lea ebx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x58d2a2
sub eax, ebx
push eax
push edi
push edx
call fcn.0061caaf
add esp, 0xc
test eax, eax
je 0x58d2fc
mov eax, dword [esi + 0x14]
cmp dword [eax], 0
je 0x58d2db
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 0x58d2fc
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 0x58d4d4
cmp dword [esi + 0x13c], 0
jne 0x58d476
cmp byte [0x755287], 0
jne 0x58d405
mov byte [ebp + 0x6f], 0
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + 0xbc]
test ecx, ecx
je 0x58d37d
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 0x58d340
sub eax, ebx
je 0x58d37d
mov eax, edi
lea ecx, [ecx]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x58d370
test dl, dl
je 0x58d36c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x58d370
add eax, 2
add ecx, 2
test dl, dl
jne 0x58d350
xor eax, eax
jmp 0x58d375
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x58d37d
mov byte [ebp + 0x6f], 1
mov edx, dword [esi + 0x1b8]
mov edi, dword [esi + 0x1bc]
test edi, edi
jl 0x58d3b4
jg 0x58d393
test edx, edx
jbe 0x58d3b4
mov ecx, dword [esi + 0xc]
mov eax, dword [ecx + 0xe8]
mov ecx, dword [ecx + 0xec]
test ecx, ecx
jl 0x58d3b4
jg 0x58d3ac
test eax, eax
jbe 0x58d3b4
cmp eax, edx
jne 0x58d3ba
cmp ecx, edi
jne 0x58d3ba
cmp byte [ebp + 0x6f], 0
je 0x58d405
push 0x670984
mov eax, dword [esi + 0xc]
lea ecx, [eax + 0xe4]
call fcn.005494d0
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 [0x756388]
push eax
push 0
call fcn.0046f4c0
add esp, 0x10
jmp 0x58cd55
mov eax, dword [esi + 0xc]
cmp dword [eax + 0x3c], 0
je 0x58d476
cmp dword [eax + 0x34], 0
je 0x58d419
mov eax, dword [eax + 0x34]
jmp 0x58d41c
add eax, 0x38
push 0x2e
push eax
call fcn.00617b92
add esp, 8
mov edi, eax
test edi, edi
je 0x58d476
push 0x681e5c
push edi
call fcn.0061d58a
add esp, 8
test eax, eax
je 0x58d476
push 0x67c32c
push edi
call fcn.0061d58a
add esp, 8
test eax, eax
je 0x58d476
push 0x50004
mov ecx, dword [esi + 0xc]
mov edx, dword [ecx + 8]
push edx
mov eax, dword [0x755bfc]
push eax
push 0
call fcn.0046f4c0
add esp, 0x10
cmp eax, 7
je 0x58cd55
mov eax, dword [esi + 0xc]
cmp dword [eax + 0x3c], 0
je 0x58d4d4
cmp dword [eax + 0x34], 0
je 0x58d48a
mov eax, dword [eax + 0x34]
jmp 0x58d48d
add eax, 0x38
push 0x2e
push eax
call fcn.00617b92
add esp, 8
mov edi, eax
test edi, edi
je 0x58d4d4
push 0x681e5c
push edi
call fcn.0061d58a
add esp, 8
test eax, eax
je 0x58d4d4
push 0x67c32c
push edi
call fcn.0061d58a
add esp, 8
test eax, eax
je 0x58d4d4
mov ecx, dword [esi + 0xc]
call fcn.005c6560
mov edi, eax
test edi, edi
jne 0x58d082
cmp byte [ebp + 0x5c], 0
je 0x58d70c
mov eax, dword [esi + 0x1c0]
cmp dword [esi + 0x1c4], 0
jl 0x58d70c
jg 0x58d4fe
cmp eax, 0x400
jbe 0x58d70c
mov ecx, esi
call fcn.005abc90
mov ebx, eax
mov edi, edx
lea ecx, [ebp - 0x38]
push ecx
call fcn.0061bba1
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 0x58d70c
jg 0x58d53d
test eax, eax
jbe 0x58d70c
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 0x58d561
mov dword [ebp + 0x74], 1
fild qword [ebp + 0x14]
fmul qword [0x67e780]
fidiv dword [ebp + 0x74]
call fcn.0061a316
mov ecx, eax
cmp edx, edi
jl 0x58d70c
jg 0x58d586
cmp ecx, ebx
jbe 0x58d70c
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.0061cd30
push edi
push ebx
push edx
push eax
call fcn.0061c060
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.0061c060
cmp dword [ebp + 0x40], edx
jg 0x58d5f6
jl 0x58d5cd
cmp dword [ebp + 0x3c], eax
jae 0x58d5f6
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 0x58d627
mov ecx, 0x2ee0
jmp 0x58d62f
push 0
push 9
push edi
push ebx
call fcn.0061cd30
push 0
push 0xa
push edx
push eax
call fcn.0061c060
cmp dword [ebp + 0x40], edx
jg 0x58d5e2
jl 0x58d618
cmp dword [ebp + 0x3c], eax
jae 0x58d5e2
mov eax, dword [ebp + 0x74]
cdq
sub eax, edx
sar eax, 1
mov ecx, eax
mov dword [ebp + 0x74], ecx
jmp 0x58d5e5
cmp ecx, ebx
jle 0x58d70c
mov edi, dword [esi + 0x86c]
cmp edi, 0xffffffff
je 0x58d705
mov dword [esi + 0x260], ebx
mov dword [esi + 0x464], ebx
mov dword [esi + 0x668], ebx
xor eax, eax
cmp eax, dword [esi + 0x260]
jae 0x58d666
cmp dword [esi + eax*4 + 0x264], edi
je 0x58d666
inc eax
jmp 0x58d652
mov edx, dword [esi + 0x260]
cmp eax, edx
jne 0x58d685
cmp edx, 0x80
jae 0x58d685
mov dword [esi + eax*4 + 0x264], edi
inc dword [esi + 0x260]
xor eax, eax
cmp eax, dword [esi + 0x668]
jae 0x58d6a1
mov edx, dword [esi + eax*4 + 0x66c]
cmp edx, dword [esi + 0x86c]
je 0x58d6a1
inc eax
jmp 0x58d687
lea edi, [esi + 0x668]
mov edx, dword [edi]
cmp eax, edx
jne 0x58d6c4
cmp edx, 0x80
jae 0x58d6c4
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 0x58d70c
push ecx
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, esi
call fcn.00588d00
mov dword [ebp + 0x68], eax
test eax, eax
je 0x58e119
mov byte [ebp + 0x6d], 1
cmp eax, 1
jne 0x58d9a0
cmp dword [esi + 0x40], 0
jne 0x58d9a0
mov eax, dword [esi + 0xc]
cmp dword [eax + 0x320], 0
je 0x58d842
cmp byte [eax + 0x324], 0
je 0x58d842
mov ecx, dword [esi + 0x25c]
add ecx, 0x10
call fcn.005647d0
mov ecx, esi
call fcn.0058b8a0
test eax, eax
je 0x58d818
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.005ac2a0
mov edx, dword [esi + 0xc]
mov bl, byte [edx + 0x342]
test bl, bl
je 0x58d7c2
mov ecx, 0x755280
call fcn.00570900
test al, al
jne 0x58d7cf
cmp byte [esi + 0x870], 0
je 0x58e119
test bl, bl
je 0x58d7e5
mov ecx, 0x755280
call fcn.00570900
test al, al
jne 0x58cd55
lea ecx, [esi + 0x28]
call fcn.00554600
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 0x58e149
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 0x58d9a0
mov eax, dword [eax]
push str.googlevideo.com
push eax
call fcn.00619720
add esp, 8
test eax, eax
je 0x58d9a0
mov eax, dword [esi + 0x1c0]
cmp dword [esi + 0x1c4], 0
jg 0x58d9a0
jl 0x58d87a
cmp eax, 0x1f400
jae 0x58d9a0
mov eax, dword [esi + 0xc]
mov eax, dword [eax + 8]
test eax, eax
je 0x58d9a0
push str.dur0.0
push eax
call fcn.00619720
add esp, 8
test eax, eax
jne 0x58d8b2
mov ecx, dword [esi + 0xc]
mov eax, dword [ecx + 8]
push str._dur0.0
push eax
call fcn.00619720
add esp, 8
test eax, eax
je 0x58d916
mov edx, dword [esi + 0xc]
mov eax, dword [edx + 8]
push str.sourceyt_otf
push eax
call fcn.00619720
add esp, 8
test eax, eax
jne 0x58d8e2
mov eax, dword [esi + 0xc]
mov eax, dword [eax + 8]
push str._sourceyt_otf
push eax
call fcn.00619720
add esp, 8
test eax, eax
je 0x58d916
mov ecx, dword [esi + 0xc]
mov eax, dword [ecx + 8]
push str.otf1
push eax
call fcn.00619720
add esp, 8
test eax, eax
jne 0x58d982
mov edx, dword [esi + 0xc]
mov eax, dword [edx + 8]
push str._otf1
push eax
call fcn.00619720
add esp, 8
test eax, eax
jne 0x58d982
mov eax, dword [esi + 0xc]
mov eax, dword [eax + 0xc8]
push str.sourceyt_otf
push eax
call fcn.00619720
add esp, 8
test eax, eax
jne 0x58d94c
mov ecx, dword [esi + 0xc]
mov eax, dword [ecx + 0xc8]
push str._sourceyt_otf
push eax
call fcn.00619720
add esp, 8
test eax, eax
je 0x58d9a0
mov edx, dword [esi + 0xc]
mov eax, dword [edx + 0xc8]
push str.otf1
push eax
call fcn.00619720
add esp, 8
test eax, eax
jne 0x58d982
mov eax, dword [esi + 0xc]
mov eax, dword [eax + 0xc8]
push str._otf1
push eax
call fcn.00619720
add esp, 8
test eax, eax
je 0x58d9a0
lea ecx, [ebp + 0x6d]
push ecx
mov ecx, esi
call fcn.0058c240
mov edi, eax
test edi, edi
jne 0x58d082
cmp byte [ebp + 0x6d], al
je 0x58e119
cmp dword [esi + 0x1c], 0
jne 0x58ce27
push str.http:rcd__dwnl_finished__s1_t7__r_n
mov ecx, esi
call fcn.005abf20
mov ecx, dword [esi + 0xc]
test dword [ecx + 0x154], 0x100
je 0x58de08
mov eax, dword [esi + 0x1c0]
cmp dword [esi + 0x1c4], 0
jg 0x58de08
jl 0x58d9e9
cmp eax, 0x7d1
jae 0x58de08
mov eax, dword [ecx]
push str.youtube.com
push eax
call fcn.00619720
add esp, 8
test eax, eax
jne 0x58da18
mov edx, dword [esi + 0xc]
mov eax, dword [edx]
push str.googlevideo.com
push eax
call fcn.00619720
add esp, 8
test eax, eax
je 0x58de08
push str.http:rcd__Check_for_redirect__s1_r_n
mov ecx, esi
call fcn.005abf20
mov dword [ebp + 0x5c], 0
mov edx, dword [esi + 0x1c0]
mov eax, dword [esi + 0x1b8]
mov ecx, dword [esi + 0x1bc]
cmp edx, eax
jne 0x58da49
cmp dword [esi + 0x1c4], ecx
je 0x58da51
or eax, ecx
jne 0x58de08
mov ecx, dword [esi + 0x25c]
add ecx, 0x10
call fcn.005647d0
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 0x58db17
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x140], eax
cmp eax, 0x20
je 0x58daa8
cmp eax, 5
jne 0x58ddd7
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.00402f70
add esp, 0xc
mov ecx, dword [ebp + 0x74]
push ecx
mov ecx, esi
call fcn.005abf20
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 0x58ddd7
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 0x58db46
mov edx, dword [esi + 0xc]
cmp byte [edx + 0x33b], 0
je 0x58db6d
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
mov dword [ebp + 0x74], ebx
test ebx, ebx
jne 0x58db6d
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 0x58dbb6
mov byte [ebp - 4], 4
wait
mov edx, dword [esi + 0x25c]
mov eax, dword [edx + 0x31e8]
push eax
call fcn.005ec337
add esp, 4
wait
mov dword [ebp - 4], 2
jmp 0x58dbb6
lea eax, [ebx + 1]
push eax
call fcn.005ec342
add esp, 4
mov ecx, dword [esi + 0x25c]
mov dword [ecx + 0x31e8], eax
mov edx, dword [esi + 0x25c]
cmp dword [edx + 0x31e8], 0
je 0x58dccc
push str.Check_for_redirect__s2_r_n
mov ecx, esi
call fcn.005abf20
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 0x58dd77
cmp dword [ebp + 0x74], ebx
jne 0x58dd77
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.005abf20
mov edx, dword [esi + 0x25c]
mov eax, dword [edx + 0x31e8]
push eax
mov ecx, esi
call fcn.005abf20
push 0x6722a4
mov ecx, esi
call fcn.005abf20
push 7
push 0x670010
mov ecx, dword [esi + 0x25c]
mov edx, dword [ecx + 0x31e8]
push edx
call fcn.0061caaf
add esp, 0xc
test eax, eax
je 0x58dd60
push 8
push 0x66fff0
mov eax, dword [esi + 0x25c]
mov ecx, dword [eax + 0x31e8]
push ecx
call fcn.0061caaf
add esp, 0xc
test eax, eax
je 0x58dd60
mov edx, dword [esi + 0x25c]
mov eax, dword [edx + 0x31e8]
push eax
call fcn.005ec337
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 0x58de08
push str.http:rcd__Redirect_found_r_n
mov ecx, esi
call fcn.005abf20
mov dword [esi + 0x1c0], edi
mov dword [esi + 0x1c4], edi
fldz
fstp qword [esi + 0x188]
lea ebx, [esi + 0x28]
mov ecx, ebx
call fcn.00553780
mov ecx, ebx
call fcn.00554600
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.00575130
push 1
push edi
push edi
mov ecx, esi
call fcn.005ad4b0
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x70]
call fcn.00402570
mov eax, 0x7583
wait
jmp 0x58e149
mov ecx, dword [esi + 0x25c]
call fcn.0057bc20
mov dword [ebp + 0x5c], 1
jmp 0x58dccc
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.00402f70
add esp, 0x18
mov ecx, dword [ebp + 0x68]
push ecx
mov ecx, esi
call fcn.005abf20
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 0x58e149
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.00402f70
add esp, 0xc
mov ecx, dword [ebp + 0x68]
push ecx
mov ecx, esi
call fcn.005abf20
jmp 0x58ddb6
mov edi, dword [ebp + 0x68]
cmp edi, 0x753c
je 0x58de1c
cmp edi, 0xffffffff
jne 0x58dea9
mov eax, dword [esi + 0xc]
test dword [eax + 0x154], 0x100
je 0x58e046
cmp dword [eax + 0x30], 0
je 0x58e046
mov eax, dword [esi + 0x1c0]
or eax, dword [esi + 0x1c4]
je 0x58e046
mov eax, dword [esi + 0x1b8]
cmp dword [esi + 0x1bc], 0
jl 0x58e046
jg 0x58de6b
cmp eax, 0x40000000
jbe 0x58e046
push str.Checking_flv_file_struct._n
mov ecx, esi
call fcn.005abf20
mov ecx, esi
call fcn.0058abf0
test eax, eax
je 0x58e046
mov eax, dword [esi + 0x1c0]
mov ecx, dword [esi + 0x1c4]
push 1
push ecx
push eax
mov ecx, esi
call fcn.005ad4b0
push str.DurationlastTimeStamp__seems_the_flv_file_is_comlete._n
mov ecx, esi
call fcn.005abf20
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 0x58df6d
mov edi, ecx
cmp dword [ebp + 0x58], edi
jne 0x58df6d
mov edi, eax
or edi, ecx
je 0x58df6d
mov edi, dword [esi + 0x10]
cmp dword [edi], 0
je 0x58df1b
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 0x58df6d
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 [0x755b84]
push edx
lea eax, [ebp + 0x70]
push eax
call fcn.00402f70
add esp, 0x10
push 1
mov ecx, dword [ebp + 0x70]
push ecx
mov ecx, esi
call fcn.005ad0d0
mov ecx, dword [esi + 0x1c0]
mov edi, dword [esi + 0x1b8]
mov eax, dword [esi + 0x1bc]
cmp ecx, edi
jne 0x58dfc1
mov edx, dword [esi + 0x1c4]
mov ebx, eax
cmp edx, ebx
je 0x58e09c
mov edx, edi
or edx, eax
je 0x58e09c
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 0x58e001
mov edx, ebx
cmp dword [ebp + 0x48], edx
je 0x58e09c
mov edx, dword [esi + 0x1c4]
mov ebx, dword [esi + 0x1bc]
add eax, edi
adc ecx, ebx
cmp edx, ecx
jl 0x58ddc2
jg 0x58e027
cmp dword [esi + 0x1c0], eax
jbe 0x58ddc2
lea ecx, [esi + 0x28]
call fcn.00553fa0
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x70]
call fcn.00402570
mov eax, 0x7570
wait
jmp 0x58e149
mov edx, dword [esi + 0x1c4]
push edx
mov eax, dword [esi + 0x1c0]
push eax
mov ecx, dword [0x755b90]
push ecx
lea edx, [ebp + 0x70]
push edx
call fcn.00402f70
add esp, 0x10
push 1
mov eax, dword [ebp + 0x70]
push eax
mov ecx, esi
call fcn.005ad0d0
mov esi, dword [esi + 0x140]
test esi, esi
je 0x58e086
cmp edi, 0x753c
je 0x58e088
mov esi, edi
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x70]
call fcn.00402570
mov eax, esi
wait
jmp 0x58e149
mov ecx, dword [esi + 0xc]
cmp dword [ecx + 0x320], 0
je 0x58e0d6
mov eax, dword [esi + 0x40]
test eax, eax
je 0x58e0d6
mov eax, dword [eax + 0x40]
test eax, eax
je 0x58e0d6
mov eax, dword [eax + 0x48]
test eax, eax
je 0x58e0d6
cmp dword [ecx + 0x318], 8
jne 0x58e0d6
add ecx, 0x3f4
push ecx
push eax
call fcn.0058a770
add esp, 8
xor edi, edi
cmp edi, dword [esi + 0x1a8]
jge 0x58e101
mov eax, edi
imul eax, eax, 0x3470
mov ecx, dword [esi + 0x25c]
add ecx, eax
cmp dword [ecx + 0x94], 0
je 0x58e0fe
call fcn.005707f0
inc edi
jmp 0x58e0d8
mov ecx, esi
call fcn.005ae420
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x70]
call fcn.00402570
xor eax, eax
wait
jmp 0x58e149
mov ecx, esi
call fcn.00589340
mov ecx, esi
call fcn.005ae420
jmp 0x58cce8
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