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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x8c
mov esi, dword [esp + 0xa8]
mov edi, dword [esp + 0xac]
mov ecx, dword [esp + 0xb0]
mov ebx, dword [esp + 0xb4]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], ebx
mov ecx, dword [esp + 0xb8]
mov ebx, dword [esp + 0xbc]
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], ebx
mov ebx, edi
shr ebx, 0x1f
mov dword [esp + 0x78], ebx
mov ebp, dword [esp + 0x34]
shr ebp, 0x1f
mov dword [esp + 0x7c], ebp
mov ecx, dword [esp + 0x30]
mov ebx, dword [esp + 0x34]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], ebx
mov ebp, dword [esp + 0x34]
test ebp, ebp
js 0x635d2670
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], edi
test edi, edi
js 0x635d2658
mov ecx, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ebx
mov ecx, dword [esp + 0x28]
mov ebx, dword [esp + 0x2c]
mov dword [esp], ecx
mov dword [esp + 4], ebx
call sym.avutil_fb2k_52.dll_av_gcd
mov ebx, eax
mov ebp, edx
mov eax, edx
or eax, ebx
je 0x635d21c2
mov dword [esp + 8], ebx
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov dword [esp], edx
mov dword [esp + 4], ecx
call fcn.635d97d0
mov esi, eax
mov edi, edx
mov dword [esp + 8], ebx
mov dword [esp + 0xc], ebp
mov ecx, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
mov dword [esp], ecx
mov dword [esp + 4], ebx
call fcn.635d97d0
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], edx
cmp edi, dword [esp + 0x4c]
jg 0x635d21dc
jge 0x635d24d4
mov ebx, dword [esp + 0x4c]
cmp dword [esp + 0x34], ebx
jle 0x635d24b8
mov edx, dword [esp + 0x34]
or edx, dword [esp + 0x30]
je 0x635d26af
mov ecx, dword [esp + 0x30]
mov ebx, dword [esp + 0x34]
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ebx
mov dword [esp], esi
mov dword [esp + 4], edi
call fcn.635d97d0
mov ecx, eax
mov ebx, edx
mov dword [esp + 0x20], eax
mov eax, edx
mov ebp, dword [esp + 0x30]
mov dword [esp + 0x40], ebp
mov edx, dword [esp + 0x34]
mov dword [esp + 0x50], edx
cmp dword [esp + 0x4c], ebx
jl 0x635d2594
jg 0x635d2236
cmp dword [esp + 0x48], ecx
jb 0x635d2594
cmp dword [esp + 0x4c], 0
jl 0x635d2594
jle 0x635d2588
mov ebp, dword [esp + 0x40]
imul ebp, eax
mov eax, dword [esp + 0x50]
imul eax, dword [esp + 0x20]
add ebp, eax
mov eax, dword [esp + 0x40]
mul dword [esp + 0x20]
mov dword [esp + 0x20], eax
add edx, ebp
mov dword [esp + 0x24], edx
mov ebp, edi
mov edi, esi
sub edi, dword [esp + 0x20]
sbb ebp, dword [esp + 0x24]
mov dword [esp + 0x70], 1
mov dword [esp + 0x54], 0
mov eax, 1
mov dword [esp + 0x20], ecx
mov dword [esp + 0x44], eax
mov eax, ebp
or eax, edi
je 0x635d257c
nop
mov dword [esp + 8], edi
mov dword [esp + 0xc], ebp
mov ecx, dword [esp + 0x30]
mov ebx, dword [esp + 0x34]
mov dword [esp], ecx
mov dword [esp + 4], ebx
call fcn.635d97d0
mov esi, eax
mov dword [esp + 0x28], edx
mov dword [esp + 0x40], edi
mov dword [esp + 0x50], ebp
mov eax, edx
imul eax, edi
mov edx, ebp
imul edx, esi
lea ecx, [eax + edx]
mov eax, edi
mul esi
mov dword [esp + 0x38], eax
add edx, ecx
mov dword [esp + 0x3c], edx
mov ecx, dword [esp + 0x30]
mov ebx, dword [esp + 0x34]
sub ecx, dword [esp + 0x38]
sbb ebx, dword [esp + 0x3c]
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], ebx
mov eax, dword [esp + 0x20]
cdq
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], edx
mov eax, dword [esp + 0x6c]
imul eax, esi
mov edx, dword [esp + 0x28]
imul edx, dword [esp + 0x20]
lea ecx, [eax + edx]
mov eax, dword [esp + 0x20]
mul esi
mov dword [esp + 0x38], eax
add edx, ecx
mov dword [esp + 0x3c], edx
mov eax, dword [esp + 0x70]
cdq
mov ecx, eax
mov ebx, edx
add ecx, dword [esp + 0x38]
adc ebx, dword [esp + 0x3c]
mov eax, dword [esp + 0x44]
cdq
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], edx
mov eax, dword [esp + 0x54]
cdq
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], edx
cmp dword [esp + 0x4c], ebx
jg 0x635d24fa
jge 0x635d24f0
mov ecx, dword [esp + 0x44]
mov ebx, ecx
sar ebx, 0x1f
mov edi, ecx
mov ebp, ebx
mov ecx, dword [esp + 0x38]
mov ebx, dword [esp + 0x3c]
add ecx, ecx
adc ebx, ebx
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], ebx
mov eax, dword [esp + 0x34]
imul eax, dword [esp + 0x44]
mov edx, dword [esp + 0x30]
imul edx, ebp
lea ecx, [eax + edx]
mov eax, dword [esp + 0x30]
mul dword [esp + 0x44]
mov dword [esp + 0x30], eax
add edx, ecx
mov dword [esp + 0x34], edx
mov edx, dword [esp + 0x20]
test edx, edx
jne 0x635d2608
mov eax, dword [esp + 0x44]
test eax, eax
je 0x635d23fd
mov eax, dword [esp + 0x54]
cdq
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x4c]
sub eax, dword [esp + 0x18]
sbb edx, dword [esp + 0x1c]
mov dword [esp + 8], edi
mov dword [esp + 0xc], ebp
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.635d97d0
cmp dword [esp + 0x28], edx
jae 0x635d2684
mov edx, dword [esp + 0x28]
imul edx, dword [esp + 0x58]
mov eax, dword [esp + 0x5c]
imul eax, esi
lea ecx, [edx + eax]
mov eax, dword [esp + 0x58]
mul esi
mov dword [esp + 0x28], eax
add edx, ecx
mov dword [esp + 0x2c], edx
mov ecx, dword [esp + 0x60]
mov ebx, dword [esp + 0x64]
add ecx, dword [esp + 0x28]
adc ebx, dword [esp + 0x2c]
mov edx, dword [esp + 0x40]
imul edx, ebx
mov eax, dword [esp + 0x50]
imul eax, ecx
lea ebx, [edx + eax]
mov eax, dword [esp + 0x40]
mul ecx
mov dword [esp + 0x28], eax
add edx, ebx
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x34]
cmp dword [esp + 0x2c], edx
jb 0x635d264e
jbe 0x635d2640
mov eax, dword [esp + 0x68]
imul eax, esi
add eax, dword [esp + 0x70]
mov dword [esp + 0x20], eax
imul esi, dword [esp + 0x38]
add esi, dword [esp + 0x54]
mov dword [esp + 0x44], esi
xor eax, eax
mov ecx, dword [esp + 0x7c]
cmp dword [esp + 0x78], ecx
je 0x635d2491
neg dword [esp + 0x20]
mov edx, dword [esp + 0xa0]
mov ebx, dword [esp + 0x20]
mov dword [edx], ebx
mov edx, dword [esp + 0xa4]
mov esi, dword [esp + 0x44]
mov dword [edx], esi
add esp, 0x8c
pop ebx
pop esi
pop edi
pop ebp
ret
jge 0x635d269c
mov dword [esp + 0x20], esi
mov eax, dword [esp + 0x30]
mov dword [esp + 0x44], eax
mov eax, 1
jmp 0x635d2483
cmp esi, dword [esp + 0x48]
ja 0x635d21dc
mov ebx, dword [esp + 0x4c]
cmp dword [esp + 0x34], ebx
jg 0x635d21dc
jmp 0x635d24b8
cmp dword [esp + 0x48], ecx
jb 0x635d2368
mov eax, dword [esp + 0x3c]
imul eax, esi
mov edx, dword [esp + 0x28]
imul edx, dword [esp + 0x38]
add edx, eax
mov dword [esp + 0x74], edx
mov eax, dword [esp + 0x38]
mul esi
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x74]
add edx, eax
mov dword [esp + 0x1c], edx
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
add eax, dword [esp + 0x60]
adc edx, dword [esp + 0x64]
cmp dword [esp + 0x4c], edx
jg 0x635d254a
jl 0x635d2368
cmp dword [esp + 0x48], eax
jb 0x635d2368
mov esi, dword [esp + 0x20]
mov dword [esp + 0x70], esi
mov esi, dword [esp + 0x44]
mov dword [esp + 0x54], esi
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], ebp
mov edi, dword [esp + 0x58]
mov ebp, dword [esp + 0x5c]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x44], eax
mov eax, ebp
or eax, edi
jne 0x635d22a0
mov eax, 1
jmp 0x635d2483
cmp dword [esp + 0x48], 0
ja 0x635d2247
nop
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
xor edi, edi
xor ebp, ebp
mov dword [esp + 0x20], 1
mov dword [esp + 0x70], 0
mov dword [esp + 0x54], 1
mov dword [esp + 0x44], 0
mov dword [esp + 0x60], 1
mov dword [esp + 0x64], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x68], 1
mov dword [esp + 0x6c], 0
mov eax, dword [esp + 0x70]
cdq
mov ecx, dword [esp + 0x48]
mov ebx, dword [esp + 0x4c]
sub ecx, eax
sbb ebx, edx
mov dword [esp], ecx
mov dword [esp + 4], ebx
mov eax, dword [esp + 0x20]
cdq
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
call fcn.635d97d0
mov esi, eax
mov dword [esp + 0x28], edx
jmp 0x635d23ba
mov ecx, dword [esp + 0x30]
cmp dword [esp + 0x28], ecx
ja 0x635d2465
xor eax, eax
jmp 0x635d2483
mov ecx, esi
mov ebx, edi
neg ecx
adc ebx, 0
neg ebx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], ebx
jmp 0x635d2150
neg ecx
adc ebx, 0
neg ebx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], ebx
jmp 0x635d2140
ja 0x635d268e
cmp esi, eax
jbe 0x635d23fd
mov esi, eax
mov dword [esp + 0x28], edx
jmp 0x635d23fd
mov ebp, dword [esp + 0x48]
cmp dword [esp + 0x30], ebp
ja 0x635d21dc
jmp 0x635d24be
mov eax, 1
mov dword [esp + 0x44], 0
mov dword [esp + 0x20], 1
jmp 0x635d2483