Function at 0x10005f80
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
xor ebp, ebp
push edi
push esi
push ebx
sub esp, 0x5c
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x78]
mov esi, dword [esp + 0x7c]
mov eax, dword [ecx + 0x18]
not edx
mov dword [esp + 0x14], eax
mov eax, edx
or eax, esi
jns 0x10006228
mov eax, dword [esp + 0x14]
test eax, eax
je 0x10006288
xor esi, esi
cmp dword [esp + 0x74], 1
mov dword [esp + 0x28], 0
je 0x100062c0
shr edx, 0x1f
mov dword [esp + 0x30], 0
mov dword [esp + 0x44], 0xffffffff
mov dword [esp + 0x48], 0xffffffff
mov dword [esp + 0x18], 0xffffffff
mov dword [esp + 0x20], 0xffffffff
mov dword [esp + 0x4c], 0xffffffff
mov dword [esp + 0x1c], 0xadabac08
mov dword [esp + 0x24], edx
mov dword [esp + 0x70], ecx
lea esi, [esi]
mov edx, esi
mov eax, esi
test ebp, ebp
je 0x1000601e
mov eax, dword [ebp + esi*4]
mov edx, eax
mov edi, dword [esp + 0x70]
mov ebx, dword [edi + 0x1c]
mov ebx, dword [ebx + eax*4]
mov edi, dword [ebx + 0xc]
mov eax, dword [edi]
cmp dword [esp + 0x74], eax
jne 0x100061c0
cmp dword [esp + 0x78], edx
je 0x10006048
cmp byte [esp + 0x24], 0
jne 0x100061c0
mov eax, dword [esp + 0x80]
test eax, eax
je 0x10006088
mov ecx, dword [esp + 0x74]
mov eax, dword [edi + 4]
test ecx, ecx
je 0x100061d8
cmp dword [esp + 0x74], 3
jne 0x100061ee
mov ecx, dword [esp + 0x70]
mov ecx, dword [ecx + 0x130]
mov dword [esp + 0x30], ecx
test ecx, ecx
je 0x100061ee
lea esi, cs:[esi]
mov eax, dword [ebx + 0x38]
xor ecx, ecx
test eax, 0x180
sete cl
and eax, 1
add ecx, eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x34], ecx
cmp ecx, eax
jl 0x100061c0
mov ebx, dword [ebx + 0x2e0]
mov eax, 5
cmp ebx, eax
mov dword [esp + 0x38], ebx
cmovle eax, ebx
mov ebx, eax
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x18]
cmp ecx, eax
mov ecx, ebx
mov ebx, dword [esp + 0x20]
sete al
cmp ecx, ebx
jge 0x100060df
test al, al
jne 0x100061c0
mov ecx, dword [edi + 0x20]
mov edi, dword [edi + 0x24]
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x40], edi
cmp dword [esp + 0x2c], ecx
jne 0x10006138
test al, al
je 0x10006138
mov ebx, edi
mov ecx, dword [esp + 0x48]
mov edi, dword [esp + 0x44]
mov eax, ebx
cmp dword [esp + 0x3c], edi
sbb eax, ecx
jl 0x100061c0
mov eax, dword [esp + 0x4c]
cmp dword [esp + 0x38], eax
jg 0x10006138
mov eax, edi
mov edi, ecx
mov ecx, dword [esp + 0x3c]
xor ebx, edi
xor ecx, eax
mov eax, ecx
or eax, ebx
je 0x100061c0
lea esi, cs:[esi]
test ebp, ebp
je 0x1000614f
mov eax, dword [esp + 0x14]
sub eax, 1
cmp eax, esi
jne 0x1000614f
test edx, edx
js 0x100064c3
mov eax, dword [esp + 0x30]
add esi, 1
mov dword [esp + 0x1c], edx
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x14]
cmp esi, eax
jb 0x10006010
lea esi, [esi]
mov edx, dword [esp + 0x80]
test edx, edx
je 0x100061b0
mov eax, dword [esp + 0x80]
mov edi, dword [esp + 0x28]
mov dword [eax], edi
mov eax, dword [esp + 0x1c]
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret
add esi, 1
mov eax, dword [esp + 0x14]
cmp esi, eax
jb 0x10006010
jmp 0x10006198
mov ecx, dword [esp + 0x70]
mov ecx, dword [ecx + 0x128]
mov dword [esp + 0x30], ecx
test ecx, ecx
jne 0x10006088
mov dword [esp], eax
mov dword [esp + 0x2c], edx
call sub.avcodec_61.dll_avcodec_find_decoder
mov edx, dword [esp + 0x2c]
test eax, eax
mov dword [esp + 0x30], eax
jne 0x10006088
mov edi, dword [esp + 0x1c]
add esi, 1
mov eax, 0xbcbabb08
test edi, edi
cmovns eax, edi
mov dword [esp + 0x1c], eax
jmp 0x100061c3
mov edi, dword [ecx + 0x78]
test edi, edi
je 0x10005fa8
mov dword [esp + 0x18], edx
mov ebp, dword [ecx + 0x7c]
xor eax, eax
lea esi, [esi]
mov edx, dword [ebp + eax*4]
test edx, edx
je 0x100062a0
mov ecx, dword [edx + 0x10]
test ecx, ecx
je 0x100062a0
mov ebx, dword [edx + 0xc]
xor edx, edx
jmp 0x10006267
add edx, 1
cmp edx, ecx
je 0x100062a0
cmp esi, dword [ebx + edx*4]
jne 0x10006260
mov eax, ecx
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x70]
mov ebp, ebx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x10005fb4
mov dword [esp + 0x28], 0
mov dword [esp + 0x1c], 0xadabac08
jmp 0x10006198
add eax, 1
cmp eax, edi
jne 0x10006240
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x18]
xor ebp, ebp
jmp 0x10005fa8
shr edx, 0x1f
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0xffffffff
mov dword [esp + 0x3c], 0xffffffff
mov dword [esp + 0x20], 0xffffffff
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x48], 0xffffffff
mov dword [esp + 0x1c], 0xadabac08
mov dword [esp + 0x18], edx
mov dword [esp + 0x70], ecx
test ebp, ebp
je 0x10006487
lea esi, cs:[esi]
mov eax, dword [ebp + esi*4]
mov edx, eax
mov edi, dword [esp + 0x70]
mov ebx, dword [edi + 0x1c]
mov edi, dword [ebx + eax*4]
mov ebx, dword [edi + 0xc]
cmp dword [ebx], 1
jne 0x10006470
cmp byte [esp + 0x18], 0
je 0x1000633d
cmp edx, dword [esp + 0x78]
jne 0x10006470
mov eax, dword [ebx + 0x74]
test eax, eax
je 0x10006470
mov ecx, dword [ebx + 0x88]
test ecx, ecx
je 0x10006470
mov eax, dword [esp + 0x80]
test eax, eax
je 0x10006380
mov ecx, dword [esp + 0x70]
mov eax, dword [ebx + 4]
mov ecx, dword [ecx + 0x12c]
mov dword [esp + 0x34], ecx
test ecx, ecx
je 0x10006490
lea esi, [esi]
mov eax, dword [edi + 0x38]
xor ecx, ecx
test eax, 0x180
sete cl
and eax, 1
add eax, ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x24], eax
cmp eax, ecx
jl 0x10006470
mov edi, dword [edi + 0x2e0]
mov eax, 5
cmp edi, eax
mov dword [esp + 0x40], edi
cmovle eax, edi
mov edi, dword [esp + 0x20]
cmp dword [esp + 0x24], edi
mov edi, dword [esp + 0x2c]
mov ecx, eax
mov dword [esp + 0x30], eax
sete al
cmp ecx, edi
jge 0x100063d7
test al, al
jne 0x10006470
mov ecx, dword [ebx + 0x20]
mov edi, dword [esp + 0x2c]
mov ebx, dword [ebx + 0x24]
mov dword [esp + 0x44], ecx
cmp dword [esp + 0x30], edi
jne 0x10006420
test al, al
je 0x10006420
mov eax, dword [esp + 0x38]
mov edi, dword [esp + 0x3c]
cmp ecx, eax
mov eax, ebx
sbb eax, edi
jl 0x10006470
mov eax, dword [esp + 0x38]
mov edi, ecx
mov ecx, dword [esp + 0x3c]
xor edi, eax
mov eax, edi
mov edi, ebx
xor edi, ecx
or eax, edi
jne 0x10006420
mov eax, dword [esp + 0x48]
cmp dword [esp + 0x40], eax
jle 0x10006470
nop
test ebp, ebp
je 0x10006437
mov eax, dword [esp + 0x14]
sub eax, 1
cmp eax, esi
jne 0x10006437
test edx, edx
js 0x1000650e
mov eax, dword [esp + 0x34]
mov dword [esp + 0x3c], ebx
add esi, 1
mov dword [esp + 0x1c], edx
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x48], eax
jmp 0x10006473
add esi, 1
mov eax, dword [esp + 0x14]
cmp esi, eax
jae 0x10006198
test ebp, ebp
jne 0x10006310
mov edx, esi
mov eax, esi
jmp 0x10006316
mov dword [esp], eax
mov dword [esp + 0x24], edx
call sub.avcodec_61.dll_avcodec_find_decoder
mov edx, dword [esp + 0x24]
test eax, eax
mov dword [esp + 0x34], eax
jne 0x10006380
mov edi, dword [esp + 0x1c]
add esi, 1
mov eax, 0xbcbabb08
test edi, edi
cmovns eax, edi
mov dword [esp + 0x1c], eax
jmp 0x10006473
mov eax, dword [esp + 0x70]
mov dword [esp + 0x1c], edx
mov esi, 1
xor ebp, ebp
mov eax, dword [eax + 0x18]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x4c], eax
jmp 0x100061c3
mov eax, dword [esp + 0x70]
mov dword [esp + 0x3c], ebx
mov esi, 1
xor ebp, ebp
mov dword [esp + 0x1c], edx
mov eax, dword [eax + 0x18]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x48], eax
jmp 0x10006473