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

Disassembly:
sub esp, 0xa4
mov eax, dword [0x10164bc0]
xor eax, esp
mov dword [esp + 0xa0], eax
mov ax, word [esp + 0xb8]
mov edx, dword [esp + 0xb4]
movzx ecx, ax
mov word [esp], ax
mov ax, cx
shr ax, 8
push ebx
push ebp
mov ebp, dword [esp + 0xb4]
push esi
mov esi, dword [esp + 0xb4]
mov dword [esp + 0x6c], ecx
mov ecx, dword [esp + 0xc8]
push edi
movzx edi, ax
mov eax, dword [esp + 0xd4]
mov dword [esp + 0x3c], eax
mov eax, dword [esi]
mov dword [esp + 0x1c], eax
movzx eax, byte [ecx*4 + 0x101175d0]
movzx ecx, byte [ecx*4 + 0x101175d1]
mov dword [esp + 0x30], eax
mov eax, dword [esi + 0xa0]
mov ebx, dword [esp + 0xc0]
mov dword [esp + 0x6c], edx
mov edx, dword [esp + 0xd8]
sub eax, edx
mov dword [esp + 0x48], eax
mov dword [esp + 0x20], edx
mov edx, 0x10
mov eax, edx
mov dword [esp + 0x14], ebp
cmp dword [esp + 0x30], eax
mov ebp, dword [esp + 0x48]
cmovb eax, dword [esp + 0x30]
cmp eax, ebp
mov dword [esp + 0x24], ebx
mov dword [esp + 0x18], esi
cmovl ebp, eax
mov dword [esp + 0x28], edi
mov eax, dword [esi + 0xa8]
mov esi, 0x80008000
mov dword [esp + 0x48], ebp
mov ebp, dword [esp + 0x3c]
sub eax, ebp
cmp ecx, edx
mov dword [ebx], 0
mov dword [esp + 0x40], ecx
cmovb edx, ecx
cmp edx, eax
cmovl eax, edx
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x1c]
mov ebx, dword [eax]
mov eax, dword [esp + 0x70]
test al, al
jle 0x1007b633
push ebx
push ecx
push dword [esp + 0x38]
movsx eax, al
push ebp
push dword [esp + 0x30]
lea eax, [eax + eax*8]
lea eax, [eax + 0xd7]
lea edi, [ebx + eax*4]
push edi
call fcn.1007cb30
mov edx, eax
add esp, 0x18
cmp dword [edi], 1
mov ecx, esi
mov eax, dword [esp + 0x28]
cmovg ecx, edx
mov dword [esp + 0x8c], edx
mov dword [esp + 0xa0], ecx
movzx ecx, ax
movzx eax, ax
jmp 0x1007b64f
mov dword [esp + 0x8c], 0
mov dword [esp + 0xa0], 0x80008000
movzx ecx, di
movzx eax, di
mov ebp, dword [esp + 0x14]
test al, al
jle 0x1007b694
push ebx
push dword [esp + 0x44]
movsx eax, cl
push dword [esp + 0x38]
push dword [esp + 0x48]
lea eax, [eax + eax*8]
push dword [esp + 0x30]
lea eax, [eax + 0xd7]
lea edi, [ebx + eax*4]
push edi
call fcn.1007cb30
add esp, 0x18
mov dword [esp + 0x90], eax
cmp dword [edi], 1
cmovg esi, eax
mov dword [esp + 0xa4], esi
mov ebx, dword [esp + 0x18]
xor esi, esi
mov edi, dword [esp + 0x3c]
mov dword [esp + 0x54], 0
mov dword [esp + 0x68], esi
mov ecx, dword [ebx + 0xa4]
lea edx, [esi + 1]
mov dword [esp + 0x34], esi
mov dword [esp + 0x78], esi
mov dword [esp + 0x44], 0xffffffff
cmp edi, ecx
jle 0x1007b73b
cmp edx, dword [esp + 0x40]
mov eax, edi
sbb edx, edx
sub eax, ecx
mov ecx, dword [esp + 0x20]
inc eax
sar eax, 1
neg edx
add edx, 2
cmp eax, edx
lea ecx, [ecx + ecx*2]
cmovl edx, eax
and edi, 0x1f
mov dword [esp + 0x78], edx
mov eax, dword [ebx + edi*4 + 0x14]
lea edi, [eax + ecx*4]
mov ecx, dword [esp + 0x30]
lea eax, [esp + 0x34]
mov dword [esp + 0x58], edi
push eax
lea eax, [esp + 0x58]
cmp ecx, 0x10
push eax
sbb eax, eax
and eax, 0xfffffffd
add eax, 4
push eax
push edx
push dword [esp + 0x58]
lea eax, [esp + 0xb4]
push ecx
push edi
mov edi, dword [esp + 0x40]
push eax
push dword [esp + 0x30]
push edi
push ebp
call fcn.1007d390
add esp, 0x2c
mov dword [esp + 0x44], eax
lea edx, [esi + 1]
jmp 0x1007b747
mov eax, dword [esp + 0x2c]
mov edi, dword [esp + 0x24]
mov dword [esp + 0x58], eax
mov ecx, dword [ebx + 0x9c]
mov eax, dword [esp + 0x20]
mov dword [esp + 0x64], esi
mov dword [esp + 0x4c], 0xffffffff
cmp eax, ecx
jle 0x1007b7d8
cmp edx, dword [esp + 0x30]
sbb edx, edx
sub eax, ecx
inc eax
mov ecx, dword [esp + 0x40]
sar eax, 1
neg edx
add edx, 2
cmp eax, edx
cmovl edx, eax
mov eax, dword [esp + 0x3c]
and eax, 0x1f
mov dword [esp + 0x64], edx
add eax, 6
cmp ecx, 0x10
lea esi, [ebx + eax*4]
lea eax, [esp + 0x68]
mov dword [esp + 0x80], esi
push eax
lea eax, [esp + 0x58]
push eax
sbb eax, eax
and eax, 0xfffffffd
add eax, 4
push eax
mov eax, dword [esp + 0x2c]
push edx
dec eax
push eax
push dword [esp + 0x4c]
lea eax, [esp + 0xb8]
push ecx
push esi
push eax
push dword [esp + 0x34]
push edi
push ebp
call fcn.1007d270
mov esi, dword [esp + 0x98]
add esp, 0x30
mov dword [esp + 0x4c], eax
jmp 0x1007b7e3
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x80], eax
cmp dword [esp + 0x44], 0xffffffff
je 0x1007b841
test byte [esp + 0xd0], 1
je 0x1007b841
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x30]
cmp ecx, eax
cmova eax, ecx
cmp eax, 0x10
ja 0x1007b841
mov eax, dword [esp + 0x20]
add eax, ecx
cmp eax, dword [ebx + 0xa0]
jge 0x1007b841
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x58]
push eax
lea eax, [esp + 0xa8]
push eax
push dword [esp + 0x1c]
lea eax, [ecx + ecx*2]
mov ecx, dword [esp + 0x68]
lea eax, [ecx + eax*4]
push eax
push 4
push edi
push ebp
call fcn.1007b150
add esp, 0x20
mov eax, dword [esp + 0x34]
mov ecx, dword [edi]
add eax, esi
mov dword [esp + 0x2c], eax
mov dword [esp + 0x50], ecx
test ecx, ecx
jle 0x1007b86e
lea eax, [ebp + 8]
nop dword [eax + eax]
add dword [eax], 0x280
lea eax, [eax + 0x10]
sub ecx, 1
jne 0x1007b860
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx]
movzx eax, byte [eax + 0x1b5]
mov dword [esp + 0x70], eax
cmp dword [ecx + 0x18], 0
je 0x1007baf1
mov edx, dword [ecx + 0xa4]
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x20]
sar eax, 1
mov dword [esp + 0x28], eax
and eax, 0xf
imul eax, edx
sar ecx, 1
mov dword [esp + 0x74], ecx
mov dword [esp + 0x88], edx
add eax, ecx
lea eax, [eax + eax*4]
add eax, dword [ebx + 0x98]
mov ebx, 8
cmp dword [esp + 0x30], 0x10
mov edx, ebx
mov dword [esp + 0x84], eax
sbb ecx, ecx
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x48]
add ecx, 2
cmp dword [esp + 0x40], 0x10
mov dword [esp + 0x94], ecx
sbb esi, esi
inc eax
sar eax, 1
add esi, 2
cmp eax, ebx
mov dword [esp + 0x5c], esi
cmovl edx, eax
mov eax, dword [esp + 0x38]
inc eax
mov dword [esp + 0x98], edx
sar eax, 1
cmp eax, ebx
cmovl ebx, eax
mov dword [esp + 0x60], ebx
xor ebx, ebx
cmp dword [esp + 0x60], ebx
jle 0x1007b9ab
mov eax, esi
mov ebp, esi
imul eax, dword [esp + 0x88]
lea eax, [eax + eax*4]
mov dword [esp + 0x9c], eax
mov eax, dword [esp + 0x7c]
xor esi, esi
test edx, edx
jle 0x1007b990
lea ebp, [ecx + ecx*4]
mov edi, eax
lea eax, [esp + 0x8c]
mov ecx, 0
push eax
mov eax, esi
or eax, ebx
lea eax, [esp + 0x74]
cmovne eax, ecx
push eax
push dword [esp + 0x18]
push edi
push dword [esp + 0x34]
push dword [esp + 0x28]
push dword [esp + 0x34]
call fcn.1007b2c0
mov ecx, dword [esp + 0xb0]
add esp, 0x1c
mov edx, dword [esp + 0x98]
add esi, ecx
add edi, ebp
cmp esi, edx
jl 0x1007b940
mov eax, dword [esp + 0x7c]
mov ebp, dword [esp + 0x5c]
add eax, dword [esp + 0x9c]
add ebx, ebp
mov dword [esp + 0x7c], eax
cmp ebx, dword [esp + 0x60]
jl 0x1007b935
mov ebp, dword [esp + 0x14]
mov edi, dword [esp + 0x24]
mov ecx, dword [esp + 0x40]
mov eax, ecx
mov edx, dword [esp + 0x30]
cmp edx, ecx
cmovb eax, edx
cmp eax, 2
jb 0x1007baf1
cmp edx, ecx
mov eax, ecx
cmova eax, edx
cmp eax, 0x10
jae 0x1007baf1
mov ebx, dword [esp + 0x28]
mov esi, edx
mov edx, dword [esp + 0x84]
and ebx, 0xfffffff8
shr ecx, 1
add ebx, 8
mov eax, ecx
shr esi, 1
imul eax, dword [esp + 0x88]
mov ebp, ebx
lea edx, [edx + eax*4]
add edx, eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x5c], edx
mov eax, dword [eax + 0xa8]
sar eax, 1
cmp eax, ebx
cmovl ebp, eax
mov eax, dword [esp + 0x28]
add eax, ecx
mov dword [esp + 0x60], ebp
cmp eax, ebp
mov dword [esp + 0x28], eax
mov ebp, dword [esp + 0x14]
jge 0x1007ba62
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x74]
and ecx, 0xfffffff8
mov eax, dword [eax + 0x9c]
sar eax, 1
cmp eax, ecx
cmovg ecx, eax
cmp dword [esp + 0x74], ecx
jle 0x1007ba62
push 0
push 0
push dword [esp + 0x18]
lea eax, [edx - 5]
push eax
push edi
push ebp
push dword [esp + 0x34]
call fcn.1007b2c0
mov edx, dword [esp + 0x78]
add esp, 0x1c
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x74]
and ecx, 0xfffffff8
add ecx, 8
mov eax, dword [eax + 0xa0]
sar eax, 1
cmp eax, ecx
cmovl ecx, eax
mov eax, dword [esp + 0x74]
add eax, esi
cmp eax, ecx
jge 0x1007baf1
mov eax, dword [esp + 0x60]
cmp dword [esp + 0x28], eax
jge 0x1007baad
push 0
push 0
push dword [esp + 0x18]
lea eax, [edx + esi*4]
add eax, esi
push eax
push edi
push ebp
push dword [esp + 0x34]
call fcn.1007b2c0
add esp, 0x1c
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 0xa8]
sar eax, 1
cmp eax, ebx
cmovl ebx, eax
mov eax, dword [esp + 0x28]
dec eax
cmp eax, ebx
mov ebx, dword [esp + 0x10]
jge 0x1007baf5
sub esi, dword [esp + 0x88]
mov eax, dword [esp + 0x5c]
push 0
push 0
push ebx
lea eax, [eax + esi*4]
add eax, esi
push eax
push edi
push ebp
push dword [esp + 0x34]
call fcn.1007b2c0
add esp, 0x1c
jmp 0x1007baf5
mov ebx, dword [esp + 0x10]
mov eax, dword [esp + 0x4c]
or eax, dword [esp + 0x44]
cmp eax, 0xffffffff
je 0x1007bb29
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0xa8]
push eax
mov eax, dword [esp + 0x64]
push ebx
add eax, 0xfffffff4
push eax
push 4
push edi
push ebp
call fcn.1007b150
add esp, 0x20
mov eax, dword [esp + 0x64]
mov esi, 2
mov ebp, dword [esp + 0x20]
mov edx, dword [esp + 0x78]
add ebp, 0xfffffffd
mov ecx, edx
sub ecx, eax
lea edi, [esi + 2]
lea ebx, [eax - 1]
mov dword [esp + 0x84], ecx
nop
cmp esi, dword [esp + 0x44]
jbe 0x1007bbc4
cmp esi, edx
ja 0x1007bbc4
mov edx, dword [esp + 0x30]
lea eax, [esp + 0x34]
push eax
cmp edx, 0x10
lea eax, [esp + 0x2c]
push eax
sbb eax, eax
and eax, 0xfffffffe
add eax, 4
push eax
lea eax, [ecx + ebx]
push eax
push dword [esp + 0x58]
mov eax, dword [esp + 0x34]
push edx
mov edx, dword [esp + 0x54]
or eax, 1
and edx, 0x1f
sub edx, edi
inc edx
lea ecx, [eax + eax*2]
or edx, 1
mov eax, dword [esp + 0x30]
mov eax, dword [eax + edx*4 + 0x18]
lea eax, [eax + ecx*4]
push eax
lea eax, [esp + 0xbc]
push eax
push dword [esp + 0x30]
push dword [esp + 0x48]
push dword [esp + 0x3c]
call fcn.1007d390
add esp, 0x2c
add dword [esp + 0x44], eax
mov eax, dword [esp + 0x64]
cmp esi, dword [esp + 0x4c]
jbe 0x1007bc29
cmp esi, eax
ja 0x1007bc29
mov ecx, dword [esp + 0x40]
lea eax, [esp + 0x68]
push eax
cmp ecx, 0x10
lea eax, [esp + 0x2c]
push eax
sbb eax, eax
and eax, 0xfffffffe
add eax, 4
push eax
push ebx
mov eax, ebp
or eax, 1
push eax
push dword [esp + 0x4c]
mov eax, dword [esp + 0x54]
push ecx
mov ecx, dword [esp + 0x34]
and eax, 0x1e
or eax, 1
add ecx, 0x18
lea eax, [ecx + eax*4]
push eax
lea eax, [esp + 0xc0]
push eax
push dword [esp + 0x34]
push dword [esp + 0x4c]
push dword [esp + 0x40]
call fcn.1007d270
add esp, 0x30
add dword [esp + 0x4c], eax
mov ecx, dword [esp + 0x84]
add edi, 2
mov eax, dword [esp + 0x64]
inc esi
mov edx, dword [esp + 0x78]
dec ebx
sub ebp, 2
cmp edi, 6
jle 0x1007bb50
mov eax, dword [esp + 0x34]
mov edx, 2
mov ecx, dword [esp + 0x2c]
add eax, dword [esp + 0x68]
sub ecx, 0
je 0x1007bcaa
sub ecx, 1
je 0x1007bc8e
sub ecx, 1
jne 0x1007bc7c
mov ecx, 5
mov dword [esp + 0x34], 5
sub ecx, dword [esp + 0x54]
jmp 0x1007bcbd
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x18], eax
jmp 0x1007bcc1
lea eax, [eax + eax*2]
mov ecx, 4
cmp eax, ecx
cmovl ecx, eax
mov dword [esp + 0x34], ecx
mov ecx, 3
sub ecx, dword [esp + 0x54]
jmp 0x1007bcbd
cmp eax, 2
mov ecx, eax
cmovg ecx, edx
mov dword [esp + 0x34], ecx
xor ecx, ecx
test eax, eax
setg cl
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x50]
mov ebx, ecx
test ecx, ecx
je 0x1007bd0a
nop dword [eax + eax]
xor edi, edi
lea esi, [edi + 1]
cmp ebx, esi
jle 0x1007bd00
mov ecx, dword [esp + 0x14]
nop dword [eax]
mov eax, dword [ecx + 8]
cmp eax, dword [ecx + 0x18]
jge 0x1007bcf8
movups xmm1, xmmword [ecx]
mov edi, esi
movups xmm0, xmmword [ecx + 0x10]
movups xmmword [ecx + 0x10], xmm1
movups xmmword [ecx], xmm0
inc esi
add ecx, 0x10
cmp esi, ebx
jl 0x1007bce0
mov ebx, edi
test edi, edi
jne 0x1007bcd0
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x24]
mov ebp, dword [esp + 0x14]
mov edi, dword [edx]
cmp edi, ecx
jle 0x1007bd60
lea eax, [ecx + 1]
mov dword [esp + 0x2c], eax
nop
mov esi, eax
mov ebx, ecx
cmp esi, edi
jge 0x1007bd5a
mov ecx, esi
shl ecx, 4
add ecx, 0xfffffff0
add ecx, ebp
mov eax, dword [ecx + 8]
cmp eax, dword [ecx + 0x18]
jge 0x1007bd4a
movups xmm1, xmmword [ecx]
mov ebx, esi
movups xmm0, xmmword [ecx + 0x10]
movups xmmword [ecx + 0x10], xmm1
movups xmmword [ecx], xmm0
inc esi
add ecx, 0x10
cmp esi, edi
jl 0x1007bd32
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x50]
mov edi, ebx
cmp ebx, ecx
jg 0x1007bd20
mov cl, byte [esp + 0x11]
mov edi, dword [edx]
test cl, cl
jle 0x1007c049
cmp edi, 2
jge 0x1007bf2a
movsx eax, byte [esp + 0x10]
xorps xmm0, xmm0
mov esi, dword [esp + 0x1c]
movups xmmword [esp + 0xa0], xmm0
movzx ebp, byte [eax + esi + 0x1b]
movsx eax, cl
movzx ecx, byte [eax + esi + 0x1b]
mov eax, dword [esp + 0x38]
cmp dword [esp + 0x48], eax
mov dword [esp + 0x50], ecx
cmovl eax, dword [esp + 0x48]
shl edi, 4
add edi, dword [esp + 0x14]
cmp dword [esp + 0x44], 0xffffffff
mov dword [esp + 0x38], eax
je 0x1007be09
xor ebx, ebx
test eax, eax
jle 0x1007be09
lea edx, [esi + 0x1c]
mov dword [esp + 0x2c], edx
mov esi, dword [esp + 0x58]
lea eax, [ebx + ebx*2]
push edx
push dword [esp + 0x14]
push ecx
lea esi, [esi + eax*4]
push ebp
push esi
lea eax, [esp + 0xb4]
push eax
push edi
call fcn.1007af10
movzx eax, byte [esi + 0xa]
add esp, 0x1c
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x2c]
movzx eax, byte [eax*4 + 0x101175d0]
add ebx, eax
mov eax, dword [esp + 0x38]
cmp ebx, eax
jl 0x1007bdc8
cmp dword [esp + 0x4c], 0xffffffff
je 0x1007be79
xor ebx, ebx
test eax, eax
jle 0x1007be79
mov eax, dword [esp + 0x20]
lea edx, [eax + eax*2]
shl edx, 2
mov dword [esp + 0x2c], edx
nop dword [eax]
nop dword [eax + eax]
mov eax, dword [esp + 0x80]
lea esi, [edx - 0xc]
add esi, dword [eax + ebx*4]
mov eax, dword [esp + 0x1c]
add eax, 0x1c
push eax
push dword [esp + 0x14]
lea eax, [esp + 0xa8]
push ecx
push ebp
push esi
push eax
push edi
call fcn.1007af10
movzx eax, byte [esi + 0xa]
add esp, 0x1c
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x2c]
movzx eax, byte [eax*4 + 0x101175d1]
add ebx, eax
cmp ebx, dword [esp + 0x38]
jl 0x1007be30
xor esi, esi
lea ebx, [edi + 0x10]
nop
mov eax, dword [esp + esi*4 + 0xa0]
cmp eax, 2
jge 0x1007becb
mov ebp, dword [esp + esi*4 + 0xa8]
test ebp, ebp
je 0x1007beb3
mov ecx, dword [edi + esi*4 + 0x20]
lea edx, [esi + eax*4]
inc eax
mov dword [edi + edx*4], ecx
cmp eax, 2
je 0x1007becb
cmp ebp, 2
jne 0x1007beb3
mov eax, dword [ebx + 0x20]
mov dword [ebx], eax
jmp 0x1007becb
mov edx, dword [esp + esi*4 + 0x8c]
lea ecx, [esi + eax*4]
lea ecx, [edi + ecx*4]
inc eax
mov dword [ecx], edx
lea ecx, [ecx + 0x10]
cmp eax, 2
jl 0x1007bec0
inc esi
add ebx, 4
cmp esi, 2
jl 0x1007be80
mov ecx, dword [esp + 0x24]
mov ebx, dword [esp + 0x14]
mov edx, dword [ecx]
cmp edx, 1
jne 0x1007bf01
mov eax, dword [ebx]
cmp eax, dword [edi]
jne 0x1007bf01
mov eax, dword [ebx + 4]
cmp eax, dword [edi + 4]
jne 0x1007bf01
mov ecx, dword [ebx + 0x24]
mov eax, dword [ebx + 0x20]
mov dword [ebx + 0x14], ecx
mov ecx, dword [esp + 0x24]
mov dword [ebx + 0x10], eax
mov eax, edx
shl eax, 4
add eax, 8
add eax, ebx
nop dword [eax + eax]
inc edx
mov dword [eax], 2
lea eax, [eax + 0x10]
cmp edx, 2
jl 0x1007bf10
mov dword [ecx], 2
mov edi, 2
mov eax, dword [esp + 0x1c]
mov ecx, 0xfffffffc
mov esi, ecx
mov dword [esp + 0x28], 0
sub esi, dword [esp + 0x20]
sub ecx, dword [esp + 0x3c]
mov ebx, dword [eax + 4]
mov ebp, dword [eax + 8]
sub ebx, dword [esp + 0x20]
sub ebp, dword [esp + 0x3c]
add ebx, 4
sub esi, dword [esp + 0x30]
add ebp, 4
sub ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x14]
shl esi, 5
shl ebx, 5
shl ecx, 5
shl ebp, 5
add eax, 6
movsx edx, word [eax - 4]
cmp edx, esi
jge 0x1007bf80
mov edx, esi
jmp 0x1007bf85
cmp edx, ebx
cmovg edx, ebx
mov word [eax - 4], dx
movsx edx, word [eax - 6]
cmp edx, ecx
jge 0x1007bf95
mov edx, ecx
jmp 0x1007bf9a
cmp edx, ebp
cmovg edx, ebp
mov word [eax - 6], dx
movsx edx, word [eax]
cmp edx, esi
jge 0x1007bfa9
mov edx, esi
jmp 0x1007bfae
cmp edx, ebx
cmovg edx, ebx
mov word [eax], dx
movsx edx, word [eax - 2]
cmp edx, ecx
jge 0x1007bfbd
mov edx, ecx
jmp 0x1007bfc2
cmp edx, ebp
cmovg edx, ebp
mov word [eax - 2], dx
add eax, 0x10
mov edx, dword [esp + 0x28]
inc edx
mov dword [esp + 0x28], edx
cmp edx, edi
jl 0x1007bf74
mov eax, dword [esp + 0x34]
sar eax, 1
sub eax, 0
je 0x1007c02f
sub eax, 1
je 0x1007c014
sub eax, 1
jne 0x1007c1f7
mov eax, dword [esp + 0x18]
add eax, 3
cmp eax, 4
jge 0x1007c005
mov eax, 4
jmp 0x1007c1f1
mov ecx, 7
cmp eax, ecx
cmovg eax, ecx
jmp 0x1007c1f1
cmp dword [esp + 0x18], 3
mov ecx, 3
mov edx, dword [esp + 0x6c]
cmovl ecx, dword [esp + 0x18]
inc ecx
mov dword [edx], ecx
jmp 0x1007c1f7
cmp dword [esp + 0x18], 1
mov ecx, 1
mov edx, dword [esp + 0x6c]
cmovl ecx, dword [esp + 0x18]
mov dword [edx], ecx
jmp 0x1007c1f7
cmp edi, 2
jge 0x1007c12f
mov al, byte [esp + 0x10]
test al, al
jle 0x1007c12f
mov ecx, dword [esp + 0x1c]
movsx eax, al
movzx ebx, byte [eax + ecx + 0x1b]
mov eax, dword [esp + 0x38]
cmp dword [esp + 0x48], eax
cmovl eax, dword [esp + 0x48]
cmp dword [esp + 0x44], 0xffffffff
mov dword [esp + 0x38], eax
je 0x1007c0cc
xor edi, edi
test eax, eax
jle 0x1007c0cc
cmp dword [edx], 2
jge 0x1007c0c8
mov esi, dword [esp + 0x58]
lea eax, [edi + edi*2]
lea esi, [esi + eax*4]
lea eax, [ecx + 0x1c]
push eax
push ebx
push esi
push edx
push dword [esp + 0x24]
call fcn.1007b0c0
movzx eax, byte [esi + 0xa]
add esp, 0x14
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
movzx eax, byte [eax*4 + 0x101175d0]
add edi, eax
mov eax, dword [esp + 0x38]
cmp edi, eax
jl 0x1007c088
mov ebp, dword [esp + 0x14]
cmp dword [esp + 0x4c], 0xffffffff
je 0x1007c12f
xor edi, edi
test eax, eax
jle 0x1007c12f
nop dword [eax]
cmp dword [edx], 2
jge 0x1007c12b
mov eax, dword [esp + 0x20]
lea ecx, [eax + eax*2]
mov eax, dword [esp + 0x80]
lea ecx, [ecx - 3]
mov eax, dword [eax + edi*4]
lea esi, [eax + ecx*4]
mov eax, dword [esp + 0x1c]
add eax, 0x1c
push eax
push ebx
push esi
push edx
push dword [esp + 0x24]
call fcn.1007b0c0
movzx eax, byte [esi + 0xa]
add esp, 0x14
mov edx, dword [esp + 0x24]
movzx eax, byte [eax*4 + 0x101175d1]
add edi, eax
cmp edi, dword [esp + 0x38]
jl 0x1007c0e0
mov ebp, dword [esp + 0x14]
mov eax, dword [edx]
mov dword [esp + 0x2c], eax
test eax, eax
je 0x1007c1ba
mov eax, dword [esp + 0x1c]
mov ecx, 0xfffffffc
mov edx, dword [esp + 0x14]
mov esi, ecx
sub esi, dword [esp + 0x20]
sub ecx, dword [esp + 0x3c]
mov ebx, dword [eax + 4]
sub ebx, dword [esp + 0x20]
mov edi, dword [eax + 8]
add ebx, 4
sub edi, dword [esp + 0x3c]
sub esi, dword [esp + 0x30]
add edi, 4
sub ecx, dword [esp + 0x40]
shl esi, 5
shl ebx, 5
shl ecx, 5
shl edi, 5
xor ebp, ebp
nop
movsx eax, word [edx + 2]
cmp eax, esi
jge 0x1007c18c
mov eax, esi
jmp 0x1007c191
cmp eax, ebx
cmovg eax, ebx
mov word [edx + 2], ax
movsx eax, word [edx]
cmp eax, ecx
jge 0x1007c1a0
mov eax, ecx
jmp 0x1007c1a5
cmp eax, edi
cmovg eax, edi
mov word [edx], ax
inc ebp
add edx, 0x10
cmp ebp, dword [esp + 0x2c]
jl 0x1007c180
mov ebp, dword [esp + 0x14]
mov edx, dword [esp + 0x24]
mov ecx, dword [edx]
cmp ecx, 2
jge 0x1007c1e0
mov eax, ecx
mov edx, 2
shl eax, 4
add eax, ebp
sub edx, ecx
mov ecx, dword [esp + 0x8c]
mov dword [eax], ecx
lea eax, [eax + 0x10]
sub edx, 1
jne 0x1007c1d6
mov eax, dword [esp + 0x34]
add eax, eax
or eax, dword [esp + 0x70]
shl eax, 3
or eax, dword [esp + 0x18]
mov edx, dword [esp + 0x6c]
mov dword [edx], eax
mov ecx, dword [esp + 0xb0]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100c490a
add esp, 0xa4
ret