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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x5b0
mov eax, dword [0x1026f864]
mov ebx, 0xbebbb1b7
xor eax, ebp
mov dword [esp + 0x5a8], eax
mov eax, dword [ecx + 0x108]
cmp eax, 2
jg 0x1003f986
mov esi, ecx
lea edi, [ecx + 0x5c8]
cmp eax, 1
jne 0x1003e86c
mov ecx, esi
mov edx, 0x10229870
push 0
call fcn.1003d570
add esp, 4
mov ebx, eax
cmp eax, 1
jne 0x1003e866
mov eax, dword [esi + 4]
xor ecx, ecx
push 1
push ecx
push ecx
push dword [eax + 0x10]
call fcn.10034770
add esp, 0x10
add eax, 0xfffffffc
mov ecx, esi
adc edx, 0xffffffff
mov dword [esi + 0x628], eax
mov dword [esi + 0x62c], edx
mov edx, 0x1022ab10
push edi
call fcn.1003d570
add esp, 4
mov ebx, eax
test eax, eax
js 0x1003f986
mov eax, dword [esi + 0x108]
test eax, eax
je 0x1003e8cf
cmp eax, 2
jne 0x1003f986
mov ecx, esi
mov edx, 0x1022ab40
push edi
call fcn.1003d570
add esp, 4
mov ebx, eax
test eax, eax
js 0x1003f971
mov ecx, dword [esi + 0x5e0]
test ecx, ecx
jle 0x1003f971
mov eax, dword [esi + 0x5d8]
mov dword [esp + 4], ecx
or eax, dword [esi + 0x5dc]
je 0x1003e91e
mov eax, 0x80000000
xor ecx, ecx
xor eax, dword [esi + 0x5d4]
or eax, dword [esi + 0x5d0]
sete cl
mov dword [esp + 0x20], ecx
jmp 0x1003e925
mov eax, dword [esi + 4]
push dword [eax + 0x10]
call fcn.10034ef0
add esp, 4
test eax, eax
jne 0x1003e90a
mov eax, dword [esi + 4]
push dword [eax + 0x10]
call fcn.10034fa0
add esp, 4
mov eax, dword [esi + 4]
push dword [eax + 0x10]
call fcn.10034ef0
add esp, 4
test eax, eax
mov ebx, 0xbebbb1b7
je 0x1003f986
mov ebx, 0xdfb9b0bb
mov dword [esi + 0x1a8], 1
jmp 0x1003f986
xor eax, eax
dec eax
mov dword [esp + 0x20], eax
mov ecx, dword [esi + 0x600]
xor eax, eax
mov dword [esp + 0x64], ecx
test ecx, ecx
mov ecx, 0
jle 0x1003e940
mov ecx, dword [esi + 0x608]
mov dword [esp + 0x8c], ecx
mov ecx, dword [esi + 0x61c]
mov edx, dword [esi + 0x5e4]
lea ebx, [esp + 0x98]
mov dword [esp + 0x78], ecx
mov ecx, dword [esi + 0x618]
mov dword [esp + 0x80], edx
mov dword [esp + 0x74], ecx
mov ecx, dword [esi + 0x62c]
mov dword [esp + 0x50], ecx
mov ecx, dword [esi + 0x628]
mov dword [esp + 0x34], ecx
mov ecx, dword [esi + 0x5fc]
mov dword [esp + 0x88], ecx
mov ecx, dword [esi + 0x5f8]
mov dword [esp + 0x84], ecx
mov ecx, dword [esi + 0x5c8]
mov dword [esp + 0x58], ecx
mov ecx, dword [esi + 0x5cc]
mov dword [esp + 0x5c], ecx
mov ecx, dword [esi + 0x624]
mov dword [esp + 0x10], ecx
mov ecx, dword [esi + 0x620]
mov dword [esp + 0x38], ecx
mov ecx, dword [esi + 0x5f4]
mov dword [esp + 0x70], ecx
mov ecx, dword [esi + 0x5f0]
mov dword [esp + 0x6c], ecx
mov ecx, dword [esi + 0x5e8]
push eax
push eax
push eax
push eax
push eax
push dword [esp + 0x18]
mov dword [esp + 0x20], ecx
push ecx
push ebx
call fcn.10034010
add esp, 0x20
lea eax, [esp + 0x90]
mov ecx, ebx
mov edx, 8
push 1
push eax
call fcn.1003e390
add esp, 8
mov ebx, eax
test eax, eax
js 0x1003f971
mov eax, dword [esi + 0x150]
test eax, eax
mov dword [esp + 0x18], eax
jle 0x1003f96c
mov eax, dword [esi + 0x158]
mov ecx, dword [esp + 0x90]
mov edx, dword [esp + 0x94]
add dword [esp + 8], ebx
sub dword [esp + 4], ebx
xor ebx, ebx
mov dword [esp + 0x14], edi
mov dword [esp + 0xc], esi
add eax, 0x198
mov edi, dword [eax - 0x198]
mov esi, dword [eax - 0x194]
xor edi, ecx
xor esi, edx
or esi, edi
je 0x1003ea84
inc ebx
add eax, 0x5b0
cmp ebx, dword [esp + 0x18]
jl 0x1003ea56
mov ebx, 0xbebbb1b7
mov edi, dword [esp + 0x14]
jmp 0x1003f971
mov ecx, dword [eax - 0x10]
mov edi, dword [esp + 0x14]
test ecx, ecx
mov dword [esp + 0x18], ecx
je 0x1003f96c
mov ecx, dword [esp + 4]
xor ebx, ebx
cmp ecx, 4
jl 0x1003f971
mov esi, dword [esp + 0x18]
mov edx, eax
cmp dword [esi + 0x34], 0x2f
jg 0x1003f971
mov ebx, dword [esp + 8]
mov dword [esp + 0x1c], edx
mov esi, dword [esp + 0x20]
mov dword [esp + 0x30], 0
movzx edx, word [ebx]
movzx eax, byte [ebx + 2]
mov dword [esp + 0x54], eax
rol dx, 8
shr eax, 7
cmp esi, 0xffffffff
cmovne eax, esi
mov dword [esp + 0x40], eax
mov eax, edx
mov edx, dword [esp + 0x38]
mov word [esp + 0x44], ax
and edx, dword [esp + 0x10]
mov dword [esp + 0x48], edx
cmp edx, 0xffffffff
movsx edx, ax
mov dword [esp + 0x2c], edx
je 0x1003ebbe
mov esi, dword [esp + 0x1c]
test ax, ax
jns 0x1003eb34
mov eax, edx
neg eax
mov ecx, eax
sar ecx, 0x1f
cmp dword [esp + 0x38], eax
mov eax, dword [esp + 0x10]
sbb eax, ecx
jae 0x1003eb34
mov dword [esp + 0x28], 0x80000000
jmp 0x1003ebdf
mov eax, dword [esp + 0x38]
mov ecx, edx
sar ecx, 0x1f
add eax, edx
adc ecx, dword [esp + 0x10]
sub eax, dword [esi - 0x18]
sbb ecx, dword [esi - 0x14]
mov dword [esp + 0x30], eax
mov dword [esp + 0x28], ecx
mov ecx, dword [esi - 0x188]
xor ecx, 0x11
or ecx, dword [esi - 0x184]
jne 0x1003ebd0
cmp dword [esp + 0x40], 0
je 0x1003ebd7
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x28]
cmp eax, dword [esi - 8]
sbb ecx, dword [esi - 4]
jb 0x1003ebd7
mov eax, dword [esp + 0x18]
push dword [eax]
mov eax, dword [esp + 0x10]
push dword [eax + 4]
call fcn.1002a740
add esp, 8
xor eax, eax
push 1
push eax
push eax
push dword [esp + 0x34]
push dword [esp + 0x40]
push dword [esp + 0x64]
push dword [esp + 0x4c]
push dword [esp + 0x34]
call fcn.1002a7c0
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x2c]
add esp, 0x20
mov ecx, dword [esp + 4]
jmp 0x1003ebe7
mov eax, dword [esp + 0xc]
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x28], 0x80000000
jmp 0x1003ebe7
cmp dword [esp + 0x40], 0
jne 0x1003eb79
mov dword [esp + 0x40], 0
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0xc]
cmp dword [eax + 0x1ac], 0
je 0x1003ec5f
mov eax, dword [esi - 0x188]
xor eax, 0x11
or eax, dword [esi - 0x184]
je 0x1003ec5f
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0xc]
xor ebx, ebx
cmp eax, dword [edx + 0x1b0]
mov eax, dword [esp + 0x28]
sbb eax, dword [edx + 0x1b4]
jl 0x1003f971
cmp dword [esp + 0x40], 0
je 0x1003ec3c
mov dword [edx + 0x1ac], 0
mov ebx, dword [esp + 8]
mov edx, dword [esp + 0x2c]
jmp 0x1003ec5f
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 8]
mov edx, dword [esp + 0x2c]
cmp dword [eax + 0x1bc], 0
jne 0x1003ec5f
mov eax, dword [esp + 0xc]
mov dword [eax + 0x1ac], 0
mov eax, dword [esp + 0x54]
add ebx, 3
shr eax, 1
and eax, 3
test al, al
je 0x1003ed19
movzx esi, byte [ebx]
mov edx, eax
inc ebx
add ecx, 0xfffffffc
cmp edx, 3
lea eax, [esi + 1]
mov dword [esp + 0x34], esi
je 0x1003ed2f
cmp edx, 2
je 0x1003ee6e
mov esi, dword [esp + 0x1c]
cmp edx, 1
mov dword [esp + 0x4c], eax
jne 0x1003ef0d
mov edx, dword [esp + 0x34]
mov dword [esp + 4], ecx
mov dword [esp + 8], ebx
test dl, dl
je 0x1003ee9d
xor eax, eax
xor ecx, ecx
mov dword [esp + 0x20], ecx
mov dword [esp + ecx*4 + 0x1a8], 0
mov ecx, dword [esp + 4]
xor edx, edx
cmp ecx, eax
jbe 0x1003f96c
mov ebx, dword [esp + 8]
dec ecx
movzx esi, byte [ebx]
inc ebx
mov dword [esp + 8], ebx
mov ebx, dword [esp + 0x1c]
add eax, esi
add edx, esi
cmp esi, 0xff
mov esi, dword [esp + 0x20]
mov dword [esp + esi*4 + 0x1a8], edx
je 0x1003ecd3
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x34]
inc ecx
cmp ecx, edx
jne 0x1003ecbe
jmp 0x1003eea1
add ecx, 0xfffffffd
xor eax, eax
inc eax
mov dword [esp + 0x1a8], ecx
mov dword [esp + 0x4c], eax
jmp 0x1003ef11
mov dword [esp + 4], ecx
mov dword [esp + 0x4c], eax
mov dword [esp + 8], ebx
push 0
push 4
lea esi, [esp + 0xa0]
push esi
call fcn.10034e40
add esp, 0xc
lea eax, [esp + 0x158]
mov ecx, esi
mov edx, 8
push 1
push eax
call fcn.1003e390
add esp, 8
test eax, eax
mov dword [esp + 0x3c], eax
js 0x1003eec0
mov esi, dword [esp + 0x158]
mov edx, dword [esp + 0x15c]
mov ecx, 0x7fffffff
xor eax, eax
mov ebx, 0xbebbb1b7
cmp ecx, esi
mov dword [esp + 0x24], edx
sbb eax, edx
jb 0x1003f971
cmp byte [esp + 0x34], 2
mov dword [esp + 0x1a8], esi
jb 0x1003eec9
lea eax, [esp + 0x1ac]
mov edi, dword [esp + 0x3c]
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x34]
dec eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x20], esi
lea ecx, [esp + 0x98]
mov edx, 8
push 1
lea eax, [esp + 0x164]
push eax
call fcn.1003e390
add esp, 8
test eax, eax
js 0x1003f9fb
lea ecx, [eax*8]
sub ecx, eax
dec cl
xor esi, esi
dec esi
mov edx, esi
shl edx, cl
test cl, 0x20
mov ecx, esi
mov esi, 0
cmovne ecx, edx
cmovne edx, esi
mov esi, 0x7fffffff
add edx, dword [esp + 0x160]
adc ecx, dword [esp + 0x164]
add edx, dword [esp + 0x50]
adc ecx, 0
add edx, 1
adc ecx, 0
cmp esi, edx
mov esi, 0
sbb esi, ecx
jb 0x1003ea7b
mov esi, dword [esp + 0x20]
mov dword [esp + 0x50], edx
add esi, edx
adc dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x54]
add edi, eax
mov dword [ecx], edx
add ecx, 4
dec dword [esp + 0x60]
mov dword [esp + 0x54], ecx
jne 0x1003edca
jmp 0x1003eecd
mov esi, eax
mov eax, ecx
xor edx, edx
div esi
test edx, edx
jne 0x1003f96c
lea ecx, [esp + 0x1a8]
mov edx, esi
mov dword [esp + 0x4c], esi
mov dword [ecx], eax
add ecx, 4
dec edx
jne 0x1003ee8b
mov edx, dword [esp + 0x2c]
mov esi, dword [esp + 0x1c]
jmp 0x1003ef11
mov ebx, esi
xor eax, eax
mov ecx, dword [esp + 4]
sub ecx, eax
jbe 0x1003f96c
mov dword [esp + edx*4 + 0x1a8], ecx
mov esi, ebx
mov edx, dword [esp + 0x2c]
mov ebx, dword [esp + 8]
jmp 0x1003ef11
mov ebx, dword [esp + 0x3c]
jmp 0x1003f971
mov edi, dword [esp + 0x3c]
mov ecx, dword [esp + 4]
mov dword [esp + 0x3c], edi
mov dword [esp + 0x20], esi
sub ecx, edi
mov edi, dword [esp + 0x14]
mov eax, ecx
sar eax, 0x1f
cmp esi, ecx
sbb dword [esp + 0x24], eax
jae 0x1003f971
mov ebx, dword [esp + 8]
mov edx, ecx
mov eax, dword [esp + 0x34]
mov esi, dword [esp + 0x1c]
sub edx, dword [esp + 0x20]
add ebx, dword [esp + 0x3c]
mov dword [esp + eax*4 + 0x1a8], edx
mov edx, dword [esp + 0x2c]
movsd xmm0, qword [esi - 0x80]
ucomisd xmm0, qword [0x102294c0]
jne 0x1003ef54
jp 0x1003ef54
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 0xb0]
cmp dword [eax + 4], 0x15003
jne 0x1003ef54
cmp dword [eax + 0x6c], 0x1f40
jne 0x1003ef9e
mov ecx, dword [esp + 0x58]
or ecx, dword [esp + 0x5c]
jne 0x1003ef9e
cmp dword [eax + 0x74], 0
mov eax, dword [esp + 0xc]
jne 0x1003ef62
jmp 0x1003efa2
mov eax, dword [esp + 0x58]
or eax, dword [esp + 0x5c]
mov eax, dword [esp + 0xc]
jne 0x1003efa2
mov ecx, dword [esi - 0x14c]
mov eax, dword [esp + 0x4c]
imul ecx, eax
mul dword [esi - 0x150]
add edx, ecx
mov ecx, dword [esp + 0xc]
push dword [ecx + 0x124]
mov ecx, dword [esp + 0x10]
push dword [ecx + 0x120]
push edx
push eax
call fcn.101e0940
mov dword [esp + 0x5c], edx
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0xc]
cmp dword [esp + 0x48], 0xffffffff
mov dword [esp + 8], ebx
je 0x1003f002
cmp word [esp + 0x44], 0
jns 0x1003efca
neg edx
mov ecx, eax
mov eax, edx
sar eax, 0x1f
cmp dword [esp + 0x38], edx
sbb dword [esp + 0x10], eax
mov eax, ecx
jb 0x1003f002
mov edx, dword [esp + 0x58]
mov eax, dword [esi - 8]
mov ecx, dword [esi - 4]
mov esi, dword [esp + 0x5c]
add edx, dword [esp + 0x30]
adc esi, dword [esp + 0x28]
cmp edx, eax
mov edi, esi
sbb edi, ecx
mov edi, dword [esp + 0x14]
cmovb edx, eax
mov eax, dword [esp + 0x1c]
cmovb esi, ecx
mov dword [eax - 8], edx
mov eax, dword [esp + 0x1c]
mov dword [eax - 4], esi
mov eax, dword [esp + 0xc]
mov ecx, eax
add eax, 0x1a4
xor esi, esi
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x64]
add ecx, 0x1a0
mov dword [esp + 0xc], ecx
add eax, 8
mov dword [esp + 0x7c], eax
mov eax, ecx
mov ebx, dword [esp + 0x5c]
mov eax, dword [esp + 0x58]
lea edx, [esi + 1]
mov dword [esp + 0x3c], edx
mov ecx, ebx
imul ecx, edx
mul edx
add edx, ecx
xor ecx, ecx
push ecx
push dword [esp + 0x50]
push edx
push eax
call fcn.101e0940
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x58]
mov ecx, ebx
mov dword [esp + 0x44], edx
mov ebx, esi
mov dword [esp + 4], esi
imul ecx, esi
mul esi
add ecx, edx
xor edx, edx
push edx
push dword [esp + 0x50]
push ecx
push eax
call fcn.101e0940
sub dword [esp + 0x48], eax
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 8]
mov ecx, dword [eax + 0xb0]
sbb dword [esp + 0x44], edx
mov eax, dword [ecx + 4]
lea edx, [eax - 0x15014]
cmp edx, 0x15
ja 0x1003f0a7
mov esi, 0x200801
bt esi, edx
mov esi, dword [esp + 8]
jb 0x1003f0b9
cmp eax, 0x17809
je 0x1003f35c
cmp eax, 0x13001
jne 0x1003f0cd
cmp dword [ecx + 0x70], 0
je 0x1003f0cd
mov ecx, dword [esp + 0x1c]
cmp dword [ecx - 0x54], 0
jne 0x1003f96c
mov edx, dword [esp + 4]
mov ecx, 0
test edx, edx
mov edx, dword [esp + edx*4 + 0x1a8]
cmove ecx, dword [esp + 0x40]
mov dword [esp + 0x24], edx
mov dword [esp + 0x60], ecx
mov ecx, dword [esp + 0x1c]
mov ecx, dword [ecx - 0x24]
mov dword [esp + 0x154], esi
test ecx, ecx
je 0x1003f119
mov edx, dword [ecx + 8]
or edx, dword [ecx + 0xc]
jne 0x1003f10f
test byte [ecx], 1
jne 0x1003f6a6
mov edx, dword [esp + 8]
mov ebx, dword [esp + 0x24]
jmp 0x1003f11f
mov ebx, edx
mov ecx, esi
mov edx, esi
cmp eax, 0x15019
jne 0x1003f338
cmp ebx, 0xc
mov dword [esp + 0x158], 0
jl 0x1003f9f4
mov eax, dword [esp + 0x1c]
mov ecx, dword [edx]
add ebx, 0xfffffffc
add edx, 4
mov dword [esp + 4], 0
mov dword [esp + 0x38], 0
mov eax, dword [eax - 0x10]
mov dword [esp + 0x2c], ecx
mov eax, dword [eax + 0xb0]
mov eax, dword [eax + 0xc]
movzx eax, word [eax]
mov word [esp + 0x54], ax
mov ecx, dword [edx]
mov eax, dword [edx + 4]
mov edi, ebx
mov esi, ecx
mov dword [esp + 0x34], ecx
mov ecx, 0x1800
mov dword [esp + 0x20], eax
and esi, 0x1800
cmp esi, ecx
jne 0x1003f1a2
add edx, 8
add edi, 0xfffffff8
mov dword [esp + 0x10], edx
mov dword [esp + 0x50], edi
jmp 0x1003f1cb
mov ebx, 0xbebbb1b7
cmp edi, 0xc
jl 0x1003f9a3
mov esi, edi
mov edi, dword [edx + 8]
add esi, 0xfffffff4
cmp esi, edi
jb 0x1003f9a3
add edx, 0xc
mov dword [esp + 0x50], esi
mov dword [esp + 0x10], edx
mov ebx, dword [esp + 4]
lea eax, [ebx + edi + 0x60]
push eax
push dword [esp + 0x15c]
call fcn.10062100
add esp, 8
test eax, eax
je 0x1003f99e
mov esi, dword [esp + 0x38]
mov dword [esp + 0x158], eax
lea ebx, [edi + ebx + 0x20]
mov dword [esp + 4], ebx
mov dword [eax + esi], 0x6b707677
lea eax, [edi + 0x18]
mov ecx, dword [esp + 0x158]
mov dword [ecx + esi + 4], eax
movzx ecx, word [esp + 0x54]
mov eax, dword [esp + 0x158]
mov word [eax + esi + 8], cx
mov ecx, 0
mov eax, dword [esp + 0x158]
mov word [eax + esi + 0xa], 0
mov eax, dword [esp + 0x158]
mov dword [eax + esi + 0xc], ecx
mov eax, dword [esp + 0x158]
mov dword [eax + esi + 0x10], ecx
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x158]
mov dword [eax + esi + 0x14], ecx
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x158]
mov dword [eax + esi + 0x18], ecx
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x158]
mov dword [eax + esi + 0x1c], ecx
mov eax, dword [esp + 0x158]
lea eax, [eax + esi + 0x20]
push edi
mov ebx, dword [esp + 0x14]
push ebx
push eax
call fcn.101e35e0
mov edx, ebx
add esp, 0xc
mov ebx, dword [esp + 0x50]
lea esi, [edi + esi + 0x20]
add edx, edi
mov dword [esp + 0x38], esi
sub ebx, edi
mov edi, dword [esp + 0x14]
cmp ebx, 7
jg 0x1003f172
mov eax, dword [esp + 0x154]
xor ecx, ecx
mov edx, dword [esp + 0x158]
mov ebx, dword [esp + 4]
cmp eax, dword [esp + 8]
mov dword [edx + ebx + 4], ecx
mov dword [edx + ebx], ecx
mov dword [edx + ebx + 0xc], ecx
mov dword [edx + ebx + 8], ecx
mov dword [edx + ebx + 0x14], ecx
mov dword [edx + ebx + 0x10], ecx
mov dword [edx + ebx + 0x1c], ecx
mov dword [edx + ebx + 0x18], ecx
mov dword [edx + ebx + 0x24], ecx
mov dword [edx + ebx + 0x20], ecx
mov dword [edx + ebx + 0x2c], ecx
mov dword [edx + ebx + 0x28], ecx
mov dword [edx + ebx + 0x34], ecx
mov dword [edx + ebx + 0x30], ecx
mov dword [edx + ebx + 0x3c], ecx
mov dword [edx + ebx + 0x38], ecx
je 0x1003f324
lea eax, [esp + 0x154]
push eax
mov ebx, edx
call fcn.10062220
mov edx, ebx
mov ebx, dword [esp + 8]
add esp, 4
mov eax, dword [esp + 0x18]
mov dword [esp + 0x154], edx
mov eax, dword [eax + 0xb0]
mov eax, dword [eax + 4]
cmp eax, 0x93
jne 0x1003f355
mov dword [esp + 0x10], edx
push dword [edx + 4]
call fcn.101eaef1
add esp, 4
cmp eax, 0x69637066
jne 0x1003f3a9
mov esi, ebx
jmp 0x1003f45f
mov eax, dword [esp + 4]
mov ebx, 0xbebbb1b7
mov eax, dword [esp + eax*4 + 0x1a8]
test eax, eax
jle 0x1003f971
mov ecx, dword [esp + 8]
mov dword [esp + 0x24], eax
lea edx, [ecx + eax]
lea eax, [ecx + 1]
cmp edx, eax
mov esi, edx
cmova eax, edx
mov edx, ecx
mov cl, byte [edx]
cmp cl, 0xa
je 0x1003f793
cmp cl, 0xd
je 0x1003f793
inc edx
cmp eax, edx
jne 0x1003f38b
jmp 0x1003f971
lea eax, [ebx + 0x48]
push eax
call sym.ffmpeg.dll_av_malloc
add esp, 4
test eax, eax
je 0x1003f9ed
mov esi, ebx
mov ebx, eax
lea eax, [esi + 8]
mov dword [esp + 4], eax
push eax
call fcn.101eaef1
add esp, 4
mov dword [ebx], eax
push 0x69637066
call fcn.101eaef1
add esp, 4
mov dword [ebx + 4], eax
mov eax, ebx
add eax, 8
push esi
mov esi, dword [esp + 8]
push dword [esp + 0x14]
push eax
call fcn.101e35e0
add esp, 0xc
mov ecx, dword [esp + 8]
xor eax, eax
mov dword [ebx + esi + 4], eax
mov dword [ebx + esi], eax
mov dword [ebx + esi + 0xc], eax
mov dword [ebx + esi + 8], eax
mov dword [ebx + esi + 0x14], eax
mov dword [ebx + esi + 0x10], eax
mov dword [ebx + esi + 0x1c], eax
mov dword [ebx + esi + 0x18], eax
mov dword [ebx + esi + 0x24], eax
mov dword [ebx + esi + 0x20], eax
mov dword [ebx + esi + 0x2c], eax
mov dword [ebx + esi + 0x28], eax
mov dword [ebx + esi + 0x34], eax
mov dword [ebx + esi + 0x30], eax
mov dword [ebx + esi + 0x3c], eax
mov dword [ebx + esi + 0x38], eax
cmp dword [esp + 0x154], ecx
je 0x1003f458
lea eax, [esp + 0x154]
push eax
call fcn.10062220
add esp, 4
mov dword [esp + 0x154], ebx
lea eax, [esp + 0x160]
push eax
call sym.ffmpeg.dll_av_init_packet
add esp, 4
mov eax, dword [esp + 0x154]
cmp eax, dword [esp + 8]
je 0x1003f490
xor edx, edx
lea ecx, [esi + 0x40]
push edx
push edx
push edx
push ecx
push eax
call sym.ffmpeg.dll_AlphaBlend
add esp, 0x14
jmp 0x1003f49f
push dword [esp + 0x80]
call fcn.1005a350
add esp, 4
test eax, eax
mov dword [esp + 0x160], eax
je 0x1003f9ed
mov eax, dword [esp + 0x154]
cmp dword [esp + 0x64], 0
mov dword [esp + 0x178], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 0x17c], esi
mov dword [esp + 0x184], eax
mov eax, dword [esp + 0x18]
mov eax, dword [eax]
mov dword [esp + 0x180], eax
jle 0x1003f53e
push dword [esp + 0x7c]
push 0xf
lea eax, [esp + 0x168]
push eax
call fcn.10009190
add esp, 0xc
test eax, eax
je 0x1003f9d6
mov ebx, eax
push dword [esp + 0x84]
call fcn.101eaef1
add esp, 4
mov esi, eax
push dword [esp + 0x88]
call fcn.101eaef1
add esp, 4
mov dword [ebx + 4], esi
mov dword [ebx], eax
add ebx, 8
push dword [esp + 0x64]
push dword [esp + 0x90]
push ebx
call fcn.101e35e0
add esp, 0xc
mov eax, dword [esp + 0x74]
mov edx, dword [esp + 0xc]
or eax, dword [esp + 0x78]
je 0x1003f5b1
push 0xa
push 0xb
lea eax, [esp + 0x168]
push eax
call fcn.10009190
add esp, 0xc
test eax, eax
je 0x1003f9d6
mov ebx, eax
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 0xb0]
push dword [eax + 0x6c]
xor eax, eax
inc eax
push eax
push 0x3b9aca00
push eax
push dword [esp + 0x88]
push dword [esp + 0x88]
call sym.ffmpeg.dll_av_rescale_q
add esp, 0x18
mov ecx, eax
mov esi, 0
neg ecx
sbb esi, edx
lea edx, [ebx + 4]
cmovge edx, ebx
cmovl ecx, eax
mov dword [edx], ecx
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x1c]
xor eax, eax
mov esi, dword [esp + 0x28]
cmp dword [ecx], 0
mov ecx, dword [esp + 0x30]
setne al
mov dword [esp + eax*8 + 0x168], ecx
mov dword [esp + eax*8 + 0x16c], esi
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x198], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0x19c], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x190], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x194], eax
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 0xb0]
cmp dword [eax + 4], 0x17808
jne 0x1003f628
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x1a0], eax
mov dword [esp + 0x1a4], ecx
push 0
lea eax, [esp + 0x164]
push eax
push dword [esp + 0x70]
push edx
call fcn.10027cf0
add esp, 0x10
test eax, eax
js 0x1003f9d6
mov ebx, dword [esp + 0x28]
mov esi, dword [esp + 0x30]
mov ecx, 0x80000000
mov edx, dword [esp + 0x44]
mov eax, ebx
xor eax, ecx
or eax, esi
mov eax, dword [esp + 0x48]
sete byte [esp + 4]
mov ecx, eax
or ecx, edx
sete cl
add eax, esi
mov esi, dword [esp + 0x24]
adc edx, ebx
xor ebx, ebx
or cl, byte [esp + 4]
mov ecx, 0x80000000
cmovne edx, ecx
cmovne eax, ebx
add dword [esp + 8], esi
mov esi, dword [esp + 0x3c]
mov dword [esp + 0x30], eax
mov dword [esp + 0x28], edx
cmp esi, dword [esp + 0x4c]
jne 0x1003f026
jmp 0x1003f971
cmp dword [esp + 0x24], 0x98967f
mov ebx, 0xbebbb1b7
ja 0x1003f971
mov ecx, dword [esp + 0x1c]
mov ecx, dword [ecx - 0x24]
mov edx, dword [ecx + 0x10]
xor edx, 3
or edx, dword [ecx + 0x14]
jne 0x1003f971
mov ebx, dword [ecx + 0x18]
mov esi, dword [ecx + 0x20]
test ebx, ebx
je 0x1003f7db
test esi, esi
je 0x1003f7db
mov eax, dword [esp + 0x24]
mov dword [esp + 0x10], esi
mov esi, eax
lea eax, [ebx + eax + 0x40]
push eax
call sym.ffmpeg.dll_av_malloc
add esp, 4
test eax, eax
je 0x1003f9e6
lea ecx, [ebx + esi]
mov dword [esp + 4], ecx
push ebx
push dword [esp + 0x14]
push eax
mov dword [esp + 0x1c], eax
call fcn.101e35e0
add esp, 0xc
mov eax, dword [esp + 0x10]
add eax, ebx
mov ebx, dword [esp + 4]
push esi
push dword [esp + 0xc]
push eax
call fcn.101e35e0
mov edx, dword [esp + 0x1c]
add esp, 0xc
xor eax, eax
mov dword [edx + ebx + 4], eax
mov dword [edx + ebx], eax
mov dword [edx + ebx + 0xc], eax
mov dword [edx + ebx + 8], eax
mov dword [edx + ebx + 0x14], eax
mov dword [edx + ebx + 0x10], eax
mov dword [edx + ebx + 0x1c], eax
mov dword [edx + ebx + 0x18], eax
mov dword [edx + ebx + 0x24], eax
mov dword [edx + ebx + 0x20], eax
mov dword [edx + ebx + 0x2c], eax
mov dword [edx + ebx + 0x28], eax
mov dword [edx + ebx + 0x34], eax
mov dword [edx + ebx + 0x30], eax
mov dword [edx + ebx + 0x3c], eax
mov dword [edx + ebx + 0x38], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x154], edx
mov eax, dword [eax + 0xb0]
mov eax, dword [eax + 4]
jmp 0x1003f11f
mov eax, edx
inc edx
cmp cl, 0xd
cmovne edx, eax
mov dword [esp + 4], eax
cmp edx, esi
jae 0x1003f971
cmp byte [edx], 0xa
jne 0x1003f971
inc edx
mov eax, 0xffffffff
mov dword [esp + 0x10], eax
cmp edx, esi
mov eax, edx
jae 0x1003f80b
mov edi, edx
mov ecx, edx
mov dl, byte [ecx]
cmp dl, 0xd
je 0x1003f7f8
cmp dl, 0xa
je 0x1003f7f8
inc ecx
cmp esi, ecx
jne 0x1003f7c5
jmp 0x1003ea7b
test ebx, ebx
je 0x1003f10f
mov edx, dword [esp + 8]
mov ebx, dword [esp + 0x24]
test esi, esi
jne 0x1003f11f
jmp 0x1003fa1c
mov eax, ecx
sub eax, edi
cmp dl, 0xd
mov edx, edi
mov dword [esp + 0x10], eax
lea eax, [ecx + 1]
cmovne eax, ecx
cmp eax, esi
mov dword [esp + 0x38], edx
jae 0x1003ea7b
cmp byte [eax], 0xa
jne 0x1003ea7b
lea ecx, [eax + 1]
sub esi, ecx
test esi, esi
jle 0x1003ea7b
mov edx, dword [esp + 4]
mov edi, ecx
sub edx, dword [esp + 8]
mov dword [esp + 4], edx
mov cl, byte [eax + esi]
cmp cl, 0xd
je 0x1003f848
cmp cl, 0xa
jne 0x1003f855
cmp esi, 1
lea esi, [esi - 1]
jg 0x1003f83b
jmp 0x1003ea7b
mov dword [esp + 0x20], esi
push esi
lea eax, [esp + 0x164]
push eax
call sym.ffmpeg.dll_av_new_packet
add esp, 8
test eax, eax
js 0x1003f9fb
push dword [esp + 0x20]
push edi
push dword [esp + 0x180]
call fcn.101e35e0
add esp, 0xc
cmp dword [esp + 4], 0
jle 0x1003f8bc
push dword [esp + 4]
push 0x10
lea eax, [esp + 0x168]
push eax
call fcn.10009190
add esp, 0xc
test eax, eax
je 0x1003fa02
push dword [esp + 4]
push dword [esp + 0xc]
push eax
call fcn.101e35e0
add esp, 0xc
cmp dword [esp + 0x10], 0
jle 0x1003f8f2
push dword [esp + 0x10]
push 0x11
lea eax, [esp + 0x168]
push eax
call fcn.10009190
add esp, 0xc
test eax, eax
je 0x1003fa02
push dword [esp + 0x10]
push dword [esp + 0x3c]
push eax
call fcn.101e35e0
add esp, 0xc
mov eax, dword [esp + 0x18]
mov eax, dword [eax]
mov dword [esp + 0x180], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x16c], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x168], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x194], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x190], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0x19c], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x198], eax
push 0
lea eax, [esp + 0x164]
push eax
push dword [esp + 0x70]
push dword [esp + 0x18]
call fcn.10027cf0
add esp, 0x10
test eax, eax
js 0x1003fa02
mov edi, dword [esp + 0x14]
jmp 0x1003f647
mov ebx, 0xbebbb1b7
mov ecx, 0x1022ac00
mov edx, edi
call fcn.1003dfa0
xor eax, eax
mov ecx, 0x16
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x5a8]
xor ecx, ebp
call fcn.101e05ab
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov ebx, 0xfffffff4
lea eax, [esp + 0x158]
push eax
call fcn.10062220
add esp, 4
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 8]
cmp dword [esp + 0x154], eax
je 0x1003f971
lea eax, [esp + 0x154]
push eax
call fcn.10062220
add esp, 4
jmp 0x1003f971
lea eax, [esp + 0x160]
push eax
call sym.ffmpeg.dll_av_packet_unref
add esp, 4
mov ebx, 0xfffffff4
jmp 0x1003f971
mov ebx, 0xfffffff4
jmp 0x1003f9b7
mov ebx, 0xbebbb1b7
jmp 0x1003f9b3
mov ebx, eax
jmp 0x1003ea7b
lea eax, [esp + 0x160]
push eax
call sym.ffmpeg.dll_av_packet_unref
add esp, 4
mov ebx, 0xfffffff4
jmp 0x1003ea7b
xor ebx, ebx
dec ebx
jmp 0x1003f971