Function at 0x58a130
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 0x657fb8
mov eax, dword fs:[0]
push eax
sub esp, 0x94
push ebx
push esi
push edi
mov eax, dword [0x74d890]
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 0x58a187
mov dword [esi + 0x28], edi
jmp 0x58a485
mov edx, dword [eax + 0x318]
cmp edx, 4
je 0x58a374
cmp ecx, 0x40
jne 0x58a1a8
cmp byte [eax + 0x17f], 0
jne 0x58a374
cmp edx, 8
je 0x58a374
cmp ecx, 0x800
je 0x58a374
cmp edx, 0x40
jne 0x58a1cf
cmp byte [eax + 0x17f], 0
jne 0x58a374
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.00462630
push str.googleusercontent.com
mov eax, dword [ebp + 0x74]
push eax
call fcn.006172ee
add esp, 0x10
neg eax
sbb eax, eax
inc eax
mov ecx, dword [esi + 0x1b8]
or ecx, dword [esi + 0x1bc]
jne 0x58a363
cmp byte [esi + 0x870], cl
jne 0x58a363
cmp dword [esi + 0x1a4], ebx
jle 0x58a363
mov ecx, dword [esi + 0xc]
cmp byte [ecx + 0x167], 0
je 0x58a363
cmp dword [ecx + 0x320], edi
jne 0x58a363
mov ecx, dword [esi + 0x25c]
cmp byte [ecx + 0xd8], 0
je 0x58a261
cmp eax, edi
je 0x58a363
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 0x58a2d6
mov ecx, dword [esi + 0x25c]
mov edx, dword [esi + eax*4 + 0x468]
cmp edx, dword [ecx + 0x6660]
je 0x58a2d6
add eax, ebx
jmp 0x58a2b2
mov ecx, dword [esi + 0x464]
cmp eax, ecx
jne 0x58a301
cmp ecx, 0x80
jae 0x58a301
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 0x58a327
mov ecx, dword [esi + 0x25c]
mov edx, dword [esi + eax*4 + 0x66c]
cmp edx, dword [ecx + 0x6660]
je 0x58a327
add eax, ebx
jmp 0x58a303
mov ecx, dword [esi + 0x668]
cmp eax, ecx
jne 0x58a352
cmp ecx, 0x80
jae 0x58a352
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 0x58a485
mov dword [esi + 0x28], edi
cmp dword [eax + 0x310], edi
je 0x58a485
cmp dword [esi + 0x238], edi
je 0x58a485
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 0x58a3d3
mov eax, dword [eax + 0x50]
cmp eax, edi
je 0x58a3c4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x58a3d3
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 0x58a3f4
cmp eax, 2
je 0x58a3f4
cmp eax, 4
jne 0x58a485
cmp dword [ecx + 0x948], edi
jne 0x58a485
push 0x6a7038
mov ecx, esi
call fcn.005a96b0
mov eax, dword [esi + 0x258]
cmp eax, edi
je 0x58a440
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 0x58a475
push ecx
mov eax, dword [eax]
push eax
call fcn.006172ee
add esp, 8
test eax, eax
jne 0x58a475
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.005bd160
mov eax, dword [esi + 0xc]
cmp dword [eax + 0x320], edi
je 0x58a4a3
cmp byte [eax + 0x324], 0
je 0x58a4a3
mov dword [eax + 0xb0], 1
mov ecx, dword [esi + 0xc]
mov eax, dword [ecx]
push 0x6736b4
push eax
call fcn.00616e70
add esp, 8
test eax, eax
je 0x58a4c1
mov byte [esi + 0x250], 1
push 1
mov edx, dword [0x753b68]
push edx
mov ecx, esi
call fcn.005aa860
mov ecx, dword [esi + 0x258]
cmp ecx, edi
je 0x58a4e0
call fcn.005ad920
mov ecx, esi
call fcn.005a9860
mov dword [ebp + 0x50], 0xbb8
mov ecx, esi
call fcn.005a9e60
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.005a9fa0
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.006192f1
lea ecx, [ebp]
push ecx
call fcn.006192f1
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 0x58a5a3
mov edx, edi
imul edx, edx, 0x3470
mov eax, dword [esi + 0x25c]
lea ecx, [edx + eax]
cmp dword [ecx + 0x94], 0
je 0x58a5a0
inc ebx
call fcn.00586080
test al, al
je 0x58a5a0
inc dword [ebp + 0x4c]
inc edi
jmp 0x58a571
mov eax, 1
cmp dword [ebp + 0x4c], eax
jne 0x58a5b8
cmp ebx, eax
jne 0x58a5b8
mov byte [ebp + 0x6e], 0
mov dword [ebp + 0xc], eax
cmp dword [esi + 0x1c], 0
je 0x58a63c
lea ecx, [esi + 0x28]
call fcn.00550ed0
mov ecx, dword [esi + 0xc]
cmp dword [ecx + 0x320], 0x20
jne 0x58a5e0
mov eax, dword [ecx + 0xf0]
mov ecx, dword [ecx + 0xf4]
jmp 0x58a5ec
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 0x58ba19
mov ecx, esi
call fcn.005a9450
mov byte [ebp + 0x5c], al
test al, al
je 0x58a668
lea ecx, [ebp - 0x4c]
push ecx
call fcn.006192f1
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 0x58a69f
mov ecx, edi
imul ecx, ecx, 0x3470
mov edx, dword [esi + 0x25c]
add ecx, edx
cmp dword [ecx + 0x94], 0
je 0x58a6d5
call fcn.005712a0
test al, al
je 0x58a6d5
mov ebx, 1
mov byte [ebp + 0x6f], 0
cmp byte [ebp + 0x6e], 0
je 0x58a6d8
test ebx, ebx
jne 0x58a6f1
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 0x58a6f1
inc edi
jmp 0x58a670
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 0x58a704
lea ecx, [esi + 0x28]
call fcn.00550ed0
jmp 0x58a625
mov eax, dword [esi + 0x1c0]
or eax, dword [esi + 0x1c4]
jne 0x58a745
lea edx, [ebp]
push edx
call fcn.006192f1
add esp, 4
mov eax, dword [ebp]
sub eax, dword [ebp - 0xa0]
cmp eax, 0x12c
jle 0x58a745
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x70]
call fcn.00402570
mov eax, 0x7533
wait
jmp 0x58ba19
mov ecx, dword [esi + 0x1c0]
mov dword [ebp + 0x44], ecx
mov edx, dword [esi + 0x1c4]
mov dword [ebp + 0x48], edx
cmp ebx, 0xffffffff
je 0x58a7a9
test ebx, ebx
je 0x58a7a9
xor ebx, ebx
cmp ebx, dword [esi + 0x1a8]
jge 0x58a7b0
mov eax, ebx
imul eax, eax, 0x3470
mov ecx, dword [esi + 0x25c]
lea edi, [eax + ecx]
cmp dword [edi + 0x94], 0
je 0x58a7a6
cmp dword [esi + 0x1c], 0
jne 0x58a6f7
mov ecx, edi
cmp byte [ebp + 0x6f], 0
jne 0x58a7a1
call fcn.005712a0
test al, al
je 0x58a7a6
mov ecx, edi
call fcn.005805d0
inc ebx
jmp 0x58a762
mov ecx, esi
call fcn.00586960
mov edx, dword [ebp + 0x5c]
push edx
push 0
mov ecx, esi
call fcn.005aa040
lea eax, [ebp - 0x24]
push eax
call fcn.006192f1
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 0x58a830
lea eax, [ebp]
push eax
call fcn.006192f1
add esp, 4
xor edi, edi
lea esp, [esp]
cmp edi, dword [esi + 0x1a8]
jge 0x58a829
mov ecx, edi
imul ecx, ecx, 0x3470
mov edx, dword [esi + 0x25c]
add ecx, edx
cmp dword [ecx + 0x94], 0
je 0x58a826
call fcn.0056df30
inc edi
jmp 0x58a800
mov di, word [ebp - 0x20]
mov eax, dword [ebp - 0x24]
xor ebx, ebx
cmp dword [esi + 0x24], ebx
jne 0x58a98a
mov ecx, dword [esi + 0x1c0]
mov edx, dword [esi + 0x1c4]
cmp dword [ebp + 0x38], edx
jg 0x58a98a
jl 0x58a85b
cmp dword [ebp + 0x34], ecx
jae 0x58a98a
cmp dword [ebp + 0x44], ecx
jne 0x58a98a
cmp dword [ebp + 0x48], edx
jne 0x58a98a
mov ecx, dword [ebp + 0x60]
imul eax, eax, 0x3e8
or ecx, dword [ebp + 0x64]
jne 0x58a88c
movzx edx, di
add eax, edx
cdq
mov dword [ebp + 0x60], eax
mov dword [ebp + 0x64], edx
jmp 0x58a990
movzx ecx, di
add eax, ecx
cdq
mov edi, eax
mov ebx, edx
mov ecx, dword [esi + 0xc]
call fcn.0056def0
fstp qword [ebp + 0x2c]
mov ecx, dword [esi + 0xc]
call fcn.0056deb0
fld qword [ebp + 0x2c]
fcom st(1)
fnstsw ax
test ah, 0x41
jne 0x58a8b9
fstp st(1)
jmp 0x58a8bb
fstp st(0)
fmul qword [0x6a7030]
fadd qword [0x6a7028]
call fcn.00617a66
sub edi, dword [ebp + 0x60]
sbb ebx, dword [ebp + 0x64]
cmp ebx, edx
jl 0x58a990
jg 0x58a8e4
cmp edi, eax
jbe 0x58a990
xor ebx, ebx
mov dword [ebp + 0x60], ebx
mov dword [ebp + 0x64], ebx
mov ecx, esi
call fcn.005be5d0
test eax, eax
je 0x58a990
cmp dword [esi + 0x1c], ebx
jne 0x58a625
push str.Restart_type_s018_n
mov ecx, esi
call fcn.005a96b0
mov ecx, dword [esi + 0x25c]
call fcn.005745f0
mov ecx, dword [esi + 0x25c]
call fcn.00572a00
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 0x58a952
push ebx
mov ecx, dword [esi + 0x25c]
call fcn.00582e50
mov edi, eax
cmp edi, ebx
je 0x58a966
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x70]
call fcn.00402570
mov eax, edi
wait
jmp 0x58ba19
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 [0x753b68]
push edx
mov ecx, esi
call fcn.005aa860
jmp 0x58a990
mov dword [ebp + 0x60], ebx
mov dword [ebp + 0x64], ebx
mov eax, dword [esi + 0xc]
cmp dword [eax + 0xb0], 2
jne 0x58ada4
mov bl, 1
mov ecx, dword [esi + 0x1b8]
mov edx, dword [esi + 0x1bc]
mov eax, edx
test eax, eax
jl 0x58a9d5
jg 0x58a9bb
cmp ecx, 0x32
jbe 0x58a9d5
mov eax, dword [esi + 0x25c]
cmp dword [eax + 0x84], 0
jl 0x58a9fc
jg 0x58a9d5
cmp dword [eax + 0x80], 0x32
jb 0x58a9fc
test edx, edx
jg 0x58aa18
jl 0x58a9e0
cmp ecx, 0x32
ja 0x58aa18
mov eax, dword [esi + 0x25c]
mov edi, dword [eax + 0x84]
cmp edi, edx
jg 0x58aa18
jl 0x58a9fc
mov edx, dword [eax + 0x80]
cmp edx, ecx
jae 0x58aa18
xor bl, bl
cmp byte [eax + 0xd8], bl
je 0x58aa18
mov ecx, dword [eax + 0x58]
or ecx, dword [eax + 0x5c]
jne 0x58aa18
cmp byte [eax + 0xd9], cl
je 0x58aa18
mov bl, 1
mov ecx, dword [esi + 0xc]
test dword [ecx + 0x154], 0x100
je 0x58aa93
mov eax, dword [esi + 0x1c0]
cmp dword [esi + 0x1c4], 0
jg 0x58aa93
jl 0x58aa3f
cmp eax, 0x7d1
jae 0x58aa93
mov eax, dword [ecx]
push str.youtube.com
push eax
call fcn.00616e70
add esp, 8
test eax, eax
jne 0x58aa6a
mov edx, dword [esi + 0xc]
mov eax, dword [edx]
push str.googlevideo.com
push eax
call fcn.00616e70
add esp, 8
test eax, eax
je 0x58aa93
mov eax, dword [esi + 0x1b8]
mov ecx, dword [esi + 0x1bc]
test ecx, ecx
jl 0x58ada4
jg 0x58aa8b
cmp eax, 0x7d1
jb 0x58ada4
or eax, ecx
je 0x58ada4
test bl, bl
je 0x58ada4
movzx eax, byte [esi + 0x256]
push eax
mov ecx, dword [esi + 0xc]
call fcn.005c8730
mov dword [ebp + 0x68], eax
mov edi, dword [esi + 0xc]
cmp byte [edi + 0x342], 0
je 0x58aac8
mov ecx, 0x753260
call fcn.0056e040
test al, al
jne 0x58aad1
cmp byte [esi + 0x870], 0
je 0x58ab3f
xor ebx, ebx
cmp dword [edi + 0xb0], 2
jne 0x58aae1
cmp dword [ebp + 0x68], ebx
je 0x58ab41
mov ecx, dword [esi + 0x25c]
call fcn.005745f0
lea ecx, [esi + 0x28]
call fcn.00551d50
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 0x58b0d1
mov ecx, 0x753260
call fcn.0056e040
test al, al
je 0x58b0d1
jmp 0x58a625
xor ebx, ebx
cmp dword [esi + 0xb8], ebx
jle 0x58abcc
mov edx, dword [edi + 0xcc]
mov eax, edx
lea ebx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x58ab58
sub eax, ebx
je 0x58abcc
mov edi, dword [edi + 0xbc]
test edi, edi
je 0x58ab8a
mov eax, edx
lea ebx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x58ab72
sub eax, ebx
push eax
push edi
push edx
call fcn.0061a1ff
add esp, 0xc
test eax, eax
je 0x58abcc
mov eax, dword [esi + 0x14]
cmp dword [eax], 0
je 0x58abab
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 0x58abcc
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 0x58ada4
cmp dword [esi + 0x13c], 0
jne 0x58ad46
cmp byte [0x753267], 0
jne 0x58acd5
mov byte [ebp + 0x6f], 0
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + 0xbc]
test ecx, ecx
je 0x58ac4d
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 0x58ac10
sub eax, ebx
je 0x58ac4d
mov eax, edi
lea ecx, [ecx]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x58ac40
test dl, dl
je 0x58ac3c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x58ac40
add eax, 2
add ecx, 2
test dl, dl
jne 0x58ac20
xor eax, eax
jmp 0x58ac45
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x58ac4d
mov byte [ebp + 0x6f], 1
mov edx, dword [esi + 0x1b8]
mov edi, dword [esi + 0x1bc]
test edi, edi
jl 0x58ac84
jg 0x58ac63
test edx, edx
jbe 0x58ac84
mov ecx, dword [esi + 0xc]
mov eax, dword [ecx + 0xe8]
mov ecx, dword [ecx + 0xec]
test ecx, ecx
jl 0x58ac84
jg 0x58ac7c
test eax, eax
jbe 0x58ac84
cmp eax, edx
jne 0x58ac8a
cmp ecx, edi
jne 0x58ac8a
cmp byte [ebp + 0x6f], 0
je 0x58acd5
push 0x66e97c
mov eax, dword [esi + 0xc]
lea ecx, [eax + 0xe4]
call fcn.00546c40
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 [0x754368]
push eax
push 0
call fcn.0046f2a0
add esp, 0x10
jmp 0x58a625
mov eax, dword [esi + 0xc]
cmp dword [eax + 0x3c], 0
je 0x58ad46
cmp dword [eax + 0x34], 0
je 0x58ace9
mov eax, dword [eax + 0x34]
jmp 0x58acec
add eax, 0x38
push 0x2e
push eax
call fcn.006152e7
add esp, 8
mov edi, eax
test edi, edi
je 0x58ad46
push 0x67fdf4
push edi
call fcn.0061acda
add esp, 8
test eax, eax
je 0x58ad46
push 0x67a32c
push edi
call fcn.0061acda
add esp, 8
test eax, eax
je 0x58ad46
push 0x50004
mov ecx, dword [esi + 0xc]
mov edx, dword [ecx + 8]
push edx
mov eax, dword [0x753bdc]
push eax
push 0
call fcn.0046f2a0
add esp, 0x10
cmp eax, 7
je 0x58a625
mov eax, dword [esi + 0xc]
cmp dword [eax + 0x3c], 0
je 0x58ada4
cmp dword [eax + 0x34], 0
je 0x58ad5a
mov eax, dword [eax + 0x34]
jmp 0x58ad5d
add eax, 0x38
push 0x2e
push eax
call fcn.006152e7
add esp, 8
mov edi, eax
test edi, edi
je 0x58ada4
push 0x67fdf4
push edi
call fcn.0061acda
add esp, 8
test eax, eax
je 0x58ada4
push 0x67a32c
push edi
call fcn.0061acda
add esp, 8
test eax, eax
je 0x58ada4
mov ecx, dword [esi + 0xc]
call fcn.005c3cf0
mov edi, eax
test edi, edi
jne 0x58a952
cmp byte [ebp + 0x5c], 0
je 0x58afdc
mov eax, dword [esi + 0x1c0]
cmp dword [esi + 0x1c4], 0
jl 0x58afdc
jg 0x58adce
cmp eax, 0x400
jbe 0x58afdc
mov ecx, esi
call fcn.005a9420
mov ebx, eax
mov edi, edx
lea ecx, [ebp - 0x38]
push ecx
call fcn.006192f1
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 0x58afdc
jg 0x58ae0d
test eax, eax
jbe 0x58afdc
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 0x58ae31
mov dword [ebp + 0x74], 1
fild qword [ebp + 0x14]
fmul qword [0x67c730]
fidiv dword [ebp + 0x74]
call fcn.00617a66
mov ecx, eax
cmp edx, edi
jl 0x58afdc
jg 0x58ae56
cmp ecx, ebx
jbe 0x58afdc
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.0061a480
push edi
push ebx
push edx
push eax
call fcn.006197b0
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.006197b0
cmp dword [ebp + 0x40], edx
jg 0x58aec6
jl 0x58ae9d
cmp dword [ebp + 0x3c], eax
jae 0x58aec6
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 0x58aef7
mov ecx, 0x2ee0
jmp 0x58aeff
push 0
push 9
push edi
push ebx
call fcn.0061a480
push 0
push 0xa
push edx
push eax
call fcn.006197b0
cmp dword [ebp + 0x40], edx
jg 0x58aeb2
jl 0x58aee8
cmp dword [ebp + 0x3c], eax
jae 0x58aeb2
mov eax, dword [ebp + 0x74]
cdq
sub eax, edx
sar eax, 1
mov ecx, eax
mov dword [ebp + 0x74], ecx
jmp 0x58aeb5
cmp ecx, ebx
jle 0x58afdc
mov edi, dword [esi + 0x86c]
cmp edi, 0xffffffff
je 0x58afd5
mov dword [esi + 0x260], ebx
mov dword [esi + 0x464], ebx
mov dword [esi + 0x668], ebx
xor eax, eax
cmp eax, dword [esi + 0x260]
jae 0x58af36
cmp dword [esi + eax*4 + 0x264], edi
je 0x58af36
inc eax
jmp 0x58af22
mov edx, dword [esi + 0x260]
cmp eax, edx
jne 0x58af55
cmp edx, 0x80
jae 0x58af55
mov dword [esi + eax*4 + 0x264], edi
inc dword [esi + 0x260]
xor eax, eax
cmp eax, dword [esi + 0x668]
jae 0x58af71
mov edx, dword [esi + eax*4 + 0x66c]
cmp edx, dword [esi + 0x86c]
je 0x58af71
inc eax
jmp 0x58af57
lea edi, [esi + 0x668]
mov edx, dword [edi]
cmp eax, edx
jne 0x58af94
cmp edx, 0x80
jae 0x58af94
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 0x58afdc
push ecx
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, esi
call fcn.005865d0
mov dword [ebp + 0x68], eax
test eax, eax
je 0x58b9e9
mov byte [ebp + 0x6d], 1
cmp eax, 1
jne 0x58b270
cmp dword [esi + 0x40], 0
jne 0x58b270
mov eax, dword [esi + 0xc]
cmp dword [eax + 0x320], 0
je 0x58b112
cmp byte [eax + 0x324], 0
je 0x58b112
mov ecx, dword [esi + 0x25c]
add ecx, 0x10
call fcn.00561ed0
mov ecx, esi
call fcn.00589170
test eax, eax
je 0x58b0e8
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.005a9a30
mov edx, dword [esi + 0xc]
mov bl, byte [edx + 0x342]
test bl, bl
je 0x58b092
mov ecx, 0x753260
call fcn.0056e040
test al, al
jne 0x58b09f
cmp byte [esi + 0x870], 0
je 0x58b9e9
test bl, bl
je 0x58b0b5
mov ecx, 0x753260
call fcn.0056e040
test al, al
jne 0x58a625
lea ecx, [esi + 0x28]
call fcn.00551d50
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 0x58ba19
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 0x58b270
mov eax, dword [eax]
push str.googlevideo.com
push eax
call fcn.00616e70
add esp, 8
test eax, eax
je 0x58b270
mov eax, dword [esi + 0x1c0]
cmp dword [esi + 0x1c4], 0
jg 0x58b270
jl 0x58b14a
cmp eax, 0x1f400
jae 0x58b270
mov eax, dword [esi + 0xc]
mov eax, dword [eax + 8]
test eax, eax
je 0x58b270
push str.dur0.0
push eax
call fcn.00616e70
add esp, 8
test eax, eax
jne 0x58b182
mov ecx, dword [esi + 0xc]
mov eax, dword [ecx + 8]
push str._dur0.0
push eax
call fcn.00616e70
add esp, 8
test eax, eax
je 0x58b1e6
mov edx, dword [esi + 0xc]
mov eax, dword [edx + 8]
push str.sourceyt_otf
push eax
call fcn.00616e70
add esp, 8
test eax, eax
jne 0x58b1b2
mov eax, dword [esi + 0xc]
mov eax, dword [eax + 8]
push str._sourceyt_otf
push eax
call fcn.00616e70
add esp, 8
test eax, eax
je 0x58b1e6
mov ecx, dword [esi + 0xc]
mov eax, dword [ecx + 8]
push str.otf1
push eax
call fcn.00616e70
add esp, 8
test eax, eax
jne 0x58b252
mov edx, dword [esi + 0xc]
mov eax, dword [edx + 8]
push str._otf1
push eax
call fcn.00616e70
add esp, 8
test eax, eax
jne 0x58b252
mov eax, dword [esi + 0xc]
mov eax, dword [eax + 0xc8]
push str.sourceyt_otf
push eax
call fcn.00616e70
add esp, 8
test eax, eax
jne 0x58b21c
mov ecx, dword [esi + 0xc]
mov eax, dword [ecx + 0xc8]
push str._sourceyt_otf
push eax
call fcn.00616e70
add esp, 8
test eax, eax
je 0x58b270
mov edx, dword [esi + 0xc]
mov eax, dword [edx + 0xc8]
push str.otf1
push eax
call fcn.00616e70
add esp, 8
test eax, eax
jne 0x58b252
mov eax, dword [esi + 0xc]
mov eax, dword [eax + 0xc8]
push str._otf1
push eax
call fcn.00616e70
add esp, 8
test eax, eax
je 0x58b270
lea ecx, [ebp + 0x6d]
push ecx
mov ecx, esi
call fcn.00589b10
mov edi, eax
test edi, edi
jne 0x58a952
cmp byte [ebp + 0x6d], al
je 0x58b9e9
cmp dword [esi + 0x1c], 0
jne 0x58a6f7
push str.http:rcd__dwnl_finished__s1_t7__r_n
mov ecx, esi
call fcn.005a96b0
mov ecx, dword [esi + 0xc]
test dword [ecx + 0x154], 0x100
je 0x58b6d8
mov eax, dword [esi + 0x1c0]
cmp dword [esi + 0x1c4], 0
jg 0x58b6d8
jl 0x58b2b9
cmp eax, 0x7d1
jae 0x58b6d8
mov eax, dword [ecx]
push str.youtube.com
push eax
call fcn.00616e70
add esp, 8
test eax, eax
jne 0x58b2e8
mov edx, dword [esi + 0xc]
mov eax, dword [edx]
push str.googlevideo.com
push eax
call fcn.00616e70
add esp, 8
test eax, eax
je 0x58b6d8
push str.http:rcd__Check_for_redirect__s1_r_n
mov ecx, esi
call fcn.005a96b0
mov dword [ebp + 0x5c], 0
mov edx, dword [esi + 0x1c0]
mov eax, dword [esi + 0x1b8]
mov ecx, dword [esi + 0x1bc]
cmp edx, eax
jne 0x58b319
cmp dword [esi + 0x1c4], ecx
je 0x58b321
or eax, ecx
jne 0x58b6d8
mov ecx, dword [esi + 0x25c]
add ecx, 0x10
call fcn.00561ed0
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 0x58b3e7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x140], eax
cmp eax, 0x20
je 0x58b378
cmp eax, 5
jne 0x58b6a7
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.005a96b0
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 0x58b6a7
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 0x58b416
mov edx, dword [esi + 0xc]
cmp byte [edx + 0x33b], 0
je 0x58b43d
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
mov dword [ebp + 0x74], ebx
test ebx, ebx
jne 0x58b43d
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 0x58b486
mov byte [ebp - 4], 4
wait
mov edx, dword [esi + 0x25c]
mov eax, dword [edx + 0x31e8]
push eax
call fcn.005e9ab2
add esp, 4
wait
mov dword [ebp - 4], 2
jmp 0x58b486
lea eax, [ebx + 1]
push eax
call fcn.005e9aa7
add esp, 4
mov ecx, dword [esi + 0x25c]
mov dword [ecx + 0x31e8], eax
mov edx, dword [esi + 0x25c]
cmp dword [edx + 0x31e8], 0
je 0x58b59c
push str.Check_for_redirect__s2_r_n
mov ecx, esi
call fcn.005a96b0
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 0x58b647
cmp dword [ebp + 0x74], ebx
jne 0x58b647
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.005a96b0
mov edx, dword [esi + 0x25c]
mov eax, dword [edx + 0x31e8]
push eax
mov ecx, esi
call fcn.005a96b0
push 0x67029c
mov ecx, esi
call fcn.005a96b0
push 7
push 0x66e010
mov ecx, dword [esi + 0x25c]
mov edx, dword [ecx + 0x31e8]
push edx
call fcn.0061a1ff
add esp, 0xc
test eax, eax
je 0x58b630
push 8
push 0x66dff0
mov eax, dword [esi + 0x25c]
mov ecx, dword [eax + 0x31e8]
push ecx
call fcn.0061a1ff
add esp, 0xc
test eax, eax
je 0x58b630
mov edx, dword [esi + 0x25c]
mov eax, dword [edx + 0x31e8]
push eax
call fcn.005e9ab2
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 0x58b6d8
push str.http:rcd__Redirect_found_r_n
mov ecx, esi
call fcn.005a96b0
mov dword [esi + 0x1c0], edi
mov dword [esi + 0x1c4], edi
fldz
fstp qword [esi + 0x188]
lea ebx, [esi + 0x28]
mov ecx, ebx
call fcn.00550ed0
mov ecx, ebx
call fcn.00551d50
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.00572a00
push 1
push edi
push edi
mov ecx, esi
call fcn.005aac40
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x70]
call fcn.00402570
mov eax, 0x7583
wait
jmp 0x58ba19
mov ecx, dword [esi + 0x25c]
call fcn.005794e0
mov dword [ebp + 0x5c], 1
jmp 0x58b59c
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.005a96b0
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 0x58ba19
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.005a96b0
jmp 0x58b686
mov edi, dword [ebp + 0x68]
cmp edi, 0x753c
je 0x58b6ec
cmp edi, 0xffffffff
jne 0x58b779
mov eax, dword [esi + 0xc]
test dword [eax + 0x154], 0x100
je 0x58b916
cmp dword [eax + 0x30], 0
je 0x58b916
mov eax, dword [esi + 0x1c0]
or eax, dword [esi + 0x1c4]
je 0x58b916
mov eax, dword [esi + 0x1b8]
cmp dword [esi + 0x1bc], 0
jl 0x58b916
jg 0x58b73b
cmp eax, 0x40000000
jbe 0x58b916
push str.Checking_flv_file_struct._n
mov ecx, esi
call fcn.005a96b0
mov ecx, esi
call fcn.005884c0
test eax, eax
je 0x58b916
mov eax, dword [esi + 0x1c0]
mov ecx, dword [esi + 0x1c4]
push 1
push ecx
push eax
mov ecx, esi
call fcn.005aac40
push str.DurationlastTimeStamp__seems_the_flv_file_is_comlete._n
mov ecx, esi
call fcn.005a96b0
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 0x58b83d
mov edi, ecx
cmp dword [ebp + 0x58], edi
jne 0x58b83d
mov edi, eax
or edi, ecx
je 0x58b83d
mov edi, dword [esi + 0x10]
cmp dword [edi], 0
je 0x58b7eb
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 0x58b83d
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 [0x753b64]
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.005aa860
mov ecx, dword [esi + 0x1c0]
mov edi, dword [esi + 0x1b8]
mov eax, dword [esi + 0x1bc]
cmp ecx, edi
jne 0x58b891
mov edx, dword [esi + 0x1c4]
mov ebx, eax
cmp edx, ebx
je 0x58b96c
mov edx, edi
or edx, eax
je 0x58b96c
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 0x58b8d1
mov edx, ebx
cmp dword [ebp + 0x48], edx
je 0x58b96c
mov edx, dword [esi + 0x1c4]
mov ebx, dword [esi + 0x1bc]
add eax, edi
adc ecx, ebx
cmp edx, ecx
jl 0x58b692
jg 0x58b8f7
cmp dword [esi + 0x1c0], eax
jbe 0x58b692
lea ecx, [esi + 0x28]
call fcn.005516f0
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x70]
call fcn.00402570
mov eax, 0x7570
wait
jmp 0x58ba19
mov edx, dword [esi + 0x1c4]
push edx
mov eax, dword [esi + 0x1c0]
push eax
mov ecx, dword [0x753b70]
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.005aa860
mov esi, dword [esi + 0x140]
test esi, esi
je 0x58b956
cmp edi, 0x753c
je 0x58b958
mov esi, edi
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x70]
call fcn.00402570
mov eax, esi
wait
jmp 0x58ba19
mov ecx, dword [esi + 0xc]
cmp dword [ecx + 0x320], 0
je 0x58b9a6
mov eax, dword [esi + 0x40]
test eax, eax
je 0x58b9a6
mov eax, dword [eax + 0x40]
test eax, eax
je 0x58b9a6
mov eax, dword [eax + 0x48]
test eax, eax
je 0x58b9a6
cmp dword [ecx + 0x318], 8
jne 0x58b9a6
add ecx, 0x3f4
push ecx
push eax
call fcn.00588040
add esp, 8
xor edi, edi
cmp edi, dword [esi + 0x1a8]
jge 0x58b9d1
mov eax, edi
imul eax, eax, 0x3470
mov ecx, dword [esi + 0x25c]
add ecx, eax
cmp dword [ecx + 0x94], 0
je 0x58b9ce
call fcn.0056df30
inc edi
jmp 0x58b9a8
mov ecx, esi
call fcn.005abbb0
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x70]
call fcn.00402570
xor eax, eax
wait
jmp 0x58ba19
mov ecx, esi
call fcn.00586c10
mov ecx, esi
call fcn.005abbb0
jmp 0x58a5b8
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