Function at 0x591940
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 0x65ffd8
mov eax, dword fs:[0]
push eax
sub esp, 0x94
push ebx
push esi
push edi
mov eax, dword [0x755898]
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
je 0x591cad
cmp ecx, 8
jne 0x5919ad
cmp dword [eax + 0x318], ecx
je 0x5919ad
cmp byte [eax + 0x17d], 0
jne 0x591cad
mov edx, dword [eax + 0x318]
cmp edx, 4
je 0x591b9a
cmp ecx, 0x40
jne 0x5919ce
cmp byte [eax + 0x17f], 0
jne 0x591b9a
cmp edx, 8
je 0x591b9a
cmp ecx, 0x800
je 0x591b9a
cmp edx, 0x40
jne 0x5919f5
cmp byte [eax + 0x17f], 0
jne 0x591b9a
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.00465d80
push str.googleusercontent.com
mov eax, dword [ebp + 0x74]
push eax
call fcn.0061ee1e
add esp, 0x10
neg eax
sbb eax, eax
inc eax
mov ecx, dword [esi + 0x1b8]
or ecx, dword [esi + 0x1bc]
jne 0x591b89
cmp byte [esi + 0x870], cl
jne 0x591b89
cmp dword [esi + 0x1a4], ebx
jle 0x591b89
mov ecx, dword [esi + 0xc]
cmp byte [ecx + 0x167], 0
je 0x591b89
cmp dword [ecx + 0x320], edi
jne 0x591b89
mov ecx, dword [esi + 0x25c]
cmp byte [ecx + 0xd8], 0
je 0x591a87
cmp eax, edi
je 0x591b89
mov dword [ecx + 0x3514], ebx
mov eax, dword [esi + 0x25c]
mov dword [eax + 0x34f8], edi
mov dword [eax + 0x34fc], edi
mov eax, dword [esi + 0x25c]
mov dword [eax + 0x34e0], edi
mov dword [eax + 0x34e4], edi
mov ecx, dword [esi + 0x25c]
mov byte [ecx + 0x6687], bl
mov eax, dword [esi + 0x25c]
lea ecx, [eax + 0x3480]
mov edx, dword [ecx]
add eax, 0x6678
push eax
mov eax, dword [edx + 0x18]
call eax
xor eax, eax
mov dword [ebp - 0x14], eax
cmp eax, dword [esi + 0x464]
jae 0x591afc
mov ecx, dword [esi + 0x25c]
mov edx, dword [esi + eax*4 + 0x468]
cmp edx, dword [ecx + 0x6678]
je 0x591afc
add eax, ebx
jmp 0x591ad8
mov ecx, dword [esi + 0x464]
cmp eax, ecx
jne 0x591b27
cmp ecx, 0x80
jae 0x591b27
mov ecx, dword [esi + 0x25c]
mov edx, dword [ecx + 0x6678]
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 0x591b4d
mov ecx, dword [esi + 0x25c]
mov edx, dword [esi + eax*4 + 0x66c]
cmp edx, dword [ecx + 0x6678]
je 0x591b4d
add eax, ebx
jmp 0x591b29
mov ecx, dword [esi + 0x668]
cmp eax, ecx
jne 0x591b78
cmp ecx, 0x80
jae 0x591b78
mov ecx, dword [esi + 0x25c]
mov edx, dword [ecx + 0x6678]
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 0x591cb0
mov dword [esi + 0x28], edi
cmp dword [eax + 0x310], edi
je 0x591cb0
cmp dword [esi + 0x238], edi
je 0x591cb0
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 0x591bf9
mov eax, dword [eax + 0x50]
cmp eax, edi
je 0x591bea
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x591bf9
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 0x591c1a
cmp eax, 2
je 0x591c1a
cmp eax, 4
jne 0x591cb0
cmp dword [ecx + 0x948], edi
jne 0x591cb0
push 0x6af228
mov ecx, esi
call fcn.005b1050
mov eax, dword [esi + 0x258]
cmp eax, edi
je 0x591c66
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 0x591c9b
push ecx
mov eax, dword [eax]
push eax
call fcn.0061ee1e
add esp, 8
test eax, eax
jne 0x591c9b
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.005c4ba0
jmp 0x591cb0
mov dword [esi + 0x28], edi
mov eax, dword [esi + 0xc]
cmp dword [eax + 0x320], edi
je 0x591cce
cmp byte [eax + 0x324], 0
je 0x591cce
mov dword [eax + 0xb0], 1
mov ecx, dword [esi + 0xc]
mov eax, dword [ecx]
push str..googlevideo.com
push eax
call fcn.0061e9a0
add esp, 8
test eax, eax
je 0x591cec
mov byte [esi + 0x250], 1
push 1
mov edx, dword [0x75bb80]
push edx
mov ecx, esi
call fcn.005b2210
mov ecx, dword [esi + 0x258]
cmp ecx, edi
je 0x591d0b
call fcn.005b52e0
mov ecx, esi
call fcn.005b1200
mov dword [ebp + 0x50], 0xbb8
mov ecx, esi
call fcn.005b1800
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.005b1940
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.00620e21
lea ecx, [ebp]
push ecx
call fcn.00620e21
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
lea esp, [esp]
cmp edi, dword [esi + 0x1a8]
jge 0x591dd2
mov edx, edi
imul edx, edx, 0x3480
mov eax, dword [esi + 0x25c]
lea ecx, [edx + eax]
cmp dword [ecx + 0x94], 0
je 0x591dcf
inc ebx
call fcn.0058d950
test al, al
je 0x591dcf
inc dword [ebp + 0x4c]
inc edi
jmp 0x591da0
mov eax, 1
cmp dword [ebp + 0x4c], eax
jne 0x591de7
cmp ebx, eax
jne 0x591de7
mov byte [ebp + 0x6e], 0
mov dword [ebp + 0xc], eax
cmp dword [esi + 0x1c], 0
je 0x591e6b
lea ecx, [esi + 0x28]
call fcn.00558390
mov ecx, dword [esi + 0xc]
cmp dword [ecx + 0x320], 0x20
jne 0x591e0f
mov eax, dword [ecx + 0xf0]
mov ecx, dword [ecx + 0xf4]
jmp 0x591e1b
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 0x593249
mov ecx, esi
call fcn.005b0df0
mov byte [ebp + 0x5c], al
test al, al
je 0x591e97
lea ecx, [ebp - 0x4c]
push ecx
call fcn.00620e21
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
jmp 0x591ea0
cmp edi, dword [esi + 0x1a8]
jge 0x591ecf
mov ecx, edi
imul ecx, ecx, 0x3480
mov edx, dword [esi + 0x25c]
add ecx, edx
cmp dword [ecx + 0x94], 0
je 0x591f05
call fcn.00578770
test al, al
je 0x591f05
mov ebx, 1
mov byte [ebp + 0x6f], 0
cmp byte [ebp + 0x6e], 0
je 0x591f08
test ebx, ebx
jne 0x591f21
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 0x591f21
inc edi
jmp 0x591ea0
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 0x591f34
lea ecx, [esi + 0x28]
call fcn.00558390
jmp 0x591e54
mov eax, dword [esi + 0x1c0]
or eax, dword [esi + 0x1c4]
jne 0x591f75
lea edx, [ebp]
push edx
call fcn.00620e21
add esp, 4
mov eax, dword [ebp]
sub eax, dword [ebp - 0xa0]
cmp eax, 0x12c
jle 0x591f75
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x70]
call fcn.00402570
mov eax, 0x7533
wait
jmp 0x593249
mov ecx, dword [esi + 0x1c0]
mov dword [ebp + 0x44], ecx
mov edx, dword [esi + 0x1c4]
mov dword [ebp + 0x48], edx
cmp ebx, 0xffffffff
je 0x591fd9
test ebx, ebx
je 0x591fd9
xor ebx, ebx
cmp ebx, dword [esi + 0x1a8]
jge 0x591fe0
mov eax, ebx
imul eax, eax, 0x3480
mov ecx, dword [esi + 0x25c]
lea edi, [eax + ecx]
cmp dword [edi + 0x94], 0
je 0x591fd6
cmp dword [esi + 0x1c], 0
jne 0x591f27
mov ecx, edi
cmp byte [ebp + 0x6f], 0
jne 0x591fd1
call fcn.00578770
test al, al
je 0x591fd6
mov ecx, edi
call fcn.00587d00
inc ebx
jmp 0x591f92
mov ecx, esi
call fcn.0058e230
mov edx, dword [ebp + 0x5c]
push edx
push 0
mov ecx, esi
call fcn.005b19e0
lea eax, [ebp - 0x24]
push eax
call fcn.00620e21
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 0x592060
lea eax, [ebp]
push eax
call fcn.00620e21
add esp, 4
xor edi, edi
lea esp, [esp]
cmp edi, dword [esi + 0x1a8]
jge 0x592059
mov ecx, edi
imul ecx, ecx, 0x3480
mov edx, dword [esi + 0x25c]
add ecx, edx
cmp dword [ecx + 0x94], 0
je 0x592056
call fcn.00575400
inc edi
jmp 0x592030
mov di, word [ebp - 0x20]
mov eax, dword [ebp - 0x24]
xor ebx, ebx
cmp dword [esi + 0x24], ebx
jne 0x5921ba
mov ecx, dword [esi + 0x1c0]
mov edx, dword [esi + 0x1c4]
cmp dword [ebp + 0x38], edx
jg 0x5921ba
jl 0x59208b
cmp dword [ebp + 0x34], ecx
jae 0x5921ba
cmp dword [ebp + 0x44], ecx
jne 0x5921ba
cmp dword [ebp + 0x48], edx
jne 0x5921ba
mov ecx, dword [ebp + 0x60]
imul eax, eax, 0x3e8
or ecx, dword [ebp + 0x64]
jne 0x5920bc
movzx edx, di
add eax, edx
cdq
mov dword [ebp + 0x60], eax
mov dword [ebp + 0x64], edx
jmp 0x5921c0
movzx ecx, di
add eax, ecx
cdq
mov edi, eax
mov ebx, edx
mov ecx, dword [esi + 0xc]
call fcn.005753c0
fstp qword [ebp + 0x2c]
mov ecx, dword [esi + 0xc]
call fcn.00575380
fld qword [ebp + 0x2c]
fcom st(1)
fnstsw ax
test ah, 0x41
jne 0x5920e9
fstp st(1)
jmp 0x5920eb
fstp st(0)
fmul qword [0x6af220]
fadd qword [0x6af218]
call fcn.0061f596
sub edi, dword [ebp + 0x60]
sbb ebx, dword [ebp + 0x64]
cmp ebx, edx
jl 0x5921c0
jg 0x592114
cmp edi, eax
jbe 0x5921c0
xor ebx, ebx
mov dword [ebp + 0x60], ebx
mov dword [ebp + 0x64], ebx
mov ecx, esi
call fcn.005c6010
test eax, eax
je 0x5921c0
cmp dword [esi + 0x1c], ebx
jne 0x591e54
push str.Restart_type_s018_n
mov ecx, esi
call fcn.005b1050
mov ecx, dword [esi + 0x25c]
call fcn.0057bae0
mov ecx, dword [esi + 0x25c]
call fcn.00579ee0
mov ecx, dword [esi + 0x25c]
mov edx, dword [ecx]
lea eax, [ecx + 0x31f8]
push eax
mov edx, dword [edx + 0x18]
call edx
mov edi, eax
cmp edi, ebx
jne 0x592182
push ebx
mov ecx, dword [esi + 0x25c]
call fcn.0058a720
mov edi, eax
cmp edi, ebx
je 0x592196
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x70]
call fcn.00402570
mov eax, edi
wait
jmp 0x593249
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 [0x75bb80]
push edx
mov ecx, esi
call fcn.005b2210
jmp 0x5921c0
mov dword [ebp + 0x60], ebx
mov dword [ebp + 0x64], ebx
mov eax, dword [esi + 0xc]
cmp dword [eax + 0xb0], 2
jne 0x5925d4
mov bl, 1
mov ecx, dword [esi + 0x1b8]
mov edx, dword [esi + 0x1bc]
mov eax, edx
test eax, eax
jl 0x592205
jg 0x5921eb
cmp ecx, 0x32
jbe 0x592205
mov eax, dword [esi + 0x25c]
cmp dword [eax + 0x84], 0
jl 0x59222c
jg 0x592205
cmp dword [eax + 0x80], 0x32
jb 0x59222c
test edx, edx
jg 0x592248
jl 0x592210
cmp ecx, 0x32
ja 0x592248
mov eax, dword [esi + 0x25c]
mov edi, dword [eax + 0x84]
cmp edi, edx
jg 0x592248
jl 0x59222c
mov edx, dword [eax + 0x80]
cmp edx, ecx
jae 0x592248
xor bl, bl
cmp byte [eax + 0xd8], bl
je 0x592248
mov ecx, dword [eax + 0x58]
or ecx, dword [eax + 0x5c]
jne 0x592248
cmp byte [eax + 0xd9], cl
je 0x592248
mov bl, 1
mov ecx, dword [esi + 0xc]
test dword [ecx + 0x154], 0x100
je 0x5922c3
mov eax, dword [esi + 0x1c0]
cmp dword [esi + 0x1c4], 0
jg 0x5922c3
jl 0x59226f
cmp eax, 0x7d1
jae 0x5922c3
mov eax, dword [ecx]
push str.youtube.com
push eax
call fcn.0061e9a0
add esp, 8
test eax, eax
jne 0x59229a
mov edx, dword [esi + 0xc]
mov eax, dword [edx]
push str.googlevideo.com
push eax
call fcn.0061e9a0
add esp, 8
test eax, eax
je 0x5922c3
mov eax, dword [esi + 0x1b8]
mov ecx, dword [esi + 0x1bc]
test ecx, ecx
jl 0x5925d4
jg 0x5922bb
cmp eax, 0x7d1
jb 0x5925d4
or eax, ecx
je 0x5925d4
test bl, bl
je 0x5925d4
movzx eax, byte [esi + 0x256]
push eax
mov ecx, dword [esi + 0xc]
call fcn.005d0160
mov dword [ebp + 0x68], eax
mov edi, dword [esi + 0xc]
cmp byte [edi + 0x342], 0
je 0x5922f8
mov ecx, 0x75b274
call fcn.00575510
test al, al
jne 0x592301
cmp byte [esi + 0x870], 0
je 0x59236f
xor ebx, ebx
cmp dword [edi + 0xb0], 2
jne 0x592311
cmp dword [ebp + 0x68], ebx
je 0x592371
mov ecx, dword [esi + 0x25c]
call fcn.0057bae0
lea ecx, [esi + 0x28]
call fcn.00559220
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 0x592901
mov ecx, 0x75b274
call fcn.00575510
test al, al
je 0x592901
jmp 0x591e54
xor ebx, ebx
cmp dword [esi + 0xb8], ebx
jle 0x5923fc
mov edx, dword [edi + 0xcc]
mov eax, edx
lea ebx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x592388
sub eax, ebx
je 0x5923fc
mov edi, dword [edi + 0xbc]
test edi, edi
je 0x5923ba
mov eax, edx
lea ebx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5923a2
sub eax, ebx
push eax
push edi
push edx
call fcn.00621d6d
add esp, 0xc
test eax, eax
je 0x5923fc
mov eax, dword [esi + 0x14]
cmp dword [eax], 0
je 0x5923db
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 0x5923fc
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 0x5925d4
cmp dword [esi + 0x140], 0
jne 0x592576
cmp byte [0x75b27b], 0
jne 0x592505
mov byte [ebp + 0x6f], 0
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + 0xbc]
test ecx, ecx
je 0x59247d
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 0x592440
sub eax, ebx
je 0x59247d
mov eax, edi
lea ecx, [ecx]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x592470
test dl, dl
je 0x59246c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x592470
add eax, 2
add ecx, 2
test dl, dl
jne 0x592450
xor eax, eax
jmp 0x592475
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x59247d
mov byte [ebp + 0x6f], 1
mov edx, dword [esi + 0x1b8]
mov edi, dword [esi + 0x1bc]
test edi, edi
jl 0x5924b4
jg 0x592493
test edx, edx
jbe 0x5924b4
mov ecx, dword [esi + 0xc]
mov eax, dword [ecx + 0xe8]
mov ecx, dword [ecx + 0xec]
test ecx, ecx
jl 0x5924b4
jg 0x5924ac
test eax, eax
jbe 0x5924b4
cmp eax, edx
jne 0x5924ba
cmp ecx, edi
jne 0x5924ba
cmp byte [ebp + 0x6f], 0
je 0x592505
push 0x676974
mov eax, dword [esi + 0xc]
lea ecx, [eax + 0xe4]
call fcn.0054e080
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 [0x75c380]
push eax
push 0
call fcn.00472580
add esp, 0x10
jmp 0x591e54
mov eax, dword [esi + 0xc]
cmp dword [eax + 0x3c], 0
je 0x592576
cmp dword [eax + 0x34], 0
je 0x592519
mov eax, dword [eax + 0x34]
jmp 0x59251c
add eax, 0x38
push 0x2e
push eax
call fcn.0061ce13
add esp, 8
mov edi, eax
test edi, edi
je 0x592576
push 0x687ef4
push edi
call fcn.0062280a
add esp, 8
test eax, eax
je 0x592576
push 0x6823f4
push edi
call fcn.0062280a
add esp, 8
test eax, eax
je 0x592576
push 0x50004
mov ecx, dword [esi + 0xc]
mov edx, dword [ecx + 8]
push edx
mov eax, dword [0x75bbf4]
push eax
push 0
call fcn.00472580
add esp, 0x10
cmp eax, 7
je 0x591e54
mov eax, dword [esi + 0xc]
cmp dword [eax + 0x3c], 0
je 0x5925d4
cmp dword [eax + 0x34], 0
je 0x59258a
mov eax, dword [eax + 0x34]
jmp 0x59258d
add eax, 0x38
push 0x2e
push eax
call fcn.0061ce13
add esp, 8
mov edi, eax
test edi, edi
je 0x5925d4
push 0x687ef4
push edi
call fcn.0062280a
add esp, 8
test eax, eax
je 0x5925d4
push 0x6823f4
push edi
call fcn.0062280a
add esp, 8
test eax, eax
je 0x5925d4
mov ecx, dword [esi + 0xc]
call fcn.005cb720
mov edi, eax
test edi, edi
jne 0x592182
cmp byte [ebp + 0x5c], 0
je 0x59280c
mov eax, dword [esi + 0x1c0]
cmp dword [esi + 0x1c4], 0
jl 0x59280c
jg 0x5925fe
cmp eax, 0x400
jbe 0x59280c
mov ecx, esi
call fcn.005b0dc0
mov ebx, eax
mov edi, edx
lea ecx, [ebp - 0x38]
push ecx
call fcn.00620e21
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 0x59280c
jg 0x59263d
test eax, eax
jbe 0x59280c
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 0x592661
mov dword [ebp + 0x74], 1
fild qword [ebp + 0x14]
fmul qword [0x684830]
fidiv dword [ebp + 0x74]
call fcn.0061f596
mov ecx, eax
cmp edx, edi
jl 0x59280c
jg 0x592686
cmp ecx, ebx
jbe 0x59280c
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.00621c40
push edi
push ebx
push edx
push eax
call fcn.006212e0
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.006212e0
cmp dword [ebp + 0x40], edx
jg 0x5926f6
jl 0x5926cd
cmp dword [ebp + 0x3c], eax
jae 0x5926f6
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 0x592727
mov ecx, 0x2ee0
jmp 0x59272f
push 0
push 9
push edi
push ebx
call fcn.00621c40
push 0
push 0xa
push edx
push eax
call fcn.006212e0
cmp dword [ebp + 0x40], edx
jg 0x5926e2
jl 0x592718
cmp dword [ebp + 0x3c], eax
jae 0x5926e2
mov eax, dword [ebp + 0x74]
cdq
sub eax, edx
sar eax, 1
mov ecx, eax
mov dword [ebp + 0x74], ecx
jmp 0x5926e5
cmp ecx, ebx
jle 0x59280c
mov edi, dword [esi + 0x86c]
cmp edi, 0xffffffff
je 0x592805
mov dword [esi + 0x260], ebx
mov dword [esi + 0x464], ebx
mov dword [esi + 0x668], ebx
xor eax, eax
cmp eax, dword [esi + 0x260]
jae 0x592766
cmp dword [esi + eax*4 + 0x264], edi
je 0x592766
inc eax
jmp 0x592752
mov edx, dword [esi + 0x260]
cmp eax, edx
jne 0x592785
cmp edx, 0x80
jae 0x592785
mov dword [esi + eax*4 + 0x264], edi
inc dword [esi + 0x260]
xor eax, eax
cmp eax, dword [esi + 0x668]
jae 0x5927a1
mov edx, dword [esi + eax*4 + 0x66c]
cmp edx, dword [esi + 0x86c]
je 0x5927a1
inc eax
jmp 0x592787
lea edi, [esi + 0x668]
mov edx, dword [edi]
cmp eax, edx
jne 0x5927c4
cmp edx, 0x80
jae 0x5927c4
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 0x59280c
push ecx
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, esi
call fcn.0058dea0
mov dword [ebp + 0x68], eax
test eax, eax
je 0x593219
mov byte [ebp + 0x6d], 1
cmp eax, 1
jne 0x592aa0
cmp dword [esi + 0x40], 0
jne 0x592aa0
mov eax, dword [esi + 0xc]
cmp dword [eax + 0x320], 0
je 0x592942
cmp byte [eax + 0x324], 0
je 0x592942
mov ecx, dword [esi + 0x25c]
add ecx, 0x10
call fcn.005693f0
mov ecx, esi
call fcn.00590970
test eax, eax
je 0x592918
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.005b13d0
mov edx, dword [esi + 0xc]
mov bl, byte [edx + 0x342]
test bl, bl
je 0x5928c2
mov ecx, 0x75b274
call fcn.00575510
test al, al
jne 0x5928cf
cmp byte [esi + 0x870], 0
je 0x593219
test bl, bl
je 0x5928e5
mov ecx, 0x75b274
call fcn.00575510
test al, al
jne 0x591e54
lea ecx, [esi + 0x28]
call fcn.00559220
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 0x593249
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 0x592aa0
mov eax, dword [eax]
push str.googlevideo.com
push eax
call fcn.0061e9a0
add esp, 8
test eax, eax
je 0x592aa0
mov eax, dword [esi + 0x1c0]
cmp dword [esi + 0x1c4], 0
jg 0x592aa0
jl 0x59297a
cmp eax, 0x1f400
jae 0x592aa0
mov eax, dword [esi + 0xc]
mov eax, dword [eax + 8]
test eax, eax
je 0x592aa0
push str.dur0.0
push eax
call fcn.0061e9a0
add esp, 8
test eax, eax
jne 0x5929b2
mov ecx, dword [esi + 0xc]
mov eax, dword [ecx + 8]
push str._dur0.0
push eax
call fcn.0061e9a0
add esp, 8
test eax, eax
je 0x592a16
mov edx, dword [esi + 0xc]
mov eax, dword [edx + 8]
push str.sourceyt_otf
push eax
call fcn.0061e9a0
add esp, 8
test eax, eax
jne 0x5929e2
mov eax, dword [esi + 0xc]
mov eax, dword [eax + 8]
push str._sourceyt_otf
push eax
call fcn.0061e9a0
add esp, 8
test eax, eax
je 0x592a16
mov ecx, dword [esi + 0xc]
mov eax, dword [ecx + 8]
push str.otf1
push eax
call fcn.0061e9a0
add esp, 8
test eax, eax
jne 0x592a82
mov edx, dword [esi + 0xc]
mov eax, dword [edx + 8]
push str._otf1
push eax
call fcn.0061e9a0
add esp, 8
test eax, eax
jne 0x592a82
mov eax, dword [esi + 0xc]
mov eax, dword [eax + 0xc8]
push str.sourceyt_otf
push eax
call fcn.0061e9a0
add esp, 8
test eax, eax
jne 0x592a4c
mov ecx, dword [esi + 0xc]
mov eax, dword [ecx + 0xc8]
push str._sourceyt_otf
push eax
call fcn.0061e9a0
add esp, 8
test eax, eax
je 0x592aa0
mov edx, dword [esi + 0xc]
mov eax, dword [edx + 0xc8]
push str.otf1
push eax
call fcn.0061e9a0
add esp, 8
test eax, eax
jne 0x592a82
mov eax, dword [esi + 0xc]
mov eax, dword [eax + 0xc8]
push str._otf1
push eax
call fcn.0061e9a0
add esp, 8
test eax, eax
je 0x592aa0
lea ecx, [ebp + 0x6d]
push ecx
mov ecx, esi
call fcn.00591320
mov edi, eax
test edi, edi
jne 0x592182
cmp byte [ebp + 0x6d], al
je 0x593219
cmp dword [esi + 0x1c], 0
jne 0x591f27
push str.http:rcd__dwnl_finished__s1_t7__r_n
mov ecx, esi
call fcn.005b1050
mov ecx, dword [esi + 0xc]
test dword [ecx + 0x154], 0x100
je 0x592f08
mov eax, dword [esi + 0x1c0]
cmp dword [esi + 0x1c4], 0
jg 0x592f08
jl 0x592ae9
cmp eax, 0x7d1
jae 0x592f08
mov eax, dword [ecx]
push str.youtube.com
push eax
call fcn.0061e9a0
add esp, 8
test eax, eax
jne 0x592b18
mov edx, dword [esi + 0xc]
mov eax, dword [edx]
push str.googlevideo.com
push eax
call fcn.0061e9a0
add esp, 8
test eax, eax
je 0x592f08
push str.http:rcd__Check_for_redirect__s1_r_n
mov ecx, esi
call fcn.005b1050
mov dword [ebp + 0x5c], 0
mov edx, dword [esi + 0x1c0]
mov eax, dword [esi + 0x1b8]
mov ecx, dword [esi + 0x1bc]
cmp edx, eax
jne 0x592b49
cmp dword [esi + 0x1c4], ecx
je 0x592b51
or eax, ecx
jne 0x592f08
mov ecx, dword [esi + 0x25c]
add ecx, 0x10
call fcn.005693f0
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 0x592c17
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x144], eax
cmp eax, 0x20
je 0x592ba8
cmp eax, 5
jne 0x592ed7
lea ecx, [ebp + 0x74]
call fcn.00402500
mov byte [ebp - 4], 3
mov edx, dword [esi + 0x144]
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.005b1050
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 0x592ed7
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 0x592c46
mov edx, dword [esi + 0xc]
cmp byte [edx + 0x33b], 0
je 0x592c6d
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
mov dword [ebp + 0x74], ebx
test ebx, ebx
jne 0x592c6d
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 + 0x31f0], 0
je 0x592cb6
mov byte [ebp - 4], 4
wait
mov edx, dword [esi + 0x25c]
mov eax, dword [edx + 0x31f0]
push eax
call fcn.005f15b7
add esp, 4
wait
mov dword [ebp - 4], 2
jmp 0x592cb6
lea eax, [ebx + 1]
push eax
call fcn.005f15c2
add esp, 4
mov ecx, dword [esi + 0x25c]
mov dword [ecx + 0x31f0], eax
mov edx, dword [esi + 0x25c]
cmp dword [edx + 0x31f0], 0
je 0x592dcc
push str.Check_for_redirect__s2_r_n
mov ecx, esi
call fcn.005b1050
mov dword [ebp + 0x74], 0
push 0
lea eax, [ebp + 0x74]
push eax
push ebx
mov ecx, dword [esi + 0x25c]
mov edx, dword [ecx + 0x31f0]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp + 0x30], eax
test eax, eax
je 0x592e77
cmp dword [ebp + 0x74], ebx
jne 0x592e77
mov eax, dword [esi + 0x25c]
mov ecx, dword [eax + 0x31f0]
mov byte [ebx + ecx], 0
push str.Check_for_redirect__s3__fc:_r_n
mov ecx, esi
call fcn.005b1050
mov edx, dword [esi + 0x25c]
mov eax, dword [edx + 0x31f0]
push eax
mov ecx, esi
call fcn.005b1050
push 0x678294
mov ecx, esi
call fcn.005b1050
push 7
push 0x676008
mov ecx, dword [esi + 0x25c]
mov edx, dword [ecx + 0x31f0]
push edx
call fcn.00621d6d
add esp, 0xc
test eax, eax
je 0x592e60
push 8
push 0x675fe8
mov eax, dword [esi + 0x25c]
mov ecx, dword [eax + 0x31f0]
push ecx
call fcn.00621d6d
add esp, 0xc
test eax, eax
je 0x592e60
mov edx, dword [esi + 0x25c]
mov eax, dword [edx + 0x31f0]
push eax
call fcn.005f15b7
add esp, 4
mov eax, dword [esi + 0x25c]
mov dword [eax + 0x31f0], 0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
cmp dword [ebp + 0x5c], edi
je 0x592f08
push str.http:rcd__Redirect_found_r_n
mov ecx, esi
call fcn.005b1050
mov dword [esi + 0x1c0], edi
mov dword [esi + 0x1c4], edi
fldz
fstp qword [esi + 0x188]
lea ebx, [esi + 0x28]
mov ecx, ebx
call fcn.00558390
mov ecx, ebx
call fcn.00559220
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.00579ee0
push 1
push edi
push edi
mov ecx, esi
call fcn.005b25f0
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x70]
call fcn.00402570
mov eax, 0x7583
wait
jmp 0x593249
mov ecx, dword [esi + 0x25c]
call fcn.00580c10
mov dword [ebp + 0x5c], 1
jmp 0x592dcc
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.005b1050
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 0x593249
lea ecx, [ebp + 0x68]
call fcn.00402500
mov byte [ebp - 4], 7
mov edx, dword [esi + 0x144]
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.005b1050
jmp 0x592eb6
mov edi, dword [ebp + 0x68]
cmp edi, 0x753c
je 0x592f1c
cmp edi, 0xffffffff
jne 0x592fa9
mov eax, dword [esi + 0xc]
test dword [eax + 0x154], 0x100
je 0x593146
cmp dword [eax + 0x30], 0
je 0x593146
mov eax, dword [esi + 0x1c0]
or eax, dword [esi + 0x1c4]
je 0x593146
mov eax, dword [esi + 0x1b8]
cmp dword [esi + 0x1bc], 0
jl 0x593146
jg 0x592f6b
cmp eax, 0x40000000
jbe 0x593146
push str.Checking_flv_file_struct._n
mov ecx, esi
call fcn.005b1050
mov ecx, esi
call fcn.0058fcc0
test eax, eax
je 0x593146
mov eax, dword [esi + 0x1c0]
mov ecx, dword [esi + 0x1c4]
push 1
push ecx
push eax
mov ecx, esi
call fcn.005b25f0
push str.DurationlastTimeStamp__seems_the_flv_file_is_comlete._n
mov ecx, esi
call fcn.005b1050
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 0x59306d
mov edi, ecx
cmp dword [ebp + 0x58], edi
jne 0x59306d
mov edi, eax
or edi, ecx
je 0x59306d
mov edi, dword [esi + 0x10]
cmp dword [edi], 0
je 0x59301b
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 0x59306d
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 [0x75bb7c]
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.005b2210
mov ecx, dword [esi + 0x1c0]
mov edi, dword [esi + 0x1b8]
mov eax, dword [esi + 0x1bc]
cmp ecx, edi
jne 0x5930c1
mov edx, dword [esi + 0x1c4]
mov ebx, eax
cmp edx, ebx
je 0x59319c
mov edx, edi
or edx, eax
je 0x59319c
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 0x593101
mov edx, ebx
cmp dword [ebp + 0x48], edx
je 0x59319c
mov edx, dword [esi + 0x1c4]
mov ebx, dword [esi + 0x1bc]
add eax, edi
adc ecx, ebx
cmp edx, ecx
jl 0x592ec2
jg 0x593127
cmp dword [esi + 0x1c0], eax
jbe 0x592ec2
lea ecx, [esi + 0x28]
call fcn.00558bb0
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x70]
call fcn.00402570
mov eax, 0x7570
wait
jmp 0x593249
mov edx, dword [esi + 0x1c4]
push edx
mov eax, dword [esi + 0x1c0]
push eax
mov ecx, dword [0x75bb88]
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.005b2210
mov esi, dword [esi + 0x144]
test esi, esi
je 0x593186
cmp edi, 0x753c
je 0x593188
mov esi, edi
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x70]
call fcn.00402570
mov eax, esi
wait
jmp 0x593249
mov ecx, dword [esi + 0xc]
cmp dword [ecx + 0x320], 0
je 0x5931d6
mov eax, dword [esi + 0x40]
test eax, eax
je 0x5931d6
mov eax, dword [eax + 0x40]
test eax, eax
je 0x5931d6
mov eax, dword [eax + 0x48]
test eax, eax
je 0x5931d6
cmp dword [ecx + 0x318], 8
jne 0x5931d6
add ecx, 0x3f4
push ecx
push eax
call fcn.0046c0d0
add esp, 8
xor edi, edi
cmp edi, dword [esi + 0x1a8]
jge 0x593201
mov eax, edi
imul eax, eax, 0x3480
mov ecx, dword [esi + 0x25c]
add ecx, eax
cmp dword [ecx + 0x94], 0
je 0x5931fe
call fcn.00575400
inc edi
jmp 0x5931d8
mov ecx, esi
call fcn.005b3570
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x70]
call fcn.00402570
xor eax, eax
wait
jmp 0x593249
mov ecx, esi
call fcn.0058e4e0
mov ecx, esi
call fcn.005b3570
jmp 0x591de7
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