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

Disassembly:
sub esp, 0x98
push edi
mov edi, dword [esp + 0xac]
cmp edi, 0xa
jae 0x5382e0
mov eax, 0xffffffec
pop edi
add esp, 0x98
ret
mov eax, dword [esp + 0xa4]
cmp eax, 6
jb 0x5382d3
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 0x538811
cmp eax, dword [esp + 0x9c]
ja 0x538811
push dword [esp + 0x24]
lea eax, [esp + 0x4c]
push dword [esp + 0x34]
push eax
call fcn.00536990
add esp, 0xc
cmp eax, 0xffffff88
ja 0x5395a8
push dword [esp + 0x14]
lea eax, [esp + 0x74]
push dword [esp + 0x3c]
push eax
call fcn.00536990
add esp, 0xc
cmp eax, 0xffffff88
ja 0x5395a8
mov edi, dword [esp + 0x18]
lea eax, [esp + 0x84]
push ebp
push edi
push eax
call fcn.00536990
add esp, 0xc
cmp eax, 0xffffff88
ja 0x5395a8
push esi
lea eax, [edi + ebp]
push eax
lea eax, [esp + 0x64]
push eax
call fcn.00536990
add esp, 0xc
cmp eax, 0xffffff88
ja 0x5395a8
mov edx, dword [esp + 0x9c]
mov eax, edx
mov ecx, dword [esp + 0xa4]
sub eax, ecx
cmp eax, 4
jb 0x5387a8
lea eax, [edx - 3]
cmp ecx, eax
sbb eax, eax
neg eax
test al, 1
je 0x5387a8
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 0x538681
mov dword [esp + 0x24], 3
jmp 0x5386a5
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 0x5386bc
mov dword [esp + 0x38], 3
jmp 0x5386e0
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 0x5386fa
mov dword [esp + 0x30], 3
jmp 0x538727
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 0x53873b
mov dword [esp + 0x14], 3
jmp 0x53875f
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 0x538480
jmp 0x5387de
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 0x538811
mov ecx, dword [esp + 0x2c]
cmp ecx, dword [esp + 0x1c]
ja 0x538811
mov ecx, dword [esp + 0xa4]
cmp dword [esp + 0x3c], ecx
jbe 0x538821
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 0x538979
cmp esi, 0x20
jbe 0x538847
mov ecx, 0x57b868
mov dword [esp + 0x30], 3
jmp 0x5388bf
mov ecx, dword [esp + 0x50]
cmp ecx, dword [esp + 0x58]
jb 0x538865
mov eax, esi
mov dword [esp + 0x30], 0
shr eax, 3
sub ecx, eax
and esi, 7
jmp 0x5388b1
cmp ecx, dword [esp + 0x54]
jne 0x538879
cmp esi, 0x20
sbb ecx, ecx
add ecx, 2
mov dword [esp + 0x30], ecx
jmp 0x5388c3
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 0x5388a6
mov eax, ecx
mov dword [esp + 0x30], 1
sub eax, dword [esp + 0x54]
jmp 0x5388aa
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 0x5389eb
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 0x538833
cmp esi, 0x20
jbe 0x538989
mov ecx, 0x57b868
mov dword [esp + 0x50], ecx
jmp 0x5389f2
mov ecx, dword [esp + 0x50]
cmp ecx, dword [esp + 0x58]
jb 0x5389ad
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 0x5389f2
cmp ecx, dword [esp + 0x54]
je 0x5389f2
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 0x5389d0
mov eax, ecx
sub eax, dword [esp + 0x54]
jmp 0x5389d4
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 0x5389f2
mov edx, dword [esp + 0xac]
mov ecx, dword [esp + 0xa0]
sub ecx, edx
cmp ecx, 2
jb 0x538b58
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 0x538a31
mov edi, 0x57b868
mov ebx, 3
jmp 0x538a86
cmp edi, dword [esp + 0x58]
jb 0x538a45
mov eax, esi
and esi, 7
shr eax, 3
sub edi, eax
xor ebx, ebx
jmp 0x538a7c
cmp edi, dword [esp + 0x54]
jne 0x538a55
cmp esi, 0x20
sbb ebx, ebx
add ebx, 2
jmp 0x538a8a
mov ecx, esi
mov eax, edi
shr ecx, 3
xor ebx, ebx
sub eax, ecx
cmp eax, dword [esp + 0x54]
jae 0x538a71
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 0x538ae1
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 0x538a20
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 0x538b58
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 0x538b10
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 0x538ba6
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 0x538b8c
movzx eax, byte [ecx + 2]
add esi, eax
jmp 0x538ba2
cmp esi, 0x20
jae 0x538ba6
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 0x538cec
mov edx, dword [esp + 0x34]
mov esi, dword [esp + 0x2c]
cmp ebp, 0x20
jbe 0x538bdd
mov ecx, 0x57b868
mov dword [esp + 0x14], 3
mov dword [esp + 0x78], ecx
jmp 0x538c52
mov edx, dword [esp + 0x78]
cmp edx, dword [esp + 0x80]
jb 0x538bfe
mov eax, ebp
mov dword [esp + 0x14], 0
shr eax, 3
sub edx, eax
and ebp, 7
jmp 0x538c40
cmp edx, eax
jne 0x538c14
mov edx, dword [esp + 0x34]
cmp ebp, 0x20
sbb eax, eax
add eax, 2
mov dword [esp + 0x14], eax
jmp 0x538c52
mov ecx, ebp
mov dword [esp + 0x14], 0
shr ecx, 3
mov eax, edx
sub eax, ecx
cmp eax, dword [esp + 0x7c]
jae 0x538c39
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 0x538d5d
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 0x538bc5
cmp ebp, 0x20
jbe 0x538cfc
mov ecx, 0x57b868
mov dword [esp + 0x78], ecx
jmp 0x538d61
mov ecx, dword [esp + 0x78]
cmp ecx, dword [esp + 0x80]
jb 0x538d23
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 0x538d65
cmp ecx, eax
je 0x538d61
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 0x538d42
mov eax, ecx
sub eax, esi
jmp 0x538d46
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 0x538d65
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 0x538e97
mov edi, dword [esp + 0x78]
add ecx, 0xfffffffe
mov dword [esp + 0x14], ecx
cmp ebp, 0x20
jbe 0x538d92
mov edi, 0x57b868
mov ebx, 3
jmp 0x538dea
cmp edi, dword [esp + 0x80]
jb 0x538da9
mov eax, ebp
and ebp, 7
shr eax, 3
sub edi, eax
xor ebx, ebx
jmp 0x538de0
cmp edi, dword [esp + 0x7c]
jne 0x538db9
cmp ebp, 0x20
sbb ebx, ebx
add ebx, 2
jmp 0x538dee
mov esi, dword [esp + 0x7c]
mov ecx, ebp
shr ecx, 3
mov eax, edi
sub eax, ecx
xor ebx, ebx
cmp eax, esi
jae 0x538dd5
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 0x538e46
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 0x538d81
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x38]
cmp edx, dword [esp + 0x14]
ja 0x538e97
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 0x538e63
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x38]
mov dword [esp + 0x74], ebp
cmp edx, dword [esp + 0x1c]
jae 0x538ee2
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 0x538ec8
movzx eax, byte [ecx + 2]
add ebp, eax
jmp 0x538ede
cmp ebp, 0x20
jae 0x538ee2
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 0x539044
mov ebp, dword [esp + 0x40]
cmp ebx, 0x20
jbe 0x538f1e
mov ecx, 0x57b868
mov edx, 3
mov dword [esp + 0x8c], ecx
jmp 0x538fac
mov edx, dword [esp + 0x8c]
cmp edx, dword [esp + 0x94]
jb 0x538f45
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 0x538f9a
cmp edx, dword [esp + 0x90]
jne 0x538f5e
cmp ebx, 0x20
sbb eax, eax
add eax, 2
mov dword [esp + 0x1c], eax
mov edx, eax
jmp 0x538fac
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 0x538f86
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 0x5390bf
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 0x538f03
cmp ebx, 0x20
jbe 0x539057
mov ecx, 0x57b868
mov dword [esp + 0x8c], ecx
jmp 0x5390c6
mov ecx, dword [esp + 0x8c]
cmp ecx, dword [esp + 0x94]
jb 0x53908a
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 0x5390ca
cmp ecx, edx
je 0x5390c6
mov ebp, ebx
mov eax, ecx
shr ebp, 3
sub eax, ebp
cmp eax, edx
jae 0x53909f
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 0x5390ca
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 0x539209
mov edi, dword [esp + 0x8c]
add ecx, 0xfffffffe
mov dword [esp + 0x1c], ecx
nop dword [eax]
cmp ebx, 0x20
jbe 0x539101
mov edi, 0x57b868
mov edx, 3
jmp 0x539160
cmp edi, dword [esp + 0x94]
jb 0x539118
mov eax, ebx
and ebx, 7
shr eax, 3
sub edi, eax
xor edx, edx
jmp 0x539150
cmp edi, edx
jne 0x539126
cmp ebx, 0x20
sbb edx, edx
add edx, 2
jmp 0x539167
mov ebp, dword [esp + 0x90]
mov ecx, ebx
shr ecx, 3
mov eax, edi
sub eax, ecx
xor edx, edx
cmp eax, ebp
jae 0x539145
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 0x5391bb
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 0x5390f0
mov edi, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
cmp esi, dword [esp + 0x1c]
ja 0x53920d
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 0x5391d4
mov edi, dword [esp + 0x18]
mov dword [esp + 0x88], ebx
jmp 0x53920d
mov edx, dword [esp + 0x10]
cmp esi, dword [esp + 0xa4]
jae 0x53925b
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 0x53923d
movzx eax, byte [edx + ebp*4 + 2]
add ebx, eax
jmp 0x539254
cmp ebx, 0x20
jae 0x53925b
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 0x539373
mov ebx, dword [esp + 0x44]
nop dword [eax]
cmp edi, 0x20
jbe 0x539295
mov eax, 0x57b868
mov esi, 3
mov dword [esp + 0x64], eax
jmp 0x5392f0
mov edx, dword [esp + 0x64]
cmp edx, dword [esp + 0x6c]
jb 0x5392ad
mov eax, edi
and edi, 7
shr eax, 3
sub edx, eax
xor esi, esi
jmp 0x5392de
cmp edx, ecx
jne 0x5392bb
cmp edi, 0x20
sbb esi, esi
add esi, 2
jmp 0x5392f0
mov ebx, dword [esp + 0x68]
mov ecx, edi
shr ecx, 3
mov eax, edx
sub eax, ecx
xor esi, esi
cmp eax, ebx
jae 0x5392d7
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 0x5393d3
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 0x539280
cmp edi, 0x20
jbe 0x539383
mov edx, 0x57b868
mov dword [esp + 0x64], edx
jmp 0x5393db
mov edx, dword [esp + 0x64]
cmp edx, dword [esp + 0x6c]
jb 0x5393a7
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 0x5393df
cmp edx, ecx
je 0x5393db
mov esi, edi
mov eax, edx
shr esi, 3
sub eax, esi
cmp eax, ecx
jae 0x5393bc
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 0x5393df
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 0x539512
lea eax, [esi - 2]
mov esi, dword [esp + 0x10]
mov dword [esp + 0x14], eax
nop
cmp edi, 0x20
jbe 0x539415
mov eax, 0x57b868
mov edx, 3
mov dword [esp + 0x64], eax
jmp 0x539481
cmp edx, dword [esp + 0x6c]
jb 0x53942f
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 0x539479
cmp edx, ecx
jne 0x539443
cmp edi, 0x20
sbb eax, eax
add eax, 2
mov dword [esp + 0x1c], eax
mov edx, eax
jmp 0x539481
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 0x539468
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 0x5394ce
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 0x539400
cmp ebp, dword [esp + 0x14]
ja 0x539512
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 0x5394e5
mov dword [esp + 0x60], edi
mov edx, dword [esp + 0x20]
cmp ebp, dword [esp + 0x9c]
jae 0x539563
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 0x539549
movzx eax, byte [ecx + 2]
add edi, eax
jmp 0x53955f
cmp edi, 0x20
jae 0x539563
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.00544090
mov edx, eax
lea eax, [esp + 0x88]
push eax
call fcn.00544090
and edx, eax
lea eax, [esp + 0x78]
push eax
call fcn.00544090
and edx, eax
lea eax, [esp + 0x54]
push eax
call fcn.00544090
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