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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x9c
mov esi, dword [esp + 0xb8]
mov edi, dword [esp + 0xbc]
mov eax, dword [esp + 0xc0]
mov edx, dword [esp + 0xc4]
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], edx
mov edx, dword [esp + 0xc8]
mov ecx, dword [esp + 0xcc]
mov dword [esp + 0x48], edx
mov dword [esp + 0x4c], ecx
mov edx, dword [esp + 0x34]
shr edx, 0x1f
mov eax, edi
shr eax, 0x1f
xor edx, eax
mov byte [esp + 0x8f], dl
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], edx
mov ecx, dword [esp + 0x34]
test ecx, ecx
js 0x70a526d4
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], edi
test edi, edi
js 0x70a526bc
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov dword [esp + 8], edx
mov dword [esp + 0xc], ecx
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov dword [esp], eax
mov dword [esp + 4], edx
call sym.avutil_ttv_51.dll_av_gcd
mov ebx, eax
mov ebp, edx
or edx, ebx
je 0x70a52201
mov dword [esp + 8], ebx
mov dword [esp + 0xc], ebp
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov dword [esp], eax
mov dword [esp + 4], edx
call sym.___divdi3
mov esi, eax
mov edi, edx
mov dword [esp + 8], ebx
mov dword [esp + 0xc], ebp
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov dword [esp], edx
mov dword [esp + 4], ecx
call sym.___divdi3
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], edx
cmp edi, dword [esp + 0x4c]
jg 0x70a5221c
jge 0x70a5255c
mov ecx, dword [esp + 0x4c]
cmp dword [esp + 0x34], ecx
jle 0x70a52540
nop
mov ecx, dword [esp + 0x34]
or ecx, dword [esp + 0x30]
je 0x70a52717
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
mov dword [esp], esi
mov dword [esp + 4], edi
call sym.___divdi3
mov dword [esp + 0x28], eax
mov ebp, edx
mov ecx, eax
mov edx, dword [esp + 0x30]
mov dword [esp + 0x50], edx
mov eax, dword [esp + 0x34]
mov dword [esp + 0x54], eax
imul edx, ebp
imul eax, ecx
add eax, edx
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x50]
mul ecx
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x20]
add edx, eax
mov dword [esp + 0x3c], edx
sub esi, dword [esp + 0x38]
sbb edi, dword [esp + 0x3c]
cmp dword [esp + 0x4c], ebp
jl 0x70a525e8
jg 0x70a5229c
cmp dword [esp + 0x48], ecx
jb 0x70a525e8
cmp dword [esp + 0x4c], 0
jl 0x70a525e8
jle 0x70a525dc
mov dword [esp + 0x64], 1
mov dword [esp + 0x60], 0
mov eax, 1
xor edx, edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
mov dword [esp + 0x28], ecx
mov edx, dword [esp + 0x18]
mov dword [esp + 0x20], edx
mov ecx, edi
or ecx, esi
je 0x70a526b0
mov dword [esp + 8], esi
mov dword [esp + 0xc], edi
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
mov dword [esp], eax
mov dword [esp + 4], edx
call sym.___divdi3
mov ebp, eax
mov dword [esp + 0x44], edx
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], edi
mov ecx, edx
imul ecx, esi
mov eax, edi
imul eax, ebp
add ecx, eax
mov eax, esi
mul ebp
mov dword [esp + 0x38], eax
add edx, ecx
mov dword [esp + 0x3c], edx
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
sub edx, dword [esp + 0x38]
sbb ecx, dword [esp + 0x3c]
mov dword [esp + 0x78], edx
mov dword [esp + 0x7c], ecx
mov eax, dword [esp + 0x28]
cdq
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], edx
mov ecx, dword [esp + 0x44]
imul ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x74]
imul eax, ebp
add ecx, eax
mov eax, dword [esp + 0x28]
mul ebp
mov dword [esp + 0x38], eax
add edx, ecx
mov dword [esp + 0x3c], edx
mov eax, dword [esp + 0x64]
cdq
mov ecx, eax
mov ebx, edx
add ecx, dword [esp + 0x38]
adc ebx, dword [esp + 0x3c]
mov eax, dword [esp + 0x20]
cdq
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], edx
mov eax, dword [esp + 0x60]
cdq
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], edx
mov edx, dword [esp + 0x44]
imul edx, dword [esp + 0x20]
mov eax, dword [esp + 0x5c]
imul eax, ebp
add eax, edx
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x20]
mul ebp
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x38]
add edx, eax
mov dword [esp + 0x84], edx
mov eax, dword [esp + 0x80]
mov edx, dword [esp + 0x84]
add eax, dword [esp + 0x68]
adc edx, dword [esp + 0x6c]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
mov edx, eax
mov eax, dword [esp + 0x1c]
cmp dword [esp + 0x4c], ebx
jg 0x70a52582
jge 0x70a52578
mov edx, dword [esp + 0x20]
mov ecx, edx
sar ecx, 0x1f
mov esi, edx
mov edi, ecx
mov eax, dword [esp + 0x58]
mov edx, dword [esp + 0x5c]
add eax, eax
adc edx, edx
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], edx
mov ecx, dword [esp + 0x34]
imul ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x30]
imul eax, edi
add ecx, eax
mov eax, dword [esp + 0x30]
mul dword [esp + 0x20]
mov dword [esp + 0x30], eax
add edx, ecx
mov dword [esp + 0x34], edx
mov ebx, dword [esp + 0x64]
mov edx, dword [esp + 0x28]
test edx, edx
jne 0x70a52658
mov eax, dword [esp + 0x20]
test eax, eax
je 0x70a52494
mov eax, dword [esp + 0x60]
cdq
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], edx
mov edx, dword [esp + 0x48]
mov ecx, dword [esp + 0x4c]
sub edx, dword [esp + 0x78]
sbb ecx, dword [esp + 0x7c]
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], esi
mov dword [esp + 0xc], edi
call sym.___divdi3
cmp dword [esp + 0x44], edx
jae 0x70a526ec
mov edx, dword [esp + 0x44]
imul edx, dword [esp + 0x38]
mov eax, dword [esp + 0x3c]
imul eax, ebp
lea ecx, [edx + eax]
mov eax, dword [esp + 0x38]
mul ebp
mov dword [esp + 0x38], eax
add edx, ecx
mov dword [esp + 0x3c], edx
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
add eax, dword [esp + 0x68]
adc edx, dword [esp + 0x6c]
mov ecx, dword [esp + 0x50]
imul ecx, edx
mov edx, dword [esp + 0x54]
imul edx, eax
add ecx, edx
mul dword [esp + 0x50]
add edx, ecx
cmp edx, dword [esp + 0x34]
jb 0x70a526a6
jbe 0x70a5269c
mov esi, dword [esp + 0x70]
imul esi, ebp
add esi, ebx
mov dword [esp + 0x28], esi
mov eax, dword [esp + 0x58]
imul eax, ebp
add eax, dword [esp + 0x60]
mov dword [esp + 0x20], eax
xor eax, eax
cmp byte [esp + 0x8f], 0
je 0x70a52519
neg dword [esp + 0x28]
mov edx, dword [esp + 0xb0]
mov esi, dword [esp + 0x28]
mov dword [edx], esi
mov edx, dword [esp + 0xb4]
mov ecx, dword [esp + 0x20]
mov dword [edx], ecx
add esp, 0x9c
pop ebx
pop esi
pop edi
pop ebp
ret
jge 0x70a52704
mov dword [esp + 0x28], esi
mov edx, dword [esp + 0x30]
mov dword [esp + 0x20], edx
mov eax, 1
jmp 0x70a5250b
cmp esi, dword [esp + 0x48]
ja 0x70a5221c
mov ecx, dword [esp + 0x4c]
cmp dword [esp + 0x34], ecx
jg 0x70a5221c
jmp 0x70a52540
cmp dword [esp + 0x48], ecx
jb 0x70a523fc
mov dword [esp + 0x80], esi
mov dword [esp + 0x84], edi
cmp dword [esp + 0x4c], eax
jg 0x70a525a6
jl 0x70a523fc
cmp dword [esp + 0x48], edx
jb 0x70a523fc
mov esi, dword [esp + 0x28]
mov dword [esp + 0x64], esi
mov esi, dword [esp + 0x20]
mov dword [esp + 0x60], esi
mov esi, dword [esp + 0x78]
mov edi, dword [esp + 0x7c]
mov eax, dword [esp + 0x80]
mov edx, dword [esp + 0x84]
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], edx
jmp 0x70a522cc
cmp dword [esp + 0x48], 0
ja 0x70a522ad
nop
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
xor esi, esi
xor edi, edi
mov dword [esp + 0x28], 1
xor ebx, ebx
mov dword [esp + 0x60], 1
mov dword [esp + 0x20], 0
mov dword [esp + 0x68], 1
mov dword [esp + 0x6c], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x70], 1
mov dword [esp + 0x74], 0
nop
mov dword [esp + 0x78], ebx
mov edx, ebx
sar edx, 0x1f
mov dword [esp + 0x7c], edx
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x4c]
sub eax, dword [esp + 0x78]
sbb edx, dword [esp + 0x7c]
mov dword [esp], eax
mov dword [esp + 4], edx
mov eax, dword [esp + 0x28]
cdq
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
call sym.___divdi3
mov ebp, eax
mov dword [esp + 0x44], edx
jmp 0x70a52451
cmp eax, dword [esp + 0x30]
ja 0x70a524ed
xor eax, eax
jmp 0x70a5250b
mov eax, 1
jmp 0x70a5250b
mov eax, esi
mov edx, edi
neg eax
adc edx, 0
neg edx
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], edx
jmp 0x70a52191
mov ecx, edx
mov edx, eax
neg edx
adc ecx, 0
neg ecx
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], ecx
jmp 0x70a52181
ja 0x70a526f6
cmp ebp, eax
jbe 0x70a52494
mov ebp, eax
mov dword [esp + 0x44], edx
jmp 0x70a52494
mov eax, dword [esp + 0x48]
cmp dword [esp + 0x30], eax
ja 0x70a5221c
jmp 0x70a52546
mov eax, 1
mov dword [esp + 0x20], 0
mov dword [esp + 0x28], 1
jmp 0x70a5250b