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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x8c
mov eax, dword [0x100ca040]
xor eax, esp
mov dword [esp + 0x88], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0x18], eax
cmp dword [edi + 0xa8], 0
jne 0x100043bc
mov eax, 0x80004005
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x88]
xor ecx, esp
call fcn.1008c1b5
mov esp, ebp
pop ebp
ret 0xc
xor dl, dl
mov ecx, edi
call fcn.10003870
push 0x60
lea esi, [edi + 0x5a0]
push 0
push esi
call fcn.10092930
mov dword [esi], 0xffffffff
add esp, 0xc
mov dword [edi + 0x5b8], 0xffffffff
mov dword [edi + 0x5d0], 0xffffffff
mov dword [edi + 0x5e8], 0xffffffff
mov eax, dword [edi + 8]
mov dword [edi + 0x600], 0
mov dword [edi + 0x4307c], 4
push eax
mov ecx, dword [eax]
call dword [ecx + 0x10]
test al, 0x10
je 0x1000442e
mov eax, dword [edi + 0x4307c]
cdq
sub eax, edx
sar eax, 1
mov dword [edi + 0x4307c], eax
mov ecx, dword [ebp + 0xc]
xor eax, eax
cmp dword [eax*8 + 0x100cbab0], ecx
je 0x10004447
inc eax
cmp eax, 5
jb 0x10004433
jmp 0x100043a0
mov ebx, dword [eax*8 + 0x100cbab4]
mov dword [esp + 0x14], ebx
cmp ebx, 0xffffffff
je 0x100043a0
cmp ebx, 2
jne 0x1000446d
cmp dword [edi + 0x4300c], 0
je 0x100043a0
mov eax, dword [edi + 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x10]
test al, 2
jne 0x100044a5
cmp ebx, 2
jne 0x100044a1
mov ecx, dword [esp + 0x18]
lea esi, [ebx + 0xa]
add ecx, 0x2c
mov edx, 0x100b5688
mov edi, edi
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x100044a5
add ecx, 4
add edx, 4
sub esi, 4
jae 0x10004490
xor esi, esi
jmp 0x100044aa
mov esi, 1
push 0x58
lea eax, [esp + 0x3c]
mov dword [edi + 0x43050], esi
push 0
push eax
mov dword [edi + 0x43030], esi
mov dword [edi + 0x43014], 1
mov dword [edi + 0x43048], 0
mov dword [edi + 0x4306c], 1
mov dword [edi + 0x43028], 0
mov dword [edi + 0x4302c], 0x80000000
mov dword [edi + 0x43070], 1
call fcn.10092930
mov eax, dword [edi + 0x4307c]
add esp, 0xc
neg esi
mov dword [esp + 0x48], eax
lea eax, [edi + 0xb4]
mov dword [esp + 0x38], ebx
sbb esi, esi
mov dword [esp + 0x3c], 0x14
push 0x440
push 0
and esi, 0x64
mov dword [esp + 0x68], edi
push eax
mov dword [esp + 0x70], 0x10004a40
mov dword [esp + 0x74], 0x10004c20
mov dword [esp + 0x78], 0x10004dc0
mov dword [esp + 0x50], esi
call fcn.10092930
mov ebx, dword [esp + 0x24]
add esp, 0xc
mov edx, 0x100b5688
mov esi, 0xc
lea eax, [ebx + 0x2c]
mov dword [esp + 0x20], eax
mov ecx, eax
lea ecx, [ecx]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x10004688
add ecx, 4
add edx, 4
sub esi, 4
jae 0x10004570
lea edx, [ebx + 0x10]
mov esi, 0x100bf248
mov ecx, edx
mov ebx, 0xc
mov eax, dword [ecx]
cmp eax, dword [esi]
jne 0x100045a7
add ecx, 4
add esi, 4
sub ebx, 4
jae 0x10004594
jmp 0x100045e5
mov ecx, edx
mov esi, 0x100bf238
mov ebx, 0xc
mov eax, dword [ecx]
cmp eax, dword [esi]
jne 0x100045c6
add ecx, 4
add esi, 4
sub ebx, 4
jae 0x100045b3
jmp 0x100045e5
mov ecx, 0x100bf228
mov esi, 0xc
mov eax, dword [edx]
cmp eax, dword [ecx]
jne 0x10004684
add edx, 4
add ecx, 4
sub esi, 4
jae 0x100045d0
mov eax, dword [esp + 0x18]
push 4
mov ebx, dword [eax + 0x44]
call fcn.1008c1c4
add esp, 4
test eax, eax
je 0x10004602
mov dword [eax], 0
jmp 0x10004604
xor eax, eax
mov dword [edi + 0x43044], eax
mov dword [eax], 2
lea eax, [ebx + 0x84]
mov ecx, dword [edi + 0x43044]
mov dword [esp + 0x10], 0
push dword [ebx + 0x74]
mov dword [esp + 0x20], 0
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.10012540
mov eax, dword [esp + 0x10]
test eax, eax
je 0x10004674
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x10004674
push esi
push eax
lea eax, [edi + 0xf4]
push eax
call fcn.100922e0
add esp, 0xc
mov dword [edi + 0xf0], esi
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.avutil_52.dll_av_freep]
add esp, 4
mov ecx, dword [edi + 0x43044]
mov eax, dword [ebx + 0x80]
mov dword [ecx], eax
jmp 0x100046d9
mov ebx, dword [esp + 0x18]
mov ecx, dword [ebx + 0x44]
lea eax, [esp + 0x10]
push eax
push 0
push dword [ebx + 0x40]
lea edx, [ebx + 0x2c]
mov dword [esp + 0x1c], 0
call fcn.100836f0
add esp, 0xc
cmp dword [esp + 0x10], 0x400
ja 0x100046d9
mov ecx, dword [ebx + 0x44]
lea eax, [esp + 0x10]
push eax
lea eax, [edi + 0xf4]
push eax
push dword [ebx + 0x40]
lea edx, [ebx + 0x2c]
call fcn.100836f0
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov dword [edi + 0xf0], eax
mov eax, dword [edi + 0xf0]
mov ebx, dword [esp + 0x14]
mov dword [edi + 0x4304c], 0
test eax, eax
je 0x1000477b
cmp ebx, 4
jne 0x10004735
push eax
lea edx, [edi + 0xf4]
mov ecx, edi
call fcn.100054b0
test eax, eax
jns 0x10004728
mov eax, 0x8004025d
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x88]
xor ecx, esp
call fcn.1008c1b5
mov esp, ebp
pop ebp
ret 0xc
cmp eax, 1
jne 0x10004789
mov dword [edi + 0x4304c], eax
jmp 0x10004789
cmp ebx, 1
jne 0x10004789
xor ecx, ecx
push eax
lea eax, [edi + 0xf4]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], ecx
lea ecx, [esp + 0x28]
push eax
call fcn.10012cc0
cmp dword [esp + 0x24], 0
je 0x10004789
cmp dword [esp + 0x34], 2
jge 0x1000470c
mov eax, dword [esp + 0x30]
mov dword [edi + 0x43014], eax
jmp 0x10004789
xor eax, eax
cmp ebx, 4
sete al
mov dword [edi + 0x4304c], eax
lea eax, [edi + 0xb4]
mov dword [esp + 0x8c], eax
lea eax, [esp + 0x38]
push eax
lea eax, [edi + 0xb0]
push eax
mov eax, dword [edi + 0x80]
call eax
test eax, eax
jne 0x100043a0
push eax
push dword [edi + 0xac]
mov eax, dword [edi + 0x78]
call eax
push 0
lea eax, [edi + 0x43008]
push eax
mov eax, dword [edi + 0x4c]
call eax
mov ecx, dword [edi + 0x7c]
mov esi, eax
push 0
push dword [edi + 0xac]
call ecx
test esi, esi
jne 0x100043a0
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x14]
push esi
push esi
push esi
push eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x24], esi
mov ecx, dword [eax + 0x44]
call fcn.100835e0
mov eax, dword [esp + 0x24]
add esp, 0x10
mov edx, ebx
mov ecx, edi
push dword [eax + 8]
push dword [eax + 4]
call fcn.10004850
test eax, eax
js 0x1000482c
mov ecx, edi
mov dword [edi + 0x43010], 1
call fcn.100049d0
xor eax, eax
mov ecx, dword [esp + 0x94]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1008c1b5
mov esp, ebp
pop ebp
ret 0xc