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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xd2c
mov eax, dword [0x10206f54]
xor eax, esp
mov dword [esp + 0xd28], eax
mov eax, dword [ecx + 0x8550]
mov dword [esp + 0x48], ecx
mov dword [esp + 0x34], eax
push ebx
push esi
push edi
mov edi, edx
mov edx, dword [ecx + 0x856c]
mov dword [esp + 0x20], edi
mov dword [esp + 0x4c], edx
cmp eax, 1
je 0x10032129
mov dword [esp + 0x14], edx
cmp eax, 2
jne 0x10032131
mov dword [esp + 0x14], 1
mov esi, dword [edi + 4]
lea ebx, [ecx + 0x80c0]
mov eax, dword [edi + 0x208]
lea edx, [edi + 0x6c]
mov edi, dword [esp + 0x4c]
movd xmm0, ebx
pshufd xmm3, xmm0, 0
mov dword [esp + 0x48], esi
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x50], fcn.1000cd10
cmp edi, 0x10
jle 0x10032191
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xd28]
xor ecx, esp
call fcn.101a8b60
mov esp, ebp
pop ebp
ret
cmp dword [ecx + 0x68], 0
je 0x100321cb
imul ecx, dword [ecx + 0x85e0], 0xf0
mov eax, dword [esp + 0x54]
mov eax, dword [eax + 0x85f4]
mov al, byte [ecx + eax + 0xc2]
test al, al
je 0x100321cb
mov dl, byte [ebx + 0x484]
mov ecx, esi
push eax
call fcn.10031590
mov edx, dword [esp + 0x14]
add esp, 4
xor ecx, ecx
test edi, edi
jle 0x100322a0
cmp edi, 0x10
jb 0x1003228d
movaps xmm1, xmmword [0x101f26d0]
mov eax, edi
and eax, 0x8000000f
jns 0x100321f3
dec eax
or eax, 0xfffffff0
inc eax
sub edi, eax
mov eax, 6
movd xmm2, eax
nop
movd xmm0, ecx
lea eax, [ecx + 4]
pshufd xmm0, xmm0, 0
paddd xmm0, xmm1
pslld xmm0, xmm2
paddd xmm0, xmm3
movups xmmword [esp + ecx*4 + 0x70], xmm0
movd xmm0, eax
lea eax, [ecx + 8]
pshufd xmm0, xmm0, 0
paddd xmm0, xmm1
pslld xmm0, xmm2
paddd xmm0, xmm3
movups xmmword [esp + ecx*4 + 0x80], xmm0
movd xmm0, eax
lea eax, [ecx + 0xc]
pshufd xmm0, xmm0, 0
paddd xmm0, xmm1
pslld xmm0, xmm2
paddd xmm0, xmm3
movups xmmword [esp + ecx*4 + 0x90], xmm0
movd xmm0, eax
pshufd xmm0, xmm0, 0
paddd xmm0, xmm1
pslld xmm0, xmm2
paddd xmm0, xmm3
movups xmmword [esp + ecx*4 + 0xa0], xmm0
add ecx, 0x10
cmp ecx, edi
jl 0x10032200
mov edi, dword [esp + 0x4c]
cmp ecx, edi
jge 0x100322a0
mov eax, ecx
shl eax, 6
add eax, ebx
mov dword [esp + ecx*4 + 0x70], eax
inc ecx
add eax, 0x40
cmp ecx, edi
jl 0x10032294
mov eax, dword [esp + 0x54]
cmp dword [eax + 0x85ec], 0
je 0x100322cc
mov ecx, 0x20
mov dword [edx], 0x7fff
mov eax, 1
nop dword [eax]
mov dword [edx + eax*8], ecx
inc eax
sub ecx, 2
cmp eax, 0x10
jl 0x100322c0
xor edi, edi
cmp dword [esp + 0x14], edi
jle 0x10032321
mov eax, dword [esp + 0x18]
lea ebx, [esp + 0x130]
lea esi, [esp + 0x530]
mov ecx, dword [esp + edi*4 + 0x70]
push 0x10
push esi
push 0
push eax
push edx
mov edx, ebx
call fcn.10031b40
mov edx, dword [esp + 0x24]
add esp, 0x14
mov dword [esp + edi*4 + 0xb0], eax
sub esi, 0xffffff80
mov eax, dword [esp + 0x20]
inc edi
add ebx, 0x40
mov eax, dword [eax + 0x20c]
cmp edi, dword [esp + 0x14]
jl 0x100322e6
mov esi, dword [esp + 0x48]
mov ebx, dword [esp + 0x40]
mov eax, 4
cmp ebx, 1
je 0x10032340
cmp ebx, 2
je 0x10032340
mov edx, dword [esp + 0xb4]
jmp 0x10032405
xor ecx, ecx
mov dword [esp + 0xc], 0
cmp ebx, 1
mov dword [esp + 0x1c], 0
cmove ecx, eax
xor eax, eax
add ecx, 0x101f10c0
cmp ebx, 1
mov dword [esp + 0x2c], ecx
setne al
xor esi, esi
lea eax, [eax*8 + 6]
mov dword [esp + 0x10], eax
mov eax, esi
mov edi, esi
sar eax, 1
and edi, 1
mov ebx, dword [ecx + eax*4]
mov eax, dword [esp + edi*4 + 0x74]
mov ecx, dword [esp + 0x20]
mov eax, dword [eax + ebx*4]
mov ecx, dword [ecx + 0x20c]
mov dword [esp + 0x18], eax
cdq
xor eax, edx
sub eax, edx
mov edx, dword [esp + 0xc]
sar eax, cl
lea ecx, [ebx + edi*8]
mov dword [esp + 0x30], eax
mov dword [esp + ecx*4 + 0xf0], eax
test eax, eax
je 0x100323e2
mov ecx, dword [esp + 0x1c]
neg eax
cmp dword [esp + 0x18], 0
mov dword [esp + edx*8 + 0x5b0], ecx
cmovge eax, dword [esp + 0x30]
mov dword [esp + edx*8 + 0x5b4], eax
inc edx
mov dword [esp + 0xc], edx
mov dword [esp + 0x1c], 0
jmp 0x100323e6
inc dword [esp + 0x1c]
mov ecx, dword [esp + 0x2c]
inc esi
cmp esi, dword [esp + 0x10]
jl 0x10032377
mov ebx, dword [esp + 0x40]
mov esi, dword [esp + 0x48]
mov dword [esp + 0xb4], edx
cmp ebx, 1
je 0x1003240a
cmp ebx, 2
jne 0x10032424
mov dword [esp + 0x14], 2
cmp ebx, 1
je 0x10032516
cmp ebx, 2
je 0x10032516
cmp ebx, 3
je 0x10032516
mov ebx, dword [esp + 0x4c]
xor edi, edi
test ebx, ebx
jle 0x1003248a
nop word [eax + eax]
mov eax, dword [esi + 4]
xor edx, edx
cmp dword [esp + edi*4 + 0xb0], edx
mov ecx, 0x20
setg dl
inc dword [esi + 8]
sub ecx, dword [esi + 8]
add eax, eax
or edx, eax
inc edi
mov eax, dword [esi + 0x14]
mov dword [esi + 4], edx
shl edx, cl
bswap edx
mov word [eax], dx
mov ecx, dword [esi + 8]
mov eax, ecx
shr eax, 3
and ecx, 0xf
and eax, 2
mov dword [esi + 8], ecx
add eax, dword [esi + 0x14]
and eax, dword [esi + 0xc]
mov dword [esi + 0x14], eax
cmp edi, ebx
jl 0x10032440
mov ebx, dword [esp + 0x20]
mov edx, dword [ebx + 0x208]
mov dword [esp + 0x3c], edx
cmp edx, 0xe
jg 0x100324a6
cmp dword [ebx + 0x20c], 0xe
jle 0x100324ae
mov dword [esp + 0x50], fcn.1000cd70
xor edi, edi
mov dword [esp + 0x34], edi
cmp dword [esp + 0x14], edi
jle 0x10032ea7
mov eax, dword [esp + 0x78]
lea ebx, [esp + 0x60]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0x6c], eax
mov eax, edi
lea ecx, [esp + 0x530]
shl eax, 7
add ecx, eax
mov eax, dword [esp + edi*4 + 0xb0]
mov dword [esp + 0x44], ecx
mov dword [esp + 0x2c], eax
test eax, eax
je 0x10032cda
add dword [ebx], eax
mov eax, dword [esp + 0x40]
cmp eax, 1
jne 0x1003273d
cmp edi, eax
jne 0x1003273d
lea edx, [eax + 8]
jmp 0x10032749
mov eax, dword [esp + 0x20]
xor ebx, ebx
cmp dword [esp + 0xb0], ebx
setg bl
mov ecx, dword [eax + 0x22c]
mov edi, dword [eax + 0x228]
xor eax, eax
test edx, edx
mov dword [esp + 0x24], ecx
mov edx, 2
cmovg eax, edx
add ebx, eax
mov eax, dword [esp + 0x14]
cmp eax, 3
jne 0x10032564
xor eax, eax
mov edx, 4
cmp dword [esp + 0xb8], eax
cmovg eax, edx
add ebx, eax
mov eax, dword [esp + 0x14]
test edi, edi
jle 0x100325af
test ecx, ecx
js 0x100325af
mov edx, dword [esi + 4]
mov ecx, eax
mov eax, dword [esi + 8]
add eax, dword [esp + 0x14]
shl edx, cl
mov ecx, 0x20
sub ecx, eax
mov dword [esi + 8], eax
mov eax, dword [esi + 0x14]
or edx, ebx
mov dword [esi + 4], edx
shl edx, cl
bswap edx
mov word [eax], dx
mov ecx, dword [esi + 8]
mov eax, ecx
and eax, 0xf
shr ecx, 3
mov dword [esi + 8], eax
and ecx, 2
add ecx, dword [esi + 0x14]
lea eax, [esi + 0x14]
jmp 0x100326c1
mov edx, dword [esp + 0x14]
lea eax, [edx*4 - 5]
mov edx, dword [esi + 4]
sub eax, ebx
mov dword [esp + 0x30], edx
cmp ecx, edi
cmovge eax, ebx
mov dword [esp + 0x18], eax
lea eax, [esi + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0xc], eax
test ecx, ecx
jne 0x10032617
mov eax, dword [esi + 8]
mov ecx, 0x20
inc eax
add edx, edx
sub ecx, eax
mov dword [esi + 8], eax
mov eax, dword [esp + 0xc]
mov dword [esi + 4], edx
shl edx, cl
bswap edx
mov eax, dword [eax]
mov word [eax], dx
mov ecx, dword [esi + 8]
mov eax, ecx
and eax, 0xf
shr ecx, 3
mov dword [esi + 8], eax
and ecx, 2
add ecx, dword [esi + 0x14]
lea eax, [esi + 0x14]
jmp 0x100326c1
mov esi, dword [esp + 0x48]
mov dword [esp + 0x18], eax
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0xc]
mov eax, dword [eax]
mov dword [esp + 0x10], eax
cmp ecx, 1
jne 0x1003266e
mov ecx, dword [esp + 0x14]
shl edx, cl
lea eax, [ecx + 1]
and eax, 6
or edx, eax
mov eax, dword [esi + 8]
add eax, ecx
mov dword [esi + 4], edx
mov dword [esi + 8], eax
mov ecx, 0x20
sub ecx, eax
mov eax, dword [esp + 0x10]
shl edx, cl
bswap edx
mov word [eax], dx
mov ecx, dword [esi + 8]
mov eax, ecx
and eax, 0xf
mov dword [esi + 8], eax
mov eax, dword [esp + 0xc]
jmp 0x100326b5
mov edx, dword [esp + 0x14]
inc ecx
mov eax, dword [esp + 0x30]
lea edx, [edx*4 - 5]
add edx, ecx
mov ecx, dword [esp + 0x14]
inc ecx
shl eax, cl
or edx, eax
mov eax, dword [esi + 8]
add eax, ecx
mov dword [esi + 4], edx
mov dword [esi + 8], eax
mov ecx, 0x20
sub ecx, eax
mov eax, dword [esp + 0x10]
shl edx, cl
bswap edx
mov word [eax], dx
mov ecx, dword [esi + 8]
mov eax, ecx
and eax, 0xf
mov dword [esi + 8], eax
mov eax, dword [esp + 0x18]
shr ecx, 3
and ecx, 2
add ecx, dword [eax]
mov eax, dword [esp + 0x2c]
and ecx, dword [esi + 0xc]
mov edx, dword [esp + 0x14]
mov dword [eax], ecx
xor ecx, ecx
lea eax, [edx*4 - 5]
mov edx, 1
cmp ebx, eax
mov eax, 4
cmove ecx, eax
mov eax, edx
sub eax, ecx
mov ecx, dword [esp + 0x24]
add ecx, eax
xor eax, eax
test ebx, ebx
mov ebx, 4
cmove eax, ebx
sub edx, eax
add edi, edx
lea eax, [ebx + 3]
cmp ecx, 0xfffffff8
jge 0x10032709
lea ecx, [ebx - 0xc]
jmp 0x1003270e
cmp ecx, eax
cmovg ecx, eax
mov ebx, dword [esp + 0x20]
mov dword [ebx + 0x22c], ecx
cmp edi, 0xfffffff8
jge 0x1003272d
mov edi, 0xfffffff8
mov dword [ebx + 0x228], edi
jmp 0x1003248e
cmp edi, eax
cmovg edi, eax
mov dword [ebx + 0x228], edi
jmp 0x1003248e
xor edx, edx
cmp eax, 2
jne 0x10032749
cmp edi, 1
je 0x1003274e
mov eax, 1
mov ebx, dword [ecx + 4]
add eax, edx
mov edx, dword [esp + 0x20]
mov edi, dword [ecx]
add edx, 0x18
mov dword [esp + 0x30], eax
lea eax, [ecx + 4]
mov dword [esp + 0x18], eax
xor eax, eax
test edi, edi
mov dword [esp + 0x28], ebx
mov dword [esp + 0x1c], edx
sete al
mov dword [esp + 0xc], edi
mov dword [esp + 0x38], eax
lea eax, [ebx + 1]
mov ebx, 1
mov dword [esp + 0x10], eax
cmp dword [esp + 0x2c], ebx
jne 0x10032794
xor ebx, ebx
jmp 0x100327a0
cmp dword [ecx + 8], 0
mov eax, 2
cmovg ebx, eax
cmp dword [esp + 0x34], 0
mov ecx, 0x20
mov eax, 0x14
mov dword [esp + 0x24], ebx
cmovg eax, ecx
mov edx, dword [eax + edx]
mov eax, 2
cmp eax, dword [esp + 0x10]
sbb ecx, ecx
xor eax, eax
and ecx, 8
test edi, edi
mov edi, 4
cmove eax, edi
add ecx, eax
mov eax, ebx
shl eax, 4
add ecx, eax
mov eax, dword [edx + 8]
mov eax, dword [eax + ecx]
add dword [edx + 0x1c], eax
mov eax, dword [edx + 0xc]
mov eax, dword [eax + ecx]
add dword [edx + 0x20], eax
mov eax, 2
cmp eax, dword [esp + 0x10]
mov eax, ebx
mov edx, dword [edx + 4]
sbb edi, edi
shl eax, 5
and edi, 0x10
add edi, eax
xor eax, eax
cmp dword [esp + 0xc], eax
sete al
xor ecx, ecx
lea eax, [eax*8 + 8]
add eax, edi
mov ebx, dword [eax + edx]
inc ebx
cmp dword [esp + 0xc], ecx
sete cl
lea ecx, [ecx*8 + 4]
add ecx, edi
mov edi, dword [esp + 0x28]
mov eax, edi
shr eax, 0x1f
mov ecx, dword [ecx + edx]
lea edx, [eax + ecx*2]
mov eax, dword [esi + 4]
mov ecx, ebx
shl eax, cl
mov ecx, 0x20
or edx, eax
mov eax, dword [esi + 8]
add eax, ebx
mov dword [esi + 4], edx
mov ebx, dword [esp + 0x24]
sub ecx, eax
mov dword [esi + 8], eax
mov eax, dword [esi + 0x14]
shl edx, cl
bswap edx
mov word [eax], dx
mov ecx, dword [esi + 8]
mov eax, ecx
shr eax, 3
and ecx, 0xf
and eax, 2
mov dword [esi + 8], ecx
add eax, dword [esi + 0x14]
and eax, dword [esi + 0xc]
mov ecx, dword [esp + 0x38]
mov dword [esi + 0x14], eax
and ecx, ebx
lea eax, [edi + 1]
mov dword [esp + 0x38], ecx
cmp eax, 2
jbe 0x100328af
mov eax, edi
mov edi, dword [esp + 0x1c]
cdq
xor eax, edx
sub eax, edx
mov edx, dword [edi + ecx*4 + 0x2c]
push esi
lea ecx, [eax - 1]
call fcn.100313c0
add esp, 4
jmp 0x100328b3
mov edi, dword [esp + 0x1c]
cmp dword [esp + 0xc], 0
je 0x100329db
mov eax, dword [edi]
mov edi, 0xf
sub edi, dword [esp + 0x30]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x44]
mov ecx, dword [eax]
mov dword [esp + 0x10], ecx
cmp edi, 5
jge 0x1003291b
mov eax, edi
xor edx, edx
sub eax, ecx
lea ecx, [edi - 4]
add ecx, dword [eax*4 + 0x101f1060]
cmp edi, dword [esp + 0x10]
mov eax, dword [esi + 4]
setne dl
shl eax, cl
or edx, eax
mov eax, dword [esi + 8]
add eax, ecx
mov dword [esi + 4], edx
mov ecx, 0x20
mov dword [esi + 8], eax
sub ecx, eax
mov eax, dword [esi + 0x14]
shl edx, cl
bswap edx
mov word [eax], dx
jmp 0x100329c1
mov edx, dword [edi*4 + 0x101f0dd4]
or edi, 0xffffffff
lea eax, [edx*8]
sub eax, edx
lea eax, [ecx + eax*2]
mov ecx, dword [eax*4 + 0x101f0cf4]
lea eax, [ecx + edx*4]
add eax, edx
mov edx, dword [esi + 4]
mov eax, dword [eax*4 + 0x101f0f14]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x28]
mov eax, dword [eax + 4]
lea eax, [eax + ecx*8]
mov ecx, dword [eax + 8]
shl edx, cl
or edx, dword [eax + 4]
mov eax, dword [esi + 8]
add eax, ecx
mov dword [esi + 4], edx
mov dword [esi + 8], eax
mov ecx, 0x20
sub ecx, eax
mov eax, dword [esi + 0x14]
shl edx, cl
mov ecx, dword [esp + 0xc]
shl edi, cl
bswap edx
mov word [eax], dx
not edi
mov edx, dword [esi + 8]
mov ebx, edx
mov eax, dword [esp + 0x10]
and edx, 0xf
inc eax
shr ebx, 3
and edi, eax
and ebx, 2
mov eax, dword [esi + 4]
add ebx, dword [esi + 0x14]
and ebx, dword [esi + 0xc]
shl eax, cl
or edi, eax
mov dword [esi + 0x14], ebx
lea eax, [edx + ecx]
mov dword [esi + 4], edi
mov ecx, 0x20
mov dword [esi + 8], eax
sub ecx, eax
shl edi, cl
bswap edi
mov word [ebx], di
mov ebx, dword [esp + 0x24]
mov ecx, dword [esi + 8]
mov eax, ecx
shr eax, 3
and eax, 2
add eax, dword [esi + 0x14]
and eax, dword [esi + 0xc]
and ecx, 0xf
mov dword [esi + 8], ecx
mov dword [esi + 0x14], eax
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
inc ecx
mov eax, dword [eax]
add eax, ecx
mov ecx, 1
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], ecx
cmp edx, ecx
jle 0x10032cd2
lea edi, [edx - 1]
mov dword [esp + 0x58], edi
nop dword [eax + eax]
cmp ebx, 2
jne 0x10032b32
mov ebx, dword [esp + 0x44]
mov edi, 0xf
sub edi, eax
mov ebx, dword [ebx + ecx*8]
mov dword [esp + 0x30], ebx
cmp edi, 5
jge 0x10032a74
cmp edi, 1
jle 0x10032b32
mov eax, edi
xor edx, edx
sub eax, ebx
mov ecx, dword [eax*4 + 0x101f1060]
mov eax, dword [esi + 4]
add ecx, 0xfffffffc
add ecx, edi
cmp edi, ebx
setne dl
add dword [esi + 8], ecx
shl eax, cl
mov ecx, 0x20
sub ecx, dword [esi + 8]
or edx, eax
mov eax, dword [esi + 0x14]
mov dword [esi + 4], edx
shl edx, cl
bswap edx
mov word [eax], dx
jmp 0x10032b14
mov edx, dword [edi*4 + 0x101f0dd4]
or edi, 0xffffffff
lea eax, [edx*8]
sub eax, edx
lea eax, [ebx + eax*2]
mov ecx, dword [eax*4 + 0x101f0cf4]
lea eax, [ecx + edx*4]
add eax, edx
mov edx, dword [esp + 0x1c]
mov eax, dword [eax*4 + 0x101f0f14]
mov dword [esp + 0x28], eax
mov eax, dword [edx]
mov edx, dword [esi + 4]
mov eax, dword [eax + 4]
lea eax, [eax + ecx*8]
mov ecx, dword [eax + 8]
shl edx, cl
or edx, dword [eax + 4]
add dword [esi + 8], ecx
mov ecx, 0x20
sub ecx, dword [esi + 8]
mov eax, dword [esi + 0x14]
mov dword [esi + 4], edx
shl edx, cl
mov ecx, dword [esp + 0x28]
shl edi, cl
bswap edx
mov word [eax], dx
not edi
mov edx, dword [esi + 8]
mov ebx, edx
mov eax, dword [esp + 0x30]
and edx, 0xf
inc eax
shr ebx, 3
and edi, eax
and ebx, 2
mov eax, dword [esi + 4]
add ebx, dword [esi + 0x14]
and ebx, dword [esi + 0xc]
shl eax, cl
or edi, eax
mov dword [esi + 0x14], ebx
lea eax, [edx + ecx]
mov dword [esi + 4], edi
mov ecx, 0x20
mov dword [esi + 8], eax
sub ecx, eax
shl edi, cl
bswap edi
mov word [ebx], di
mov ecx, dword [esi + 8]
mov eax, ecx
shr eax, 3
and eax, 2
add eax, dword [esi + 0x14]
and eax, dword [esi + 0xc]
and ecx, 0xf
mov dword [esi + 8], ecx
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x14], eax
mov ebx, dword [esp + 0x44]
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
inc edi
add edi, dword [ebx + ecx*8]
mov ebx, 1
mov dword [esp + 0x10], edi
lea eax, [eax + ecx*8]
cmp ecx, dword [esp + 0x58]
jne 0x10032b58
xor ebx, ebx
jmp 0x10032b63
cmp dword [eax + 4], 0
jle 0x10032b63
mov ebx, 2
mov eax, dword [eax]
mov edx, eax
shr edx, 0x1f
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], edx
lea ecx, [eax + 1]
cmp edi, 0xf
jge 0x10032c1b
cmp dword [esp + 0x34], 0
mov edx, 9
mov eax, 6
mov esi, 2
cmovg eax, edx
mov edi, ebx
add eax, dword [esp + 0x38]
cmp esi, ecx
mov edx, dword [esp + 0x1c]
mov edx, dword [edx + eax*4]
sbb eax, eax
and eax, 4
shl edi, 4
lea ecx, [eax + ebx*8]
mov eax, dword [edx + 8]
mov eax, dword [eax + ecx]
add dword [edx + 0x1c], eax
mov eax, dword [edx + 0xc]
mov eax, dword [eax + ecx]
add dword [edx + 0x20], eax
mov eax, dword [esp + 0x24]
mov ecx, dword [edx + 4]
inc eax
cmp esi, eax
sbb eax, eax
and eax, 8
add eax, 8
add eax, edi
mov edx, dword [eax + ecx]
mov eax, dword [esp + 0x24]
inc edx
inc eax
cmp esi, eax
mov esi, dword [esp + 0x48]
sbb eax, eax
and eax, 8
add eax, 4
add eax, edi
mov eax, dword [eax + ecx]
mov ecx, dword [esp + 0x28]
add dword [esi + 8], edx
lea edi, [ecx + eax*2]
mov eax, dword [esi + 4]
mov ecx, edx
shl eax, cl
mov ecx, 0x20
sub ecx, dword [esi + 8]
or edi, eax
mov eax, dword [esi + 0x14]
mov dword [esi + 4], edi
shl edi, cl
bswap edi
mov word [eax], di
jmp 0x10032c72
mov eax, 2
jne 0x10032c45
cmp eax, ecx
sbb eax, eax
and eax, 4
mov ecx, dword [eax + ebx*8 + 0x101f1010]
mov eax, dword [eax + ebx*8 + 0x101f1070]
inc ecx
lea edx, [edx + eax*2]
mov eax, dword [esi + 4]
shl eax, cl
add dword [esi + 8], ecx
jmp 0x10032c5b
cmp eax, ecx
sbb eax, eax
and eax, 2
add eax, edx
lea edx, [eax + ebx*4]
mov eax, dword [esi + 4]
shl eax, 2
add dword [esi + 8], 2
or edx, eax
mov ecx, 0x20
sub ecx, dword [esi + 8]
mov eax, dword [esi + 0x14]
mov dword [esi + 4], edx
shl edx, cl
bswap edx
mov word [eax], dx
mov ecx, dword [esi + 8]
mov eax, ecx
and dword [esp + 0x38], ebx
and eax, 0xf
shr ecx, 3
and ecx, 2
mov dword [esi + 8], eax
add ecx, dword [esi + 0x14]
and ecx, dword [esi + 0xc]
mov dword [esi + 0x14], ecx
mov ecx, dword [esp + 0x24]
lea eax, [ecx + 1]
cmp eax, 2
jbe 0x10032cbb
mov eax, ecx
mov ecx, dword [esp + 0x38]
cdq
xor eax, edx
sub eax, edx
mov edx, dword [esp + 0x1c]
push esi
mov edx, dword [edx + ecx*4 + 0x2c]
lea ecx, [eax - 1]
call fcn.100313c0
add esp, 4
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
inc ecx
mov dword [esp + 0xc], ecx
cmp ecx, dword [esp + 0x2c]
jl 0x10032a10
mov edi, dword [esp + 0x34]
mov edx, dword [esp + 0x3c]
test edx, edx
je 0x10032e84
mov eax, dword [esp + 0x40]
cmp eax, 1
je 0x10032cf4
cmp eax, 2
jne 0x10032e1f
test edi, edi
je 0x10032e1f
mov ebx, dword [esp + 0x6c]
lea ecx, [esp + 0xf0]
mov eax, ebx
neg eax
add ecx, eax
lea edi, [ebx + 4]
mov dword [esp + 0x58], ecx
lea eax, [esp + eax + 0x110]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x5c]
sub eax, ebx
xor ebx, ebx
cmp dword [esp + 0x40], 1
mov dword [esp + 0x18], eax
setne bl
lea ebx, [ebx*4 + 3]
nop word [eax + eax]
mov eax, dword [edi]
push edx
cdq
xor eax, edx
sub eax, edx
push eax
push esi
call dword [esp + 0x5c]
mov eax, dword [esp + 0x64]
add esp, 0xc
cmp dword [eax + edi], 0
jne 0x10032da0
mov edx, dword [edi]
test edx, edx
je 0x10032da0
mov eax, dword [esi + 4]
mov ecx, 0x20
add eax, eax
shr edx, 0x1f
or edx, eax
mov eax, dword [esi + 8]
inc eax
mov dword [esi + 4], edx
mov dword [esi + 8], eax
sub ecx, eax
mov eax, dword [esi + 0x14]
shl edx, cl
bswap edx
mov word [eax], dx
mov ecx, dword [esi + 8]
mov eax, ecx
shr eax, 3
and eax, 2
add eax, dword [esi + 0x14]
and eax, dword [esi + 0xc]
and ecx, 0xf
mov dword [esi + 0x14], eax
mov dword [esi + 8], ecx
mov eax, dword [esp + 0x18]
push dword [esp + 0x3c]
mov eax, dword [eax + edi]
cdq
xor eax, edx
sub eax, edx
push eax
push esi
call dword [esp + 0x5c]
mov eax, dword [esp + 0x34]
add esp, 0xc
cmp dword [eax + edi], 0
jne 0x10032e0d
mov eax, dword [esp + 0x18]
mov edx, dword [eax + edi]
test edx, edx
je 0x10032e0d
mov eax, dword [esi + 4]
mov ecx, 0x20
add eax, eax
shr edx, 0x1f
or edx, eax
mov eax, dword [esi + 8]
inc eax
mov dword [esi + 4], edx
mov dword [esi + 8], eax
sub ecx, eax
mov eax, dword [esi + 0x14]
shl edx, cl
bswap edx
mov word [eax], dx
mov ecx, dword [esi + 8]
mov eax, ecx
shr eax, 3
and eax, 2
add eax, dword [esi + 0x14]
and eax, dword [esi + 0xc]
and ecx, 0xf
mov dword [esi + 0x14], eax
mov dword [esi + 8], ecx
mov edx, dword [esp + 0x3c]
add edi, 4
sub ebx, 1
jne 0x10032d40
jmp 0x10032e80
mov eax, edi
mov ebx, 0xf
shl eax, 6
lea edi, [esp + 0x134]
add edi, eax
mov edx, dword [edi]
lea edi, [edi + 4]
mov eax, dword [esi + 4]
mov ecx, edx
and ecx, 1
sar edx, 1
add ecx, dword [esp + 0x3c]
add dword [esi + 8], ecx
shl eax, cl
mov ecx, 0x20
sub ecx, dword [esi + 8]
or edx, eax
mov eax, dword [esi + 0x14]
mov dword [esi + 4], edx
shl edx, cl
bswap edx
mov word [eax], dx
mov ecx, dword [esi + 8]
mov eax, ecx
shr eax, 3
and ecx, 0xf
and eax, 2
mov dword [esi + 8], ecx
add eax, dword [esi + 0x14]
and eax, dword [esi + 0xc]
mov dword [esi + 0x14], eax
sub ebx, 1
jne 0x10032e32
mov edi, dword [esp + 0x34]
mov eax, dword [esp + 0x20]
lea ebx, [esp + 0x64]
inc edi
mov dword [esp + 0x34], edi
mov edx, dword [eax + 0x20c]
mov dword [esp + 0x3c], edx
cmp edi, dword [esp + 0x14]
jl 0x100324d2
mov ebx, eax
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 0x10]
xor eax, ecx
test eax, 0x1000
je 0x10032eda
mov eax, dword [esi + 0x18]
push 0x1000
push ecx
push eax
mov eax, dword [eax + 0x20]
call eax
add esp, 0xc
test eax, eax
js 0x10032eda
mov eax, dword [esi + 0x10]
add eax, 0x1000
and eax, dword [esi + 0xc]
mov dword [esi + 0x10], eax
mov edx, dword [esp + 0x4c]
lea eax, [ebx + 0x200]
mov ecx, dword [esp + 0x40]
push eax
lea eax, [esp + 0x64]
push eax
call fcn.10039340
mov eax, dword [esp + 0x5c]
add esp, 8
cmp dword [eax + 0x85f0], 0
je 0x10032f0a
mov ecx, ebx
call fcn.10032f30
mov ecx, dword [esp + 0xd34]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.101a8b60
mov esp, ebp
pop ebp
ret