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

Disassembly:
sub esp, 0x98
push edi
mov edi, dword [esp + 0xac]
cmp edi, 0xa
jae 0x538190
mov eax, 0xffffffec
pop edi
add esp, 0x98
ret
mov eax, dword [esp + 0xa4]
cmp eax, 6
jb 0x538183
mov ecx, dword [esp + 0xb0]
mov edx, dword [esp + 0xa0]
add eax, edx
mov dword [esp + 0x90], eax
push ebx
lea eax, [ecx + 4]
mov dword [esp + 8], eax
mov eax, dword [esp + 0xac]
push ebp
push esi
mov esi, edi
movzx ebp, word [eax + 2]
movzx ebx, word [eax]
mov dword [esp + 0x14], ebp
movzx ebp, word [eax + 4]
add eax, 6
sub esi, ebp
mov dword [esp + 0x30], eax
sub esi, dword [esp + 0x14]
sub esi, ebx
mov dword [esp + 0x24], ebx
add ebx, eax
sub esi, 6
mov eax, dword [esp + 0x14]
add eax, ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0xb0]
add eax, 3
shr eax, 2
add edx, eax
mov dword [esp + 0xa0], edx
mov dword [esp + 0x2c], edx
lea ebx, [edx + eax]
add eax, ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x3c], ebx
movzx ebx, byte [ecx + 2]
mov dword [esp + 0xa4], eax
mov dword [esp + 0x98], eax
mov dword [esp + 0x20], ebx
cmp esi, edi
ja 0x5386c1
cmp eax, dword [esp + 0x9c]
ja 0x5386c1
push dword [esp + 0x24]
lea eax, [esp + 0x4c]
push dword [esp + 0x34]
push eax
call fcn.00536840
add esp, 0xc
cmp eax, 0xffffff88
ja 0x539458
push dword [esp + 0x14]
lea eax, [esp + 0x74]
push dword [esp + 0x3c]
push eax
call fcn.00536840
add esp, 0xc
cmp eax, 0xffffff88
ja 0x539458
mov edi, dword [esp + 0x18]
lea eax, [esp + 0x84]
push ebp
push edi
push eax
call fcn.00536840
add esp, 0xc
cmp eax, 0xffffff88
ja 0x539458
push esi
lea eax, [edi + ebp]
push eax
lea eax, [esp + 0x64]
push eax
call fcn.00536840
add esp, 0xc
cmp eax, 0xffffff88
ja 0x539458
mov edx, dword [esp + 0x9c]
mov eax, edx
mov ecx, dword [esp + 0xa4]
sub eax, ecx
cmp eax, 4
jb 0x538658
lea eax, [edx - 3]
cmp ecx, eax
sbb eax, eax
neg eax
test al, 1
je 0x538658
mov ecx, dword [esp + 0x70]
neg ebx
mov esi, dword [esp + 0x4c]
and ebx, 0x1f
mov eax, dword [esp + 0x48]
mov ebp, dword [esp + 0x74]
mov edi, dword [esp + 0x60]
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x84]
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x18], ebx
mov ebx, dword [esp + 0x88]
mov dword [esp + 0x28], esi
mov dword [esp + 0x44], ecx
nop
mov ecx, esi
mov edx, eax
and ecx, 0x1f
mov esi, dword [esp + 0xac]
shl edx, cl
mov ecx, dword [esp + 0x18]
shr edx, cl
mov ecx, dword [esp + 0x10]
movzx ecx, word [ecx + edx*4]
mov word [esi], cx
mov ecx, dword [esp + 0x10]
mov esi, dword [esp + 0x10]
movzx ecx, byte [ecx + edx*4 + 2]
add dword [esp + 0x28], ecx
movzx ecx, byte [esi + edx*4 + 3]
add dword [esp + 0xac], ecx
mov ecx, ebp
mov edx, dword [esp + 0x34]
and ecx, 0x1f
shl edx, cl
mov ecx, dword [esp + 0x18]
shr edx, cl
movzx ecx, word [esi + edx*4]
mov esi, dword [esp + 0x2c]
mov word [esi], cx
mov ecx, dword [esp + 0x10]
movzx ecx, byte [ecx + edx*4 + 2]
add ebp, ecx
mov ecx, dword [esp + 0x10]
movzx ecx, byte [ecx + edx*4 + 3]
add esi, ecx
mov edx, dword [esp + 0x40]
mov ecx, ebx
mov dword [esp + 0x2c], esi
mov esi, dword [esp + 0x3c]
and ecx, 0x1f
shl edx, cl
mov ecx, dword [esp + 0x18]
shr edx, cl
mov ecx, dword [esp + 0x10]
movzx ecx, word [ecx + edx*4]
mov word [esi], cx
mov ecx, dword [esp + 0x10]
movzx ecx, byte [ecx + edx*4 + 2]
add ebx, ecx
mov ecx, dword [esp + 0x10]
movzx ecx, byte [ecx + edx*4 + 3]
mov edx, dword [esp + 0x44]
add esi, ecx
mov ecx, edi
mov dword [esp + 0x3c], esi
mov esi, dword [esp + 0x98]
and ecx, 0x1f
shl edx, cl
mov ecx, dword [esp + 0x18]
shr edx, cl
mov ecx, dword [esp + 0x10]
movzx ecx, word [ecx + edx*4]
mov word [esi], cx
mov esi, dword [esp + 0x10]
movzx ecx, byte [esi + edx*4 + 2]
add edi, ecx
movzx ecx, byte [esi + edx*4 + 3]
add dword [esp + 0x98], ecx
mov edx, eax
mov ecx, dword [esp + 0x28]
and ecx, 0x1f
shl edx, cl
mov ecx, dword [esp + 0x18]
shr edx, cl
mov ecx, esi
mov esi, dword [esp + 0xac]
movzx ecx, word [ecx + edx*4]
mov word [esi], cx
mov ecx, dword [esp + 0x10]
mov esi, dword [esp + 0x28]
movzx ecx, byte [ecx + edx*4 + 2]
add esi, ecx
mov dword [esp + 0x28], esi
mov dword [esp + 0x4c], esi
mov esi, dword [esp + 0x10]
movzx ecx, byte [esi + edx*4 + 3]
add dword [esp + 0xac], ecx
mov ecx, ebp
mov edx, dword [esp + 0x34]
and ecx, 0x1f
shl edx, cl
mov ecx, dword [esp + 0x18]
shr edx, cl
movzx ecx, word [esi + edx*4]
mov esi, dword [esp + 0x2c]
mov word [esi], cx
mov ecx, dword [esp + 0x10]
movzx ecx, byte [ecx + edx*4 + 2]
add ebp, ecx
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x74], ebp
movzx ecx, byte [ecx + edx*4 + 3]
mov edx, dword [esp + 0x40]
add esi, ecx
mov ecx, ebx
mov dword [esp + 0x2c], esi
mov esi, dword [esp + 0x3c]
and ecx, 0x1f
shl edx, cl
mov ecx, dword [esp + 0x18]
shr edx, cl
mov ecx, dword [esp + 0x10]
movzx ecx, word [ecx + edx*4]
mov word [esi], cx
mov ecx, dword [esp + 0x10]
movzx ecx, byte [ecx + edx*4 + 2]
add ebx, ecx
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x88], ebx
movzx ecx, byte [ecx + edx*4 + 3]
mov edx, dword [esp + 0x44]
add esi, ecx
mov ecx, edi
mov dword [esp + 0x3c], esi
mov esi, dword [esp + 0x98]
and ecx, 0x1f
shl edx, cl
mov ecx, dword [esp + 0x18]
shr edx, cl
mov ecx, dword [esp + 0x10]
movzx ecx, word [ecx + edx*4]
mov word [esi], cx
mov esi, dword [esp + 0x10]
movzx ecx, byte [esi + edx*4 + 2]
add edi, ecx
movzx ecx, byte [esi + edx*4 + 3]
add dword [esp + 0x98], ecx
mov ecx, dword [esp + 0x50]
mov esi, dword [esp + 0x28]
mov dword [esp + 0x60], edi
cmp ecx, dword [esp + 0x58]
jae 0x538531
mov dword [esp + 0x24], 3
jmp 0x538555
mov eax, esi
mov dword [esp + 0x24], 0
shr eax, 3
sub ecx, eax
and esi, 7
mov dword [esp + 0x50], ecx
mov dword [esp + 0x28], esi
mov dword [esp + 0x4c], esi
mov eax, dword [ecx]
mov dword [esp + 0x48], eax
mov edx, dword [esp + 0x78]
cmp edx, dword [esp + 0x80]
jae 0x53856c
mov dword [esp + 0x38], 3
jmp 0x538590
mov ecx, ebp
mov dword [esp + 0x38], 0
shr ecx, 3
sub edx, ecx
and ebp, 7
mov dword [esp + 0x78], edx
mov dword [esp + 0x74], ebp
mov ecx, dword [edx]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x70], ecx
mov edx, dword [esp + 0x8c]
cmp edx, dword [esp + 0x94]
jae 0x5385aa
mov dword [esp + 0x30], 3
jmp 0x5385d7
mov ecx, ebx
mov dword [esp + 0x30], 0
shr ecx, 3
sub edx, ecx
and ebx, 7
mov dword [esp + 0x8c], edx
mov dword [esp + 0x88], ebx
mov ecx, dword [edx]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x84], ecx
mov edx, dword [esp + 0x64]
cmp edx, dword [esp + 0x6c]
jae 0x5385eb
mov dword [esp + 0x14], 3
jmp 0x53860f
mov ecx, edi
mov dword [esp + 0x14], 0
shr ecx, 3
sub edx, ecx
and edi, 7
mov dword [esp + 0x64], edx
mov dword [esp + 0x60], edi
mov ecx, dword [edx]
mov dword [esp + 0x44], ecx
mov dword [esp + 0x5c], ecx
mov ecx, dword [esp + 0x9c]
add ecx, 0xfffffffd
cmp dword [esp + 0x98], ecx
sbb edx, edx
xor ecx, ecx
neg edx
cmp dword [esp + 0x14], ecx
sete cl
and edx, ecx
xor ecx, ecx
cmp dword [esp + 0x30], ecx
sete cl
and edx, ecx
xor ecx, ecx
cmp dword [esp + 0x38], ecx
sete cl
and edx, ecx
xor ecx, ecx
cmp dword [esp + 0x24], ecx
sete cl
test ecx, edx
jne 0x538330
jmp 0x53868e
mov ecx, dword [esp + 0x70]
mov esi, dword [esp + 0x4c]
mov eax, dword [esp + 0x48]
mov ebp, dword [esp + 0x74]
mov ebx, dword [esp + 0x88]
mov edi, dword [esp + 0x60]
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x84]
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x28], esi
mov dword [esp + 0x44], ecx
mov edx, dword [esp + 0xac]
mov dword [esp + 0x18], edi
mov dword [esp + 0x38], ebx
mov dword [esp + 0x14], ebp
cmp edx, dword [esp + 0xa0]
ja 0x5386c1
mov ecx, dword [esp + 0x2c]
cmp ecx, dword [esp + 0x1c]
ja 0x5386c1
mov ecx, dword [esp + 0xa4]
cmp dword [esp + 0x3c], ecx
jbe 0x5386d1
pop esi
pop ebp
pop ebx
mov eax, 0xffffffec
pop edi
add esp, 0x98
ret
mov ecx, dword [esp + 0xa0]
sub ecx, edx
cmp ecx, 4
jb 0x538829
cmp esi, 0x20
jbe 0x5386f7
mov ecx, 0x57b7b0
mov dword [esp + 0x30], 3
jmp 0x53876f
mov ecx, dword [esp + 0x50]
cmp ecx, dword [esp + 0x58]
jb 0x538715
mov eax, esi
mov dword [esp + 0x30], 0
shr eax, 3
sub ecx, eax
and esi, 7
jmp 0x538761
cmp ecx, dword [esp + 0x54]
jne 0x538729
cmp esi, 0x20
sbb ecx, ecx
add ecx, 2
mov dword [esp + 0x30], ecx
jmp 0x538773
mov eax, esi
mov dword [esp + 0x30], 0
shr eax, 3
mov dword [esp + 0x24], eax
mov eax, ecx
sub eax, dword [esp + 0x24]
cmp eax, dword [esp + 0x54]
jae 0x538756
mov eax, ecx
mov dword [esp + 0x30], 1
sub eax, dword [esp + 0x54]
jmp 0x53875a
mov eax, dword [esp + 0x24]
sub ecx, eax
imul eax, eax, 0xfffffff8
add esi, eax
mov eax, dword [ecx]
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x50], ecx
mov ecx, dword [esp + 0xa0]
mov ebp, dword [esp + 0x14]
add ecx, 0xfffffffd
cmp edx, ecx
sbb edx, edx
xor ecx, ecx
neg edx
cmp dword [esp + 0x30], ecx
sete cl
test ecx, edx
je 0x53889b
mov ecx, dword [esp + 0x28]
mov edx, eax
mov esi, dword [esp + 0x20]
and ecx, 0x1f
mov edi, dword [esp + 0xac]
neg esi
shl edx, cl
and esi, 0x1f
mov ecx, esi
shr edx, cl
mov ecx, dword [esp + 0x10]
movzx ecx, word [ecx + edx*4]
mov word [edi], cx
mov edi, dword [esp + 0x10]
movzx ecx, byte [edi + edx*4 + 2]
add dword [esp + 0x28], ecx
movzx ecx, byte [edi + edx*4 + 3]
mov edx, eax
add dword [esp + 0xac], ecx
mov ecx, dword [esp + 0x28]
and ecx, 0x1f
shl edx, cl
mov ecx, esi
mov esi, dword [esp + 0xac]
shr edx, cl
movzx ecx, word [edi + edx*4]
mov word [esi], cx
movzx ecx, byte [edi + edx*4 + 2]
mov esi, dword [esp + 0x28]
add esi, ecx
movzx ecx, byte [edi + edx*4 + 3]
mov edx, dword [esp + 0xac]
mov edi, dword [esp + 0x18]
add edx, ecx
mov dword [esp + 0x28], esi
mov dword [esp + 0x4c], esi
mov dword [esp + 0xac], edx
jmp 0x5386e3
cmp esi, 0x20
jbe 0x538839
mov ecx, 0x57b7b0
mov dword [esp + 0x50], ecx
jmp 0x5388a2
mov ecx, dword [esp + 0x50]
cmp ecx, dword [esp + 0x58]
jb 0x53885d
mov eax, esi
shr eax, 3
sub ecx, eax
and esi, 7
mov dword [esp + 0x50], ecx
mov dword [esp + 0x4c], esi
mov eax, dword [ecx]
mov dword [esp + 0x48], eax
jmp 0x5388a2
cmp ecx, dword [esp + 0x54]
je 0x5388a2
mov eax, esi
shr eax, 3
mov dword [esp + 0x24], eax
mov eax, ecx
sub eax, dword [esp + 0x24]
cmp eax, dword [esp + 0x54]
jae 0x538880
mov eax, ecx
sub eax, dword [esp + 0x54]
jmp 0x538884
mov eax, dword [esp + 0x24]
sub ecx, eax
imul eax, eax, 0xfffffff8
mov dword [esp + 0x50], ecx
add esi, eax
mov eax, dword [ecx]
mov dword [esp + 0x4c], esi
mov dword [esp + 0x48], eax
jmp 0x5388a2
mov edx, dword [esp + 0xac]
mov ecx, dword [esp + 0xa0]
sub ecx, edx
cmp ecx, 2
jb 0x538a08
mov ecx, dword [esp + 0xa0]
mov edi, dword [esp + 0x50]
add ecx, 0xfffffffe
mov ebp, dword [esp + 0x10]
mov dword [esp + 0x30], ecx
nop word [eax + eax]
cmp esi, 0x20
jbe 0x5388e1
mov edi, 0x57b7b0
mov ebx, 3
jmp 0x538936
cmp edi, dword [esp + 0x58]
jb 0x5388f5
mov eax, esi
and esi, 7
shr eax, 3
sub edi, eax
xor ebx, ebx
jmp 0x53892c
cmp edi, dword [esp + 0x54]
jne 0x538905
cmp esi, 0x20
sbb ebx, ebx
add ebx, 2
jmp 0x53893a
mov ecx, esi
mov eax, edi
shr ecx, 3
xor ebx, ebx
sub eax, ecx
cmp eax, dword [esp + 0x54]
jae 0x538921
mov ecx, edi
mov ebx, 1
sub ecx, dword [esp + 0x54]
imul eax, ecx, 0xfffffff8
sub edi, ecx
mov ecx, dword [esp + 0x30]
add esi, eax
mov eax, dword [edi]
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], edi
cmp ecx, edx
sbb edx, edx
xor ecx, ecx
inc edx
test ebx, ebx
sete cl
test ecx, edx
je 0x538991
mov ebx, dword [esp + 0xac]
mov ecx, esi
and ecx, 0x1f
mov edx, eax
shl edx, cl
mov ecx, dword [esp + 0x20]
neg ecx
and ecx, 0x1f
shr edx, cl
mov cx, word [ebp + edx*4]
mov word [ebx], cx
movzx ecx, byte [ebp + edx*4 + 2]
add esi, ecx
movzx ecx, byte [ebp + edx*4 + 3]
mov edx, ebx
mov dword [esp + 0x4c], esi
add edx, ecx
mov ecx, dword [esp + 0x30]
mov dword [esp + 0xac], edx
jmp 0x5388d0
mov edx, dword [esp + 0xac]
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x38]
mov ebp, dword [esp + 0x14]
cmp edx, dword [esp + 0x30]
ja 0x538a08
mov ebp, dword [esp + 0x20]
mov edi, dword [esp + 0x10]
neg ebp
and ebp, 0x1f
nop word [eax + eax]
mov ebx, dword [esp + 0xac]
mov ecx, esi
and ecx, 0x1f
mov edx, eax
shl edx, cl
mov ecx, ebp
shr edx, cl
mov cx, word [edi + edx*4]
mov word [ebx], cx
movzx ecx, byte [edi + edx*4 + 2]
add esi, ecx
movzx ecx, byte [edi + edx*4 + 3]
mov edx, ebx
add edx, ecx
mov dword [esp + 0xac], edx
cmp edx, dword [esp + 0x30]
jbe 0x5389c0
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x38]
mov ebp, dword [esp + 0x14]
mov dword [esp + 0x4c], esi
cmp edx, dword [esp + 0xa0]
jae 0x538a56
mov ecx, esi
and ecx, 0x1f
shl eax, cl
mov ecx, dword [esp + 0x20]
neg ecx
and ecx, 0x1f
shr eax, cl
mov ecx, dword [esp + 0x10]
lea ecx, [ecx + eax*4]
mov al, byte [ecx]
mov byte [edx], al
cmp byte [ecx + 3], 1
jne 0x538a3c
movzx eax, byte [ecx + 2]
add esi, eax
jmp 0x538a52
cmp esi, 0x20
jae 0x538a56
movzx eax, byte [ecx + 2]
add esi, eax
mov eax, 0x20
cmp esi, 0x20
cmova esi, eax
mov dword [esp + 0x4c], esi
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x2c]
sub eax, edx
cmp eax, 4
mov eax, dword [esp + 0x7c]
jb 0x538b9c
mov edx, dword [esp + 0x34]
mov esi, dword [esp + 0x2c]
cmp ebp, 0x20
jbe 0x538a8d
mov ecx, 0x57b7b0
mov dword [esp + 0x14], 3
mov dword [esp + 0x78], ecx
jmp 0x538b02
mov edx, dword [esp + 0x78]
cmp edx, dword [esp + 0x80]
jb 0x538aae
mov eax, ebp
mov dword [esp + 0x14], 0
shr eax, 3
sub edx, eax
and ebp, 7
jmp 0x538af0
cmp edx, eax
jne 0x538ac4
mov edx, dword [esp + 0x34]
cmp ebp, 0x20
sbb eax, eax
add eax, 2
mov dword [esp + 0x14], eax
jmp 0x538b02
mov ecx, ebp
mov dword [esp + 0x14], 0
shr ecx, 3
mov eax, edx
sub eax, ecx
cmp eax, dword [esp + 0x7c]
jae 0x538ae9
mov ecx, edx
mov dword [esp + 0x14], 1
sub ecx, dword [esp + 0x7c]
imul eax, ecx, 0xfffffff8
sub edx, ecx
add ebp, eax
mov dword [esp + 0x78], edx
mov edx, dword [edx]
mov dword [esp + 0x70], edx
mov dword [esp + 0x34], edx
mov dword [esp + 0x74], ebp
mov eax, dword [esp + 0x1c]
add eax, 0xfffffffd
cmp esi, eax
sbb ecx, ecx
xor eax, eax
neg ecx
cmp dword [esp + 0x14], eax
sete al
test eax, ecx
je 0x538c0d
mov esi, dword [esp + 0x20]
mov ecx, ebp
mov eax, dword [esp + 0x10]
and ecx, 0x1f
shl edx, cl
neg esi
and esi, 0x1f
mov ecx, esi
shr edx, cl
mov ecx, dword [esp + 0x2c]
movzx eax, word [eax + edx*4]
mov word [ecx], ax
mov eax, dword [esp + 0x10]
movzx eax, byte [eax + edx*4 + 2]
add ebp, eax
mov eax, dword [esp + 0x10]
movzx eax, byte [eax + edx*4 + 3]
mov edx, dword [esp + 0x34]
add ecx, eax
mov dword [esp + 0x2c], ecx
mov eax, edx
mov ecx, ebp
and ecx, 0x1f
shl eax, cl
mov ecx, esi
mov esi, dword [esp + 0x2c]
shr eax, cl
mov ecx, dword [esp + 0x10]
lea ecx, [ecx + eax*4]
movzx eax, word [ecx]
mov word [esi], ax
movzx eax, byte [ecx + 2]
add ebp, eax
movzx eax, byte [ecx + 3]
add esi, eax
mov dword [esp + 0x74], ebp
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x2c], esi
jmp 0x538a75
cmp ebp, 0x20
jbe 0x538bac
mov ecx, 0x57b7b0
mov dword [esp + 0x78], ecx
jmp 0x538c11
mov ecx, dword [esp + 0x78]
cmp ecx, dword [esp + 0x80]
jb 0x538bd3
mov eax, ebp
shr eax, 3
sub ecx, eax
and ebp, 7
mov dword [esp + 0x78], ecx
mov dword [esp + 0x74], ebp
mov esi, dword [ecx]
mov dword [esp + 0x70], esi
jmp 0x538c15
cmp ecx, eax
je 0x538c11
mov esi, ebp
mov eax, ecx
shr esi, 3
sub eax, esi
mov dword [esp + 0x24], esi
mov esi, dword [esp + 0x7c]
cmp eax, esi
jae 0x538bf2
mov eax, ecx
sub eax, esi
jmp 0x538bf6
mov eax, dword [esp + 0x24]
sub ecx, eax
imul eax, eax, 0xfffffff8
mov dword [esp + 0x78], ecx
mov esi, dword [ecx]
add ebp, eax
mov dword [esp + 0x70], esi
mov dword [esp + 0x74], ebp
jmp 0x538c15
mov edx, dword [esp + 0x2c]
mov esi, dword [esp + 0x34]
mov ecx, dword [esp + 0x1c]
mov eax, ecx
sub eax, edx
cmp eax, 2
jb 0x538d47
mov edi, dword [esp + 0x78]
add ecx, 0xfffffffe
mov dword [esp + 0x14], ecx
cmp ebp, 0x20
jbe 0x538c42
mov edi, 0x57b7b0
mov ebx, 3
jmp 0x538c9a
cmp edi, dword [esp + 0x80]
jb 0x538c59
mov eax, ebp
and ebp, 7
shr eax, 3
sub edi, eax
xor ebx, ebx
jmp 0x538c90
cmp edi, dword [esp + 0x7c]
jne 0x538c69
cmp ebp, 0x20
sbb ebx, ebx
add ebx, 2
jmp 0x538c9e
mov esi, dword [esp + 0x7c]
mov ecx, ebp
shr ecx, 3
mov eax, edi
sub eax, ecx
xor ebx, ebx
cmp eax, esi
jae 0x538c85
mov ecx, edi
mov ebx, 1
sub ecx, esi
imul eax, ecx, 0xfffffff8
sub edi, ecx
mov ecx, dword [esp + 0x14]
add ebp, eax
mov esi, dword [edi]
mov dword [esp + 0x70], esi
mov dword [esp + 0x74], ebp
mov dword [esp + 0x78], edi
cmp ecx, edx
sbb ecx, ecx
xor eax, eax
inc ecx
test ebx, ebx
sete al
test eax, ecx
je 0x538cf6
mov ebx, dword [esp + 0x10]
mov ecx, ebp
and ecx, 0x1f
mov edx, esi
shl edx, cl
mov ecx, dword [esp + 0x20]
neg ecx
and ecx, 0x1f
shr edx, cl
mov ecx, dword [esp + 0x2c]
mov ax, word [ebx + edx*4]
mov word [ecx], ax
mov ecx, ebx
movzx eax, byte [ecx + edx*4 + 2]
add ebp, eax
movzx eax, byte [ecx + edx*4 + 3]
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x14]
add edx, eax
mov dword [esp + 0x74], ebp
mov dword [esp + 0x2c], edx
jmp 0x538c31
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x38]
cmp edx, dword [esp + 0x14]
ja 0x538d47
mov eax, dword [esp + 0x20]
mov edi, dword [esp + 0x10]
neg eax
and eax, 0x1f
mov ebx, eax
mov ecx, ebp
mov eax, esi
and ecx, 0x1f
shl eax, cl
mov ecx, ebx
shr eax, cl
lea ecx, [edi + eax*4]
mov ax, word [ecx]
mov word [edx], ax
movzx eax, byte [ecx + 2]
add ebp, eax
movzx eax, byte [ecx + 3]
add edx, eax
cmp edx, dword [esp + 0x14]
jbe 0x538d13
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x38]
mov dword [esp + 0x74], ebp
cmp edx, dword [esp + 0x1c]
jae 0x538d92
mov eax, dword [esp + 0x10]
mov ecx, ebp
and ecx, 0x1f
shl esi, cl
mov ecx, dword [esp + 0x20]
neg ecx
and ecx, 0x1f
shr esi, cl
lea ecx, [eax + esi*4]
mov al, byte [ecx]
mov byte [edx], al
cmp byte [ecx + 3], 1
jne 0x538d78
movzx eax, byte [ecx + 2]
add ebp, eax
jmp 0x538d8e
cmp ebp, 0x20
jae 0x538d92
movzx eax, byte [ecx + 2]
add ebp, eax
mov eax, 0x20
cmp ebp, 0x20
cmova ebp, eax
mov dword [esp + 0x74], ebp
mov eax, dword [esp + 0xa4]
mov esi, dword [esp + 0x3c]
sub eax, esi
mov edx, dword [esp + 0x90]
cmp eax, 4
jb 0x538ef4
mov ebp, dword [esp + 0x40]
cmp ebx, 0x20
jbe 0x538dce
mov ecx, 0x57b7b0
mov edx, 3
mov dword [esp + 0x8c], ecx
jmp 0x538e5c
mov edx, dword [esp + 0x8c]
cmp edx, dword [esp + 0x94]
jb 0x538df5
mov eax, ebx
and ebx, 7
shr eax, 3
sub edx, eax
mov dword [esp + 0x8c], edx
mov ebp, dword [edx]
xor edx, edx
jmp 0x538e4a
cmp edx, dword [esp + 0x90]
jne 0x538e0e
cmp ebx, 0x20
sbb eax, eax
add eax, 2
mov dword [esp + 0x1c], eax
mov edx, eax
jmp 0x538e5c
mov ebp, dword [esp + 0x90]
mov ecx, ebx
shr ecx, 3
mov eax, edx
sub eax, ecx
mov dword [esp + 0x1c], 0
cmp eax, ebp
jae 0x538e36
mov ecx, edx
mov dword [esp + 0x1c], 1
sub ecx, ebp
sub edx, ecx
imul eax, ecx, 0xfffffff8
mov dword [esp + 0x8c], edx
mov ebp, dword [edx]
mov edx, dword [esp + 0x1c]
add ebx, eax
mov dword [esp + 0x84], ebp
mov dword [esp + 0x40], ebp
mov dword [esp + 0x88], ebx
mov eax, dword [esp + 0xa4]
add eax, 0xfffffffd
cmp esi, eax
sbb ecx, ecx
xor eax, eax
neg ecx
test edx, edx
sete al
test eax, ecx
je 0x538f6f
mov esi, dword [esp + 0x20]
mov ecx, ebx
mov eax, dword [esp + 0x10]
and ecx, 0x1f
neg esi
mov edx, ebp
shl edx, cl
and esi, 0x1f
mov ecx, esi
shr edx, cl
mov ecx, dword [esp + 0x3c]
movzx eax, word [eax + edx*4]
mov word [ecx], ax
mov eax, dword [esp + 0x10]
movzx eax, byte [eax + edx*4 + 2]
add ebx, eax
mov eax, dword [esp + 0x10]
movzx eax, byte [eax + edx*4 + 3]
add ecx, eax
mov eax, ebp
mov dword [esp + 0x3c], ecx
mov ecx, ebx
and ecx, 0x1f
shl eax, cl
mov ecx, esi
mov esi, dword [esp + 0x3c]
shr eax, cl
mov ecx, dword [esp + 0x10]
lea ecx, [ecx + eax*4]
movzx eax, word [ecx]
mov word [esi], ax
movzx eax, byte [ecx + 2]
add ebx, eax
movzx eax, byte [ecx + 3]
add esi, eax
mov dword [esp + 0x88], ebx
mov dword [esp + 0x3c], esi
jmp 0x538db3
cmp ebx, 0x20
jbe 0x538f07
mov ecx, 0x57b7b0
mov dword [esp + 0x8c], ecx
jmp 0x538f76
mov ecx, dword [esp + 0x8c]
cmp ecx, dword [esp + 0x94]
jb 0x538f3a
mov eax, ebx
shr eax, 3
sub ecx, eax
and ebx, 7
mov dword [esp + 0x8c], ecx
mov dword [esp + 0x88], ebx
mov ebp, dword [ecx]
mov dword [esp + 0x84], ebp
jmp 0x538f7a
cmp ecx, edx
je 0x538f76
mov ebp, ebx
mov eax, ecx
shr ebp, 3
sub eax, ebp
cmp eax, edx
jae 0x538f4f
mov ebp, ecx
sub ebp, edx
imul eax, ebp, 0xfffffff8
sub ecx, ebp
mov dword [esp + 0x8c], ecx
mov ebp, dword [ecx]
add ebx, eax
mov dword [esp + 0x84], ebp
mov dword [esp + 0x88], ebx
jmp 0x538f7a
mov edx, dword [esp + 0x90]
mov ebp, dword [esp + 0x40]
mov ecx, dword [esp + 0xa4]
mov eax, ecx
sub eax, esi
cmp eax, 2
jb 0x5390b9
mov edi, dword [esp + 0x8c]
add ecx, 0xfffffffe
mov dword [esp + 0x1c], ecx
nop dword [eax]
cmp ebx, 0x20
jbe 0x538fb1
mov edi, 0x57b7b0
mov edx, 3
jmp 0x539010
cmp edi, dword [esp + 0x94]
jb 0x538fc8
mov eax, ebx
and ebx, 7
shr eax, 3
sub edi, eax
xor edx, edx
jmp 0x539000
cmp edi, edx
jne 0x538fd6
cmp ebx, 0x20
sbb edx, edx
add edx, 2
jmp 0x539017
mov ebp, dword [esp + 0x90]
mov ecx, ebx
shr ecx, 3
mov eax, edi
sub eax, ecx
xor edx, edx
cmp eax, ebp
jae 0x538ff5
mov ecx, edi
mov edx, 1
sub ecx, ebp
imul eax, ecx, 0xfffffff8
sub edi, ecx
mov ecx, dword [esp + 0x1c]
add ebx, eax
mov ebp, dword [edi]
mov dword [esp + 0x84], ebp
mov dword [esp + 0x88], ebx
mov dword [esp + 0x8c], edi
cmp ecx, esi
sbb ecx, ecx
xor eax, eax
inc ecx
test edx, edx
sete al
test eax, ecx
je 0x53906b
mov ecx, ebx
mov edx, ebp
and ecx, 0x1f
shl edx, cl
mov ecx, dword [esp + 0x20]
neg ecx
and ecx, 0x1f
shr edx, cl
mov ecx, dword [esp + 0x10]
mov ax, word [ecx + edx*4]
mov word [esi], ax
movzx eax, byte [ecx + edx*4 + 2]
add ebx, eax
movzx eax, byte [ecx + edx*4 + 3]
mov edx, dword [esp + 0x90]
add esi, eax
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x88], ebx
jmp 0x538fa0
mov edi, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
cmp esi, dword [esp + 0x1c]
ja 0x5390bd
mov eax, dword [esp + 0x20]
neg eax
and eax, 0x1f
mov edi, eax
mov ecx, ebx
mov eax, ebp
and ecx, 0x1f
shl eax, cl
mov ecx, edi
shr eax, cl
lea ecx, [edx + eax*4]
mov ax, word [ecx]
mov word [esi], ax
movzx eax, byte [ecx + 2]
add ebx, eax
movzx eax, byte [ecx + 3]
add esi, eax
cmp esi, dword [esp + 0x1c]
jbe 0x539084
mov edi, dword [esp + 0x18]
mov dword [esp + 0x88], ebx
jmp 0x5390bd
mov edx, dword [esp + 0x10]
cmp esi, dword [esp + 0xa4]
jae 0x53910b
mov ecx, ebx
and ecx, 0x1f
shl ebp, cl
mov ecx, dword [esp + 0x20]
neg ecx
and ecx, 0x1f
shr ebp, cl
mov al, byte [edx + ebp*4]
mov byte [esi], al
cmp byte [edx + ebp*4 + 3], 1
jne 0x5390ed
movzx eax, byte [edx + ebp*4 + 2]
add ebx, eax
jmp 0x539104
cmp ebx, 0x20
jae 0x53910b
movzx eax, byte [edx + ebp*4 + 2]
add ebx, eax
mov eax, 0x20
cmp ebx, 0x20
cmova ebx, eax
mov dword [esp + 0x88], ebx
mov eax, dword [esp + 0x9c]
mov ebp, dword [esp + 0x98]
sub eax, ebp
mov ecx, dword [esp + 0x68]
cmp eax, 4
jb 0x539223
mov ebx, dword [esp + 0x44]
nop dword [eax]
cmp edi, 0x20
jbe 0x539145
mov eax, 0x57b7b0
mov esi, 3
mov dword [esp + 0x64], eax
jmp 0x5391a0
mov edx, dword [esp + 0x64]
cmp edx, dword [esp + 0x6c]
jb 0x53915d
mov eax, edi
and edi, 7
shr eax, 3
sub edx, eax
xor esi, esi
jmp 0x53918e
cmp edx, ecx
jne 0x53916b
cmp edi, 0x20
sbb esi, esi
add esi, 2
jmp 0x5391a0
mov ebx, dword [esp + 0x68]
mov ecx, edi
shr ecx, 3
mov eax, edx
sub eax, ecx
xor esi, esi
cmp eax, ebx
jae 0x539187
mov ecx, edx
mov esi, 1
sub ecx, ebx
imul eax, ecx, 0xfffffff8
sub edx, ecx
add edi, eax
mov ebx, dword [edx]
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x60], edi
mov dword [esp + 0x64], edx
mov eax, dword [esp + 0x9c]
add eax, 0xfffffffd
cmp ebp, eax
sbb ecx, ecx
xor eax, eax
neg ecx
test esi, esi
sete al
test eax, ecx
je 0x539283
mov esi, dword [esp + 0x20]
mov ecx, edi
and ecx, 0x1f
neg esi
and esi, 0x1f
mov edx, ebx
shl edx, cl
mov ecx, esi
shr edx, cl
mov ecx, dword [esp + 0x10]
movzx eax, word [ecx + edx*4]
mov word [ebp], ax
movzx eax, byte [ecx + edx*4 + 2]
add edi, eax
movzx eax, byte [ecx + edx*4 + 3]
add ebp, eax
mov ecx, edi
and ecx, 0x1f
mov eax, ebx
shl eax, cl
mov ecx, esi
shr eax, cl
mov ecx, dword [esp + 0x10]
lea ecx, [ecx + eax*4]
movzx eax, word [ecx]
mov word [ebp], ax
movzx eax, byte [ecx + 2]
add edi, eax
movzx eax, byte [ecx + 3]
mov ecx, dword [esp + 0x68]
add ebp, eax
mov dword [esp + 0x60], edi
jmp 0x539130
cmp edi, 0x20
jbe 0x539233
mov edx, 0x57b7b0
mov dword [esp + 0x64], edx
jmp 0x53928b
mov edx, dword [esp + 0x64]
cmp edx, dword [esp + 0x6c]
jb 0x539257
mov eax, edi
shr eax, 3
sub edx, eax
and edi, 7
mov dword [esp + 0x64], edx
mov dword [esp + 0x60], edi
mov ebx, dword [edx]
mov dword [esp + 0x5c], ebx
jmp 0x53928f
cmp edx, ecx
je 0x53928b
mov esi, edi
mov eax, edx
shr esi, 3
sub eax, esi
cmp eax, ecx
jae 0x53926c
mov esi, edx
sub esi, ecx
sub edx, esi
imul eax, esi, 0xfffffff8
mov dword [esp + 0x64], edx
mov ebx, dword [edx]
add edi, eax
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], edi
jmp 0x53928f
mov edx, dword [esp + 0x64]
mov ecx, dword [esp + 0x68]
mov ebx, dword [esp + 0x44]
mov esi, dword [esp + 0x9c]
mov eax, esi
sub eax, ebp
cmp eax, 2
jb 0x5393c2
lea eax, [esi - 2]
mov esi, dword [esp + 0x10]
mov dword [esp + 0x14], eax
nop
cmp edi, 0x20
jbe 0x5392c5
mov eax, 0x57b7b0
mov edx, 3
mov dword [esp + 0x64], eax
jmp 0x539331
cmp edx, dword [esp + 0x6c]
jb 0x5392df
mov eax, edi
and edi, 7
shr eax, 3
sub edx, eax
mov dword [esp + 0x64], edx
mov ebx, dword [edx]
xor edx, edx
jmp 0x539329
cmp edx, ecx
jne 0x5392f3
cmp edi, 0x20
sbb eax, eax
add eax, 2
mov dword [esp + 0x1c], eax
mov edx, eax
jmp 0x539331
mov ebx, dword [esp + 0x68]
mov ecx, edi
shr ecx, 3
mov eax, edx
sub eax, ecx
mov dword [esp + 0x1c], 0
cmp eax, ebx
jae 0x539318
mov ecx, edx
mov dword [esp + 0x1c], 1
sub ecx, ebx
sub edx, ecx
imul eax, ecx, 0xfffffff8
mov dword [esp + 0x64], edx
mov ebx, dword [edx]
mov edx, dword [esp + 0x1c]
add edi, eax
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], edi
cmp dword [esp + 0x14], ebp
sbb ecx, ecx
xor eax, eax
inc ecx
test edx, edx
sete al
test eax, ecx
je 0x53937e
mov ecx, edi
mov edx, ebx
and ecx, 0x1f
shl edx, cl
mov ecx, dword [esp + 0x20]
neg ecx
and ecx, 0x1f
shr edx, cl
mov ecx, dword [esp + 0x68]
mov ax, word [esi + edx*4]
mov word [ebp], ax
movzx eax, byte [esi + edx*4 + 2]
add edi, eax
movzx eax, byte [esi + edx*4 + 3]
mov edx, dword [esp + 0x64]
add ebp, eax
mov dword [esp + 0x60], edi
jmp 0x5392b0
cmp ebp, dword [esp + 0x14]
ja 0x5393c2
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x14]
neg eax
and eax, 0x1f
mov dword [esp + 0x24], eax
mov ecx, edi
mov eax, ebx
and ecx, 0x1f
shl eax, cl
mov ecx, dword [esp + 0x24]
shr eax, cl
lea ecx, [esi + eax*4]
mov ax, word [ecx]
mov word [ebp], ax
movzx eax, byte [ecx + 2]
add edi, eax
movzx eax, byte [ecx + 3]
add ebp, eax
cmp ebp, edx
jbe 0x539395
mov dword [esp + 0x60], edi
mov edx, dword [esp + 0x20]
cmp ebp, dword [esp + 0x9c]
jae 0x539413
mov eax, dword [esp + 0x10]
mov ecx, edi
and ecx, 0x1f
neg edx
shl ebx, cl
and edx, 0x1f
mov ecx, edx
shr ebx, cl
lea ecx, [eax + ebx*4]
mov al, byte [ecx]
mov byte [ebp], al
cmp byte [ecx + 3], 1
jne 0x5393f9
movzx eax, byte [ecx + 2]
add edi, eax
jmp 0x53940f
cmp edi, 0x20
jae 0x539413
movzx eax, byte [ecx + 2]
add edi, eax
mov eax, 0x20
cmp edi, 0x20
cmova edi, eax
mov dword [esp + 0x60], edi
lea eax, [esp + 0x5c]
push eax
call fcn.0053ac50
mov edx, eax
lea eax, [esp + 0x88]
push eax
call fcn.0053ac50
and edx, eax
lea eax, [esp + 0x78]
push eax
call fcn.0053ac50
and edx, eax
lea eax, [esp + 0x54]
push eax
call fcn.0053ac50
add esp, 0x10
mov ecx, 0xffffffec
test eax, edx
mov eax, dword [esp + 0xb0]
cmove eax, ecx
pop esi
pop ebp
pop ebx
pop edi
add esp, 0x98
ret