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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
mov ebx, dword [eax + 0x190]
movsx eax, word [ebx + 0xe]
mov dword [ebp - 4], eax
movsx edx, word [ebx + 0xc]
mov dword [ebp - 8], edx
xor ecx, ecx
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebx + 0x8a4]
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x8c]
shr edx, 8
inc edx
mov eax, dword [ebx + 0x7c]
mov ecx, edx
xor edx, edx
div ecx
mov dword [ebp - 0x18], eax
mov ecx, dword [ebx + 0x8b0]
mov dword [ebp - 0x34], ecx
test byte [ebp - 8], 0x20
je 0x5957e3
mov eax, 0x800000
jmp 0x5957e8
mov eax, 0x8000
mov dword [ebp - 0x48], eax
xor edx, edx
mov dword [ebp - 0x4c], edx
cmp word [ebx + 0xa], 0
je 0x595817
test byte [ebp - 8], 0x80
jne 0x595817
cmp word [ebx + 8], 3
jge 0x59580f
mov ecx, dword [ebp - 0x48]
shl ecx, 2
mov dword [ebp - 0x48], ecx
jmp 0x595817
mov ecx, dword [ebp - 0x48]
add ecx, ecx
mov dword [ebp - 0x48], ecx
mov eax, dword [ebx + 0x7c]
add eax, dword [ebp + 0x10]
mov edx, dword [ebp + 8]
cmp eax, dword [edx + 0x8c]
jbe 0x595837
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x8c]
sub eax, dword [ebx + 0x7c]
mov dword [ebp + 0x10], eax
cmp dword [ebp + 0x10], 0
jne 0x595844
xor eax, eax
jmp 0x59812c
cmp dword [ebx + 0x7c], 0
jne 0x59588d
push ebx
call fcn.00594ea0
pop ecx
mov edx, dword [ebp + 8]
push dword [edx + 0x74]
mov ecx, dword [ebp + 8]
push dword [ecx + 0x70]
lea ecx, [ebx + 0x24]
push ecx
call fcn.00594d9b
add esp, 0xc
mov eax, dword [ebp + 8]
cmp dword [eax + 0x98], 0
je 0x59588d
mov edx, dword [ebp + 8]
push dword [edx + 0x78]
mov ecx, dword [ebp + 8]
push dword [ecx + 0x70]
lea eax, [ebx + 0x50]
push eax
call fcn.00594d9b
add esp, 0xc
mov edx, dword [ebp - 0x18]
cmp byte [ebx + edx*8 + 0x84], 0
jne 0x5958f2
cmp dword [ebx + 0x884], 0
jne 0x5958c0
push ebx
call fcn.00594fa7
pop ecx
mov dword [ebx + 0x888], eax
shl eax, 8
push eax
call fcn.00581564
pop ecx
mov dword [ebx + 0x884], eax
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebx + 0x7c]
mov dword [ebx + edx*8 + 0x88], ecx
mov ecx, dword [ebp - 0x18]
imul ecx, dword [ebx + 0x888]
add ecx, dword [ebx + 0x884]
push ecx
push ebx
call fcn.00595050
add esp, 8
mov eax, dword [ebp - 0x18]
mov byte [ebx + eax*8 + 0x84], 1
push 0x10
lea edx, [ebx + 0x8b4]
push edx
lea ecx, [ebp - 0x114]
push ecx
call fcn.00581474
add esp, 0xc
push 8
lea eax, [ebx + 0x8c4]
push eax
lea edx, [ebp - 0x40]
push edx
call fcn.00581474
add esp, 0xc
cmp word [ebx + 0xa], 0
je 0x595935
test byte [ebp - 7], 0xa0
je 0x595950
mov dword [ebp - 0xc], 0xffffff00
jmp 0x595950
test byte [ebp - 7], 0x20
je 0x595950
test byte [ebp - 7], 0x80
je 0x595948
mov ecx, 0xfffffe00
jmp 0x59594d
mov ecx, 0xffffff00
mov dword [ebp - 0xc], ecx
test byte [ebp - 8], 0x20
je 0x595982
mov ecx, dword [ebp - 4]
mov eax, 0xff800000
sar eax, cl
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 4]
shl eax, cl
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 4]
mov eax, 0x7fffff
sar eax, cl
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 4]
shl eax, cl
mov dword [ebp - 0x28], eax
jmp 0x5959ac
mov ecx, dword [ebp - 4]
mov eax, 0xffff8000
sar eax, cl
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 4]
shl eax, cl
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 4]
mov eax, 0x7fff
sar eax, cl
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 4]
shl eax, cl
mov dword [ebp - 0x28], eax
cmp word [ebx + 8], 3
jne 0x595fec
cmp word [ebx + 0xa], 0
jne 0x595fec
test byte [ebp - 8], 1
je 0x595fec
test byte [ebp - 8], 2
je 0x595b3b
test byte [ebp - 8], 0x40
je 0x595ac5
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x38], edx
xor ecx, ecx
mov dword [ebp - 0x44], ecx
mov eax, dword [ebp - 0x44]
cmp eax, dword [ebp + 0x10]
jae 0x597e5f
push 0
push ebx
call fcn.00598c68
add esp, 8
mov edi, eax
cmp eax, 0x80000000
je 0x597e5f
add dword [ebp - 0x110], edi
mov edx, dword [ebp - 0x110]
lea ecx, [ebp - 0x114]
add dword [ecx], edx
jmp 0x595a50
inc dword [ebx + 0x30]
mov ecx, dword [ebx + 0x30]
cmp ecx, dword [ebx + 0x2c]
jne 0x595a38
lea eax, [ebx + 0x24]
push eax
call dword [ebx + 0x24]
pop ecx
mov ecx, dword [ebx + 0x48]
mov eax, dword [ebx + 0x30]
xor edx, edx
mov dl, byte [eax]
shl edx, cl
or dword [ebx + 0x3c], edx
mov ecx, dword [ebx + 0x48]
add ecx, 8
mov dword [ebx + 0x48], ecx
cmp dword [ebx + 0x48], 4
jl 0x595a25
mov eax, dword [ebx + 0x3c]
mov dword [ebp - 0x50], eax
cmp dword [ebx + 0x48], 0x20
jle 0x595a7c
sub dword [ebx + 0x48], 4
mov ecx, 8
sub ecx, dword [ebx + 0x48]
mov eax, dword [ebx + 0x30]
xor edx, edx
mov dl, byte [eax]
sar edx, cl
mov dword [ebx + 0x3c], edx
jmp 0x595a84
sub dword [ebx + 0x48], 4
shr dword [ebx + 0x3c], 4
mov ecx, dword [ebp - 0x50]
and ecx, 0xf
lea eax, [ebp - 0x114]
mov edx, dword [eax]
shl edx, 4
add ecx, edx
mov dword [ebp - 0x50], ecx
mov eax, dword [ebp - 0x34]
lea eax, [eax + eax*2]
add ecx, eax
mov dword [ebp - 0x34], ecx
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x50]
mov dword [edx], eax
add dword [ebp - 0x38], 4
inc dword [ebp - 0x44]
mov edx, dword [ebp - 0x44]
cmp edx, dword [ebp + 0x10]
jb 0x5959f7
jmp 0x597e5f
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x38], ecx
xor ecx, ecx
mov dword [ebp - 0x44], ecx
mov eax, dword [ebp - 0x44]
cmp eax, dword [ebp + 0x10]
jae 0x597e5f
push 0
push ebx
call fcn.00598c68
add esp, 8
mov edi, eax
cmp eax, 0x80000000
je 0x597e5f
add dword [ebp - 0x110], edi
mov edx, dword [ebp - 0x110]
lea ecx, [ebp - 0x114]
add dword [ecx], edx
mov ecx, dword [ecx]
mov eax, dword [ebp - 0x34]
lea eax, [eax + eax*2]
add ecx, eax
mov dword [ebp - 0x34], ecx
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x114]
mov edx, dword [eax]
shl edx, cl
mov eax, dword [ebp - 0x38]
mov dword [eax], edx
add dword [ebp - 0x38], 4
inc dword [ebp - 0x44]
mov edx, dword [ebp - 0x44]
cmp edx, dword [ebp + 0x10]
jb 0x595adc
jmp 0x597e5f
test byte [ebp - 8], 0x10
je 0x595deb
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x38], ecx
xor ecx, ecx
mov dword [ebp - 0x44], ecx
mov eax, dword [ebp - 0x44]
cmp eax, dword [ebp + 0x10]
jae 0x597e5f
test byte [ebp - 7], 4
je 0x595b7c
push 0
push ebx
call fcn.005981b8
add esp, 8
mov edi, eax
cmp eax, 0x80000000
je 0x597e5f
jmp 0x595b94
push 0
push ebx
call fcn.0059878f
add esp, 8
mov edi, eax
cmp eax, 0x80000000
je 0x597e5f
test byte [ebp - 7], 0x80
je 0x595c1e
mov edx, dword [ebx + 0x80]
mov dword [ebp - 0x14], edx
lea eax, [ebx + 0x8cc]
jmp 0x595c11
mov edx, dword [ebp - 0x10]
mov ecx, dword [eax + edx*4 + 0x10]
mov dword [ebp - 0x58], ecx
mov edx, dword [eax + 8]
imul edx, dword [ebp - 0x58]
add edx, 0x100
sar edx, 9
add edx, edi
mov dword [ebp - 0x54], edx
cmp dword [ebp - 0x58], 0
je 0x595bff
test edi, edi
je 0x595bff
xor edi, dword [ebp - 0x58]
jl 0x595bf0
mov ecx, dword [eax + 8]
inc dword [eax + 8]
cmp ecx, 0x200
jne 0x595bff
dec dword [eax + 8]
jmp 0x595bff
mov edx, dword [eax + 8]
add dword [eax + 8], 0xffffffff
cmp edx, dword [ebp - 0xc]
jne 0x595bff
inc dword [eax + 8]
mov edi, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x10]
add ecx, dword [eax]
and ecx, 7
mov dword [eax + ecx*4 + 0x10], edi
add eax, 0x60
mov edx, dword [ebp - 0x14]
add dword [ebp - 0x14], 0xffffffff
test edx, edx
jne 0x595baf
jmp 0x595c9c
mov eax, dword [ebx + 0x80]
mov dword [ebp - 0x14], eax
lea eax, [ebx + 0x8cc]
jmp 0x595c91
mov edx, dword [ebp - 0x10]
mov ecx, dword [eax + edx*4 + 0x10]
mov dword [ebp - 0x5c], ecx
mov edx, dword [eax + 8]
imul edx, dword [ebp - 0x5c]
add edx, 0x80
sar edx, 8
add edx, edi
mov dword [ebp - 0x54], edx
cmp dword [ebp - 0x5c], 0
je 0x595c7f
test edi, edi
je 0x595c7f
xor edi, dword [ebp - 0x5c]
jl 0x595c70
mov ecx, dword [eax + 8]
inc dword [eax + 8]
cmp ecx, 0x100
jne 0x595c7f
dec dword [eax + 8]
jmp 0x595c7f
mov edx, dword [eax + 8]
add dword [eax + 8], 0xffffffff
cmp edx, dword [ebp - 0xc]
jne 0x595c7f
inc dword [eax + 8]
mov edi, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x10]
add ecx, dword [eax]
and ecx, 7
mov dword [eax + ecx*4 + 0x10], edi
add eax, 0x60
mov edx, dword [ebp - 0x14]
add dword [ebp - 0x14], 0xffffffff
test edx, edx
jne 0x595c2f
mov eax, dword [ebp - 0x10]
inc eax
and eax, 7
mov dword [ebp - 0x10], eax
test byte [ebp - 8], 0x40
je 0x595dbe
cmp dword [ebx + 0x8a0], 8
jl 0x595d3d
cmp dword [ebx + 0x48], 0
je 0x595cce
dec dword [ebx + 0x48]
mov ecx, dword [ebx + 0x3c]
and ecx, 1
jmp 0x595cf5
inc dword [ebx + 0x30]
mov ecx, dword [ebx + 0x30]
cmp ecx, dword [ebx + 0x2c]
jne 0x595ce1
lea eax, [ebx + 0x24]
push eax
call dword [ebx + 0x24]
pop ecx
mov dword [ebx + 0x48], 7
mov edx, dword [ebx + 0x30]
xor ecx, ecx
mov cl, byte [edx]
mov dword [ebx + 0x3c], ecx
and ecx, 1
test ecx, ecx
je 0x595d03
shr dword [ebx + 0x3c], 1
mov eax, 1
jmp 0x595d08
shr dword [ebx + 0x3c], 1
xor eax, eax
test eax, eax
jne 0x595d99
jmp 0x595d3d
inc dword [ebx + 0x30]
mov edx, dword [ebx + 0x30]
cmp edx, dword [ebx + 0x2c]
jne 0x595d25
lea ecx, [ebx + 0x24]
push ecx
call dword [ebx + 0x24]
pop ecx
mov ecx, dword [ebx + 0x48]
mov eax, dword [ebx + 0x30]
xor edx, edx
mov dl, byte [eax]
shl edx, cl
or dword [ebx + 0x3c], edx
mov ecx, dword [ebx + 0x48]
add ecx, 8
mov dword [ebx + 0x48], ecx
cmp dword [ebx + 0x48], 4
jl 0x595d12
mov eax, dword [ebx + 0x3c]
mov dword [ebp - 0x54], eax
cmp dword [ebx + 0x48], 0x20
jle 0x595d69
sub dword [ebx + 0x48], 4
mov ecx, 8
sub ecx, dword [ebx + 0x48]
mov eax, dword [ebx + 0x30]
xor edx, edx
mov dl, byte [eax]
sar edx, cl
mov dword [ebx + 0x3c], edx
jmp 0x595d71
sub dword [ebx + 0x48], 4
shr dword [ebx + 0x3c], 4
and dword [ebp - 0x54], 0xf
mov ecx, dword [ebp - 0x54]
cmp ecx, dword [ebx + 0x89c]
je 0x595d93
mov eax, dword [ebp - 0x54]
mov dword [ebx + 0x89c], eax
xor edx, edx
mov dword [ebx + 0x8a0], edx
jmp 0x595d99
inc dword [ebx + 0x8a0]
mov ecx, dword [ebp - 0x34]
lea ecx, [ecx + ecx*2]
shl edi, 4
add edi, dword [ebx + 0x89c]
mov dword [ebp - 0x54], edi
add ecx, edi
mov dword [ebp - 0x34], ecx
mov eax, dword [ebp - 0x38]
mov edx, dword [ebp - 0x54]
mov dword [eax], edx
add dword [ebp - 0x38], 4
jmp 0x595dd7
mov ecx, dword [ebp - 0x34]
lea ecx, [ecx + ecx*2]
add ecx, edi
mov dword [ebp - 0x34], ecx
mov ecx, dword [ebp - 4]
shl edi, cl
mov eax, dword [ebp - 0x38]
mov dword [eax], edi
add dword [ebp - 0x38], 4
inc dword [ebp - 0x44]
mov edx, dword [ebp - 0x44]
cmp edx, dword [ebp + 0x10]
jb 0x595b5c
jmp 0x597e5f
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x38], ecx
xor eax, eax
mov dword [ebp - 0x44], eax
mov edx, dword [ebp - 0x44]
cmp edx, dword [ebp + 0x10]
jae 0x597e5f
push 0
push ebx
call fcn.00598c68
add esp, 8
mov edi, eax
cmp eax, 0x80000000
je 0x597e5f
lea edx, [ebp - 0x114]
mov ecx, dword [edx]
lea esi, [ebp - 0x40]
mov eax, dword [esi]
imul dword [ebp - 0x110]
add eax, 0x80
sar eax, 8
add ecx, eax
add ecx, edi
mov dword [ebp - 0x60], ecx
cmp dword [ebp - 0x110], 0
setge dl
and edx, 1
test edi, edi
setg cl
and ecx, 1
cmp edx, ecx
jne 0x595e6a
lea ecx, [ebp - 0x40]
mov eax, dword [ecx]
inc dword [ecx]
cmp eax, 0x100
jne 0x595e7b
lea edx, [ebp - 0x40]
dec dword [edx]
jmp 0x595e7b
lea ecx, [ebp - 0x40]
mov eax, dword [ecx]
add dword [ecx], 0xffffffff
test eax, eax
jne 0x595e7b
lea edx, [ebp - 0x40]
inc dword [edx]
lea ecx, [ebp - 0x114]
mov eax, dword [ebp - 0x60]
sub eax, dword [ecx]
mov dword [ebp - 0x110], eax
lea edx, [ebp - 0x114]
add dword [edx], eax
test byte [ebp - 8], 0x40
je 0x595fb1
cmp dword [ebx + 0x8a0], 8
jl 0x595f2b
cmp dword [ebx + 0x48], 0
je 0x595ebc
dec dword [ebx + 0x48]
mov ecx, dword [ebx + 0x3c]
and ecx, 1
jmp 0x595ee3
inc dword [ebx + 0x30]
mov ecx, dword [ebx + 0x30]
cmp ecx, dword [ebx + 0x2c]
jne 0x595ecf
lea eax, [ebx + 0x24]
push eax
call dword [ebx + 0x24]
pop ecx
mov dword [ebx + 0x48], 7
mov edx, dword [ebx + 0x30]
xor ecx, ecx
mov cl, byte [edx]
mov dword [ebx + 0x3c], ecx
and ecx, 1
test ecx, ecx
je 0x595ef1
shr dword [ebx + 0x3c], 1
mov eax, 1
jmp 0x595ef6
shr dword [ebx + 0x3c], 1
xor eax, eax
test eax, eax
jne 0x595f87
jmp 0x595f2b
inc dword [ebx + 0x30]
mov edx, dword [ebx + 0x30]
cmp edx, dword [ebx + 0x2c]
jne 0x595f13
lea ecx, [ebx + 0x24]
push ecx
call dword [ebx + 0x24]
pop ecx
mov ecx, dword [ebx + 0x48]
mov eax, dword [ebx + 0x30]
xor edx, edx
mov dl, byte [eax]
shl edx, cl
or dword [ebx + 0x3c], edx
mov ecx, dword [ebx + 0x48]
add ecx, 8
mov dword [ebx + 0x48], ecx
cmp dword [ebx + 0x48], 4
jl 0x595f00
mov eax, dword [ebx + 0x3c]
mov dword [ebp - 0x60], eax
cmp dword [ebx + 0x48], 0x20
jle 0x595f57
sub dword [ebx + 0x48], 4
mov ecx, 8
sub ecx, dword [ebx + 0x48]
mov eax, dword [ebx + 0x30]
xor edx, edx
mov dl, byte [eax]
sar edx, cl
mov dword [ebx + 0x3c], edx
jmp 0x595f5f
sub dword [ebx + 0x48], 4
shr dword [ebx + 0x3c], 4
and dword [ebp - 0x60], 0xf
mov ecx, dword [ebp - 0x60]
cmp ecx, dword [ebx + 0x89c]
je 0x595f81
mov eax, dword [ebp - 0x60]
mov dword [ebx + 0x89c], eax
xor edx, edx
mov dword [ebx + 0x8a0], edx
jmp 0x595f87
inc dword [ebx + 0x8a0]
lea ecx, [ebp - 0x114]
mov eax, dword [ecx]
shl eax, 4
add eax, dword [ebx + 0x89c]
mov dword [ebp - 0x60], eax
mov edx, dword [ebp - 0x38]
mov dword [edx], eax
mov edx, dword [ebp - 0x34]
lea edx, [edx + edx*2]
add eax, edx
mov dword [ebp - 0x34], eax
add dword [ebp - 0x38], 4
jmp 0x595fd8
mov ecx, dword [ebp - 0x34]
lea ecx, [ecx + ecx*2]
lea eax, [ebp - 0x114]
add ecx, dword [eax]
mov dword [ebp - 0x34], ecx
mov ecx, dword [ebp - 4]
lea edx, [ebp - 0x114]
mov eax, dword [edx]
shl eax, cl
mov edx, dword [ebp - 0x38]
mov dword [edx], eax
add dword [ebp - 0x38], 4
inc dword [ebp - 0x44]
mov ecx, dword [ebp - 0x44]
cmp ecx, dword [ebp + 0x10]
jb 0x595e02
jmp 0x597e5f
cmp word [ebx + 8], 3
jne 0x5970a4
cmp word [ebx + 0xa], 0
jne 0x5970a4
test byte [ebp - 8], 1
jne 0x5970a4
mov ecx, dword [ebx + 0x890]
mov dword [ebp - 0x64], ecx
mov eax, dword [ebx + 0x894]
mov dword [ebp - 0x68], eax
mov edx, dword [ebx + 0x88c]
mov dword [ebp - 0x6c], edx
mov ecx, dword [ebx + 0x898]
mov dword [ebp - 0x70], ecx
test byte [ebp - 8], 2
je 0x59626d
test byte [ebp - 8], 0x40
je 0x59618a
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x38], eax
xor edx, edx
mov dword [ebp - 0x44], edx
mov ecx, dword [ebp - 0x44]
cmp ecx, dword [ebp + 0x10]
jae 0x59707b
push 0
push ebx
call fcn.00598c68
add esp, 8
mov edi, eax
cmp edi, 0x80000000
je 0x59707b
push 1
push ebx
call fcn.00598c68
add esp, 8
mov dword [ebp - 0x78], eax
and eax, 1
add edi, edi
or eax, edi
mov dword [ebp - 0x74], eax
mov edx, dword [ebp - 0x74]
add edx, dword [ebp - 0x78]
sar edx, 1
add dword [ebp - 0x110], edx
mov ecx, dword [ebp - 0x110]
lea eax, [ebp - 0x114]
add dword [eax], ecx
mov edx, dword [ebp - 0x74]
sub edx, dword [ebp - 0x78]
sar edx, 1
add dword [ebp - 0x108], edx
mov ecx, dword [ebp - 0x108]
lea eax, [ebp - 0x10c]
add dword [eax], ecx
jmp 0x5960f1
inc dword [ebx + 0x30]
mov edx, dword [ebx + 0x30]
cmp edx, dword [ebx + 0x2c]
jne 0x5960d9
lea ecx, [ebx + 0x24]
push ecx
call dword [ebx + 0x24]
pop ecx
mov ecx, dword [ebx + 0x48]
mov eax, dword [ebx + 0x30]
xor edx, edx
mov dl, byte [eax]
shl edx, cl
or dword [ebx + 0x3c], edx
mov ecx, dword [ebx + 0x48]
add ecx, 8
mov dword [ebx + 0x48], ecx
cmp dword [ebx + 0x48], 8
jl 0x5960c6
mov eax, dword [ebx + 0x3c]
mov dword [ebp - 0x7c], eax
cmp dword [ebx + 0x48], 0x20
jle 0x59611d
sub dword [ebx + 0x48], 8
mov ecx, 8
sub ecx, dword [ebx + 0x48]
mov eax, dword [ebx + 0x30]
xor edx, edx
mov dl, byte [eax]
sar edx, cl
mov dword [ebx + 0x3c], edx
jmp 0x596125
sub dword [ebx + 0x48], 8
shr dword [ebx + 0x3c], 8
lea ecx, [ebp - 0x114]
mov eax, dword [ecx]
shl eax, 4
mov edx, dword [ebp - 0x7c]
sar edx, 4
and edx, 0xf
add eax, edx
mov edx, dword [ebp - 0x38]
mov dword [edx], eax
mov ecx, dword [ebp - 0x34]
lea ecx, [ecx + ecx*2]
add eax, ecx
mov dword [ebp - 0x34], eax
add dword [ebp - 0x38], 4
lea ecx, [ebp - 0x10c]
mov eax, dword [ecx]
shl eax, 4
mov edx, dword [ebp - 0x7c]
and edx, 0xf
add eax, edx
mov edx, dword [ebp - 0x38]
mov dword [edx], eax
mov ecx, dword [ebp - 0x34]
lea ecx, [ecx + ecx*2]
add eax, ecx
mov dword [ebp - 0x34], eax
add dword [ebp - 0x38], 4
inc dword [ebp - 0x44]
mov ecx, dword [ebp - 0x44]
cmp ecx, dword [ebp + 0x10]
jb 0x59605b
jmp 0x59707b
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x38], eax
xor edx, edx
mov dword [ebp - 0x44], edx
mov ecx, dword [ebp - 0x44]
cmp ecx, dword [ebp + 0x10]
jae 0x59707b
push 0
push ebx
call fcn.00598c68
add esp, 8
mov edi, eax
cmp edi, 0x80000000
je 0x59707b
push 1
push ebx
call fcn.00598c68
add esp, 8
mov dword [ebp - 0x84], eax
and eax, 1
add edi, edi
or eax, edi
mov dword [ebp - 0x80], eax
mov edx, dword [ebp - 0x80]
add edx, dword [ebp - 0x84]
sar edx, 1
add dword [ebp - 0x110], edx
mov ecx, dword [ebp - 0x80]
sub ecx, dword [ebp - 0x84]
sar ecx, 1
add dword [ebp - 0x108], ecx
lea ecx, [ebp - 0x114]
mov eax, dword [ebp - 0x110]
add dword [ecx], eax
mov edx, dword [ecx]
mov eax, dword [ebp - 0x34]
lea eax, [eax + eax*2]
add edx, eax
mov dword [ebp - 0x34], edx
lea edx, [ebp - 0x10c]
mov ecx, dword [ebp - 0x108]
add dword [edx], ecx
mov ecx, dword [edx]
mov eax, dword [ebp - 0x34]
lea eax, [eax + eax*2]
add ecx, eax
mov dword [ebp - 0x34], ecx
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x114]
mov edx, dword [eax]
shl edx, cl
mov eax, dword [ebp - 0x38]
mov dword [eax], edx
add dword [ebp - 0x38], 4
mov ecx, dword [ebp - 4]
lea edx, [ebp - 0x10c]
mov eax, dword [edx]
shl eax, cl
mov edx, dword [ebp - 0x38]
mov dword [edx], eax
add dword [ebp - 0x38], 4
inc dword [ebp - 0x44]
mov ecx, dword [ebp - 0x44]
cmp ecx, dword [ebp + 0x10]
jb 0x5961a1
jmp 0x59707b
test byte [ebp - 8], 0x10
je 0x596c75
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x38], ecx
xor eax, eax
mov dword [ebp - 0x44], eax
mov edx, dword [ebp - 0x44]
cmp edx, dword [ebp + 0x10]
jae 0x59707b
test byte [ebp - 7], 0x10
je 0x5962c3
push 0
push ebx
call fcn.005981b8
add esp, 8
mov esi, eax
cmp esi, 0x80000000
je 0x59707b
push 1
push ebx
call fcn.005981b8
add esp, 8
mov dword [ebp - 0x8c], eax
jmp 0x596560
test byte [ebp - 7], 4
je 0x59643b
push 0
push ebx
call fcn.005981b8
add esp, 8
mov edi, eax
cmp edi, 0x80000000
je 0x59707b
push 1
push ebx
call fcn.005981b8
add esp, 8
mov edx, dword [ebp - 0x68]
cmp edx, dword [ebp - 0x64]
jle 0x59639d
mov ecx, dword [ebp - 0x64]
add ecx, dword [ebp - 0x68]
mov edx, dword [ebp - 0x6c]
add edx, dword [ebp - 0x70]
cmp ecx, edx
jge 0x596338
mov ecx, dword [ebp - 0x68]
cmp ecx, dword [ebp - 0x70]
jge 0x596338
mov dword [ebp - 0x8c], edi
mov esi, eax
add edi, eax
mov dword [ebp - 0x88], edi
mov edx, esi
sub edx, dword [ebp - 0x8c]
mov dword [ebp - 0x90], edx
jmp 0x5964d8
mov dword [ebp - 0x90], edi
mov ecx, dword [ebp - 0x6c]
cmp ecx, dword [ebp - 0x64]
jge 0x596380
add eax, eax
mov edx, dword [ebp - 0x90]
and edx, 1
or eax, edx
mov dword [ebp - 0x88], eax
mov esi, dword [ebp - 0x88]
add esi, dword [ebp - 0x90]
sar esi, 1
mov eax, dword [ebp - 0x88]
sub eax, dword [ebp - 0x90]
sar eax, 1
mov dword [ebp - 0x8c], eax
jmp 0x5964d8
mov esi, eax
mov edx, eax
sub edx, dword [ebp - 0x90]
mov dword [ebp - 0x8c], edx
add eax, edx
mov dword [ebp - 0x88], eax
jmp 0x5964d8
mov ecx, dword [ebp - 0x64]
add ecx, dword [ebp - 0x68]
mov edx, dword [ebp - 0x6c]
add edx, dword [ebp - 0x70]
cmp ecx, edx
jge 0x5963d8
mov ecx, dword [ebp - 0x64]
cmp ecx, dword [ebp - 0x70]
jge 0x5963d8
mov esi, edi
mov dword [ebp - 0x8c], eax
add edi, eax
mov dword [ebp - 0x88], edi
mov edx, esi
sub edx, dword [ebp - 0x8c]
mov dword [ebp - 0x90], edx
jmp 0x5964d8
mov dword [ebp - 0x90], edi
mov ecx, dword [ebp - 0x6c]
cmp ecx, dword [ebp - 0x68]
jge 0x596420
add eax, eax
mov edx, dword [ebp - 0x90]
and edx, 1
or eax, edx
mov dword [ebp - 0x88], eax
mov esi, dword [ebp - 0x88]
add esi, dword [ebp - 0x90]
sar esi, 1
mov eax, dword [ebp - 0x88]
sub eax, dword [ebp - 0x90]
sar eax, 1
mov dword [ebp - 0x8c], eax
jmp 0x5964d8
mov dword [ebp - 0x8c], eax
mov esi, eax
add esi, dword [ebp - 0x90]
add eax, esi
mov dword [ebp - 0x88], eax
jmp 0x5964d8
push 0
push ebx
call fcn.0059878f
add esp, 8
mov edi, eax
cmp edi, 0x80000000
je 0x59707b
push 1
push ebx
call fcn.0059878f
add esp, 8
mov edx, dword [ebp - 0x6c]
cmp edx, dword [ebp - 0x68]
jg 0x59649a
mov ecx, dword [ebp - 0x6c]
cmp ecx, dword [ebp - 0x64]
jg 0x59649a
add eax, eax
mov edx, edi
and edx, 1
or eax, edx
mov dword [ebp - 0x88], eax
mov esi, dword [ebp - 0x88]
add esi, edi
sar esi, 1
mov eax, dword [ebp - 0x88]
sub eax, edi
sar eax, 1
mov dword [ebp - 0x8c], eax
jmp 0x5964ca
mov edx, dword [ebp - 0x64]
cmp edx, dword [ebp - 0x68]
jg 0x5964b8
mov esi, eax
mov ecx, eax
sub ecx, edi
mov dword [ebp - 0x8c], ecx
add eax, ecx
mov dword [ebp - 0x88], eax
jmp 0x5964ca
mov dword [ebp - 0x8c], eax
mov esi, eax
add esi, edi
add eax, esi
mov dword [ebp - 0x88], eax
mov eax, esi
sub eax, dword [ebp - 0x8c]
mov dword [ebp - 0x90], eax
mov edx, dword [ebp - 0x88]
sar edx, 1
push edx
call fcn.00586c84
pop ecx
mov ecx, dword [ebp - 0x6c]
sar ecx, 8
mov edx, dword [ebp - 0x6c]
sub edx, ecx
add eax, edx
mov dword [ebp - 0x6c], eax
push esi
call fcn.00586c84
pop ecx
mov ecx, dword [ebp - 0x64]
sar ecx, 8
mov edx, dword [ebp - 0x64]
sub edx, ecx
add eax, edx
mov dword [ebp - 0x64], eax
push dword [ebp - 0x8c]
call fcn.00586c84
pop ecx
mov ecx, dword [ebp - 0x68]
sar ecx, 8
mov edx, dword [ebp - 0x68]
sub edx, ecx
add eax, edx
mov dword [ebp - 0x68], eax
push dword [ebp - 0x90]
call fcn.00586c84
pop ecx
mov ecx, dword [ebp - 0x70]
sar ecx, 8
mov edx, dword [ebp - 0x70]
sub edx, ecx
add eax, edx
mov dword [ebp - 0x70], eax
test byte [ebp - 7], 0x40
je 0x596560
mov esi, dword [ebp - 0x90]
mov eax, dword [ebp - 0x88]
sar eax, 1
mov dword [ebp - 0x8c], eax
test byte [ebp - 7], 0x80
je 0x596805
mov edx, dword [ebx + 0x80]
mov dword [ebp - 0x14], edx
lea eax, [ebx + 0x8cc]
jmp 0x5967f1
cmp dword [eax], 0
jle 0x596683
mov edx, dword [ebp - 0x10]
mov ecx, dword [eax + edx*4 + 0x10]
mov dword [ebp - 0x9c], ecx
mov edx, dword [ebp - 0x10]
mov ecx, dword [eax + edx*4 + 0x30]
mov dword [ebp - 0xa0], ecx
mov edx, dword [ebp - 0x10]
add edx, dword [eax]
and edx, 7
mov dword [ebp - 0xa4], edx
mov edx, dword [eax + 8]
imul edx, dword [ebp - 0x9c]
add edx, 0x100
sar edx, 9
add edx, esi
mov ecx, dword [eax + 0xc]
imul ecx, dword [ebp - 0xa0]
add ecx, 0x100
sar ecx, 9
add ecx, dword [ebp - 0x8c]
mov dword [ebp - 0x94], ecx
cmp dword [ebp - 0x9c], 0
je 0x59661a
test esi, esi
je 0x59661a
xor esi, dword [ebp - 0x9c]
jl 0x59660b
mov ecx, dword [eax + 8]
inc dword [eax + 8]
cmp ecx, 0x200
jne 0x59661a
dec dword [eax + 8]
jmp 0x59661a
mov ecx, dword [eax + 8]
add dword [eax + 8], 0xffffffff
cmp ecx, dword [ebp - 0xc]
jne 0x59661a
inc dword [eax + 8]
cmp dword [ebp - 0xa0], 0
je 0x59665c
cmp dword [ebp - 0x8c], 0
je 0x59665c
mov ecx, dword [ebp - 0xa0]
xor ecx, dword [ebp - 0x8c]
jl 0x59664d
mov ecx, dword [eax + 0xc]
inc dword [eax + 0xc]
cmp ecx, 0x200
jne 0x59665c
dec dword [eax + 0xc]
jmp 0x59665c
mov ecx, dword [eax + 0xc]
add dword [eax + 0xc], 0xffffffff
cmp ecx, dword [ebp - 0xc]
jne 0x59665c
inc dword [eax + 0xc]
mov esi, edx
mov ecx, dword [ebp - 0xa4]
mov dword [eax + ecx*4 + 0x10], edx
mov edx, dword [ebp - 0x94]
mov dword [ebp - 0x8c], edx
mov ecx, dword [ebp - 0xa4]
mov dword [eax + ecx*4 + 0x30], edx
jmp 0x5967ee
cmp dword [eax], 0xffffffff
jne 0x596739
mov edx, dword [eax + 8]
imul edx, dword [eax + 0x10]
add edx, 0x100
sar edx, 9
add edx, esi
cmp dword [eax + 0x10], 0
je 0x5966cf
test esi, esi
je 0x5966cf
xor esi, dword [eax + 0x10]
jl 0x5966c0
mov ecx, dword [eax + 8]
inc dword [eax + 8]
cmp ecx, 0x200
jne 0x5966cf
dec dword [eax + 8]
jmp 0x5966cf
mov ecx, dword [eax + 8]
add dword [eax + 8], 0xffffffff
cmp ecx, dword [ebp - 0xc]
jne 0x5966cf
inc dword [eax + 8]
mov esi, edx
mov edx, dword [eax + 0xc]
imul edx, esi
add edx, 0x100
sar edx, 9
add edx, dword [ebp - 0x8c]
mov dword [ebp - 0x94], edx
test esi, esi
je 0x596725
cmp dword [ebp - 0x8c], 0
je 0x596725
mov ecx, dword [ebp - 0x8c]
xor ecx, esi
jl 0x596716
mov edx, dword [eax + 0xc]
inc dword [eax + 0xc]
cmp edx, 0x200
jne 0x596725
dec dword [eax + 0xc]
jmp 0x596725
mov ecx, dword [eax + 0xc]
add dword [eax + 0xc], 0xffffffff
cmp ecx, dword [ebp - 0xc]
jne 0x596725
inc dword [eax + 0xc]
mov edx, dword [ebp - 0x94]
mov dword [ebp - 0x8c], edx
mov dword [eax + 0x10], edx
jmp 0x5967ee
mov ecx, dword [eax + 8]
imul ecx, dword [eax + 0x10]
add ecx, 0x100
sar ecx, 9
add ecx, dword [ebp - 0x8c]
mov dword [ebp - 0x94], ecx
cmp dword [eax + 0x10], 0
je 0x596791
cmp dword [ebp - 0x8c], 0
je 0x596791
mov edx, dword [eax + 0x10]
xor edx, dword [ebp - 0x8c]
jl 0x596782
mov ecx, dword [eax + 8]
inc dword [eax + 8]
cmp ecx, 0x200
jne 0x596791
dec dword [eax + 8]
jmp 0x596791
mov edx, dword [eax + 8]
add dword [eax + 8], 0xffffffff
cmp edx, dword [ebp - 0xc]
jne 0x596791
inc dword [eax + 8]
mov ecx, dword [ebp - 0x94]
mov dword [ebp - 0x8c], ecx
mov edx, dword [eax + 0xc]
imul edx, dword [ebp - 0x8c]
add edx, 0x100
sar edx, 9
add edx, esi
cmp dword [ebp - 0x8c], 0
je 0x5967e9
test esi, esi
je 0x5967e9
xor esi, dword [ebp - 0x8c]
jl 0x5967da
mov ecx, dword [eax + 0xc]
inc dword [eax + 0xc]
cmp ecx, 0x200
jne 0x5967e9
dec dword [eax + 0xc]
jmp 0x5967e9
mov ecx, dword [eax + 0xc]
add dword [eax + 0xc], 0xffffffff
cmp ecx, dword [ebp - 0xc]
jne 0x5967e9
inc dword [eax + 0xc]
mov esi, edx
mov dword [eax + 0x10], edx
add eax, 0x60
mov edx, dword [ebp - 0x14]
add dword [ebp - 0x14], 0xffffffff
test edx, edx
jne 0x59657e
jmp 0x596a88
mov eax, dword [ebx + 0x80]
mov dword [ebp - 0x14], eax
lea eax, [ebx + 0x8cc]
jmp 0x596a79
cmp dword [eax], 0
jle 0x59690b
mov edx, dword [ebp - 0x10]
mov ecx, dword [eax + edx*4 + 0x10]
mov edx, dword [ebp - 0x10]
mov edx, dword [eax + edx*4 + 0x30]
mov dword [ebp - 0xa8], edx
mov edx, dword [ebp - 0x10]
add edx, dword [eax]
and edx, 7
mov dword [ebp - 0xac], edx
mov edx, dword [eax + 8]
imul edx, ecx
add edx, 0x80
sar edx, 8
add edx, esi
mov edi, dword [eax + 0xc]
imul edi, dword [ebp - 0xa8]
add edi, 0x80
sar edi, 8
add edi, dword [ebp - 0x8c]
mov dword [ebp - 0x94], edi
test ecx, ecx
je 0x5968a2
test esi, esi
je 0x5968a2
xor ecx, esi
jl 0x596893
mov ecx, dword [eax + 8]
inc dword [eax + 8]
cmp ecx, 0x100
jne 0x5968a2
dec dword [eax + 8]
jmp 0x5968a2
mov ecx, dword [eax + 8]
add dword [eax + 8], 0xffffffff
cmp ecx, dword [ebp - 0xc]
jne 0x5968a2
inc dword [eax + 8]
cmp dword [ebp - 0xa8], 0
je 0x5968e4
cmp dword [ebp - 0x8c], 0
je 0x5968e4
mov ecx, dword [ebp - 0xa8]
xor ecx, dword [ebp - 0x8c]
jl 0x5968d5
mov ecx, dword [eax + 0xc]
inc dword [eax + 0xc]
cmp ecx, 0x100
jne 0x5968e4
dec dword [eax + 0xc]
jmp 0x5968e4
mov ecx, dword [eax + 0xc]
add dword [eax + 0xc], 0xffffffff
cmp ecx, dword [ebp - 0xc]
jne 0x5968e4
inc dword [eax + 0xc]
mov esi, edx
mov ecx, dword [ebp - 0xac]
mov dword [eax + ecx*4 + 0x10], edx
mov edx, dword [ebp - 0x94]
mov dword [ebp - 0x8c], edx
mov ecx, dword [ebp - 0xac]
mov dword [eax + ecx*4 + 0x30], edx
jmp 0x596a76
cmp dword [eax], 0xffffffff
jne 0x5969c1
mov edx, dword [eax + 8]
imul edx, dword [eax + 0x10]
add edx, 0x80
sar edx, 8
add edx, esi
cmp dword [eax + 0x10], 0
je 0x596957
test esi, esi
je 0x596957
xor esi, dword [eax + 0x10]
jl 0x596948
mov ecx, dword [eax + 8]
inc dword [eax + 8]
cmp ecx, 0x100
jne 0x596957
dec dword [eax + 8]
jmp 0x596957
mov ecx, dword [eax + 8]
add dword [eax + 8], 0xffffffff
cmp ecx, dword [ebp - 0xc]
jne 0x596957
inc dword [eax + 8]
mov esi, edx
mov edx, dword [eax + 0xc]
imul edx, esi
add edx, 0x80
sar edx, 8
add edx, dword [ebp - 0x8c]
mov dword [ebp - 0x94], edx
test esi, esi
je 0x5969ad
cmp dword [ebp - 0x8c], 0
je 0x5969ad
mov ecx, dword [ebp - 0x8c]
xor ecx, esi
jl 0x59699e
mov edx, dword [eax + 0xc]
inc dword [eax + 0xc]
cmp edx, 0x100
jne 0x5969ad
dec dword [eax + 0xc]
jmp 0x5969ad
mov ecx, dword [eax + 0xc]
add dword [eax + 0xc], 0xffffffff
cmp ecx, dword [ebp - 0xc]
jne 0x5969ad
inc dword [eax + 0xc]
mov edx, dword [ebp - 0x94]
mov dword [ebp - 0x8c], edx
mov dword [eax + 0x10], edx
jmp 0x596a76
mov ecx, dword [eax + 8]
imul ecx, dword [eax + 0x10]
add ecx, 0x80
sar ecx, 8
add ecx, dword [ebp - 0x8c]
mov dword [ebp - 0x94], ecx
cmp dword [eax + 0x10], 0
je 0x596a19
cmp dword [ebp - 0x8c], 0
je 0x596a19
mov edx, dword [eax + 0x10]
xor edx, dword [ebp - 0x8c]
jl 0x596a0a
mov ecx, dword [eax + 8]
inc dword [eax + 8]
cmp ecx, 0x100
jne 0x596a19
dec dword [eax + 8]
jmp 0x596a19
mov edx, dword [eax + 8]
add dword [eax + 8], 0xffffffff
cmp edx, dword [ebp - 0xc]
jne 0x596a19
inc dword [eax + 8]
mov ecx, dword [ebp - 0x94]
mov dword [ebp - 0x8c], ecx
mov edx, dword [eax + 0xc]
imul edx, dword [ebp - 0x8c]
add edx, 0x80
sar edx, 8
add edx, esi
cmp dword [ebp - 0x8c], 0
je 0x596a71
test esi, esi
je 0x596a71
xor esi, dword [ebp - 0x8c]
jl 0x596a62
mov ecx, dword [eax + 0xc]
inc dword [eax + 0xc]
cmp ecx, 0x100
jne 0x596a71
dec dword [eax + 0xc]
jmp 0x596a71
mov ecx, dword [eax + 0xc]
add dword [eax + 0xc], 0xffffffff
cmp ecx, dword [ebp - 0xc]
jne 0x596a71
inc dword [eax + 0xc]
mov esi, edx
mov dword [eax + 0x10], edx
add eax, 0x60
mov edx, dword [ebp - 0x14]
add dword [ebp - 0x14], 0xffffffff
test edx, edx
jne 0x596819
mov eax, dword [ebp - 0x10]
inc eax
and eax, 7
mov dword [ebp - 0x10], eax
test byte [ebp - 7], 0x40
je 0x596ad3
mov ecx, dword [ebp - 0x8c]
add ecx, ecx
mov dword [ebp - 0x90], esi
and esi, 1
or ecx, esi
mov dword [ebp - 0x88], ecx
mov eax, dword [ebp - 0x88]
sub eax, dword [ebp - 0x90]
sar eax, 1
mov dword [ebp - 0x8c], eax
mov esi, dword [ebp - 0x88]
add esi, dword [ebp - 0x90]
sar esi, 1
test byte [ebp - 8], 0x40
je 0x596c2b
cmp dword [ebx + 0x8a0], 8
jl 0x596b6a
cmp dword [ebx + 0x48], 0
je 0x596afb
dec dword [ebx + 0x48]
mov eax, dword [ebx + 0x3c]
and eax, 1
jmp 0x596b22
inc dword [ebx + 0x30]
mov edx, dword [ebx + 0x30]
cmp edx, dword [ebx + 0x2c]
jne 0x596b0e
lea ecx, [ebx + 0x24]
push ecx
call dword [ebx + 0x24]
pop ecx
mov dword [ebx + 0x48], 7
mov ecx, dword [ebx + 0x30]
xor eax, eax
mov al, byte [ecx]
mov dword [ebx + 0x3c], eax
and eax, 1
test eax, eax
je 0x596b30
shr dword [ebx + 0x3c], 1
mov edx, 1
jmp 0x596b35
shr dword [ebx + 0x3c], 1
xor edx, edx
test edx, edx
jne 0x596bd5
jmp 0x596b6a
inc dword [ebx + 0x30]
mov eax, dword [ebx + 0x30]
cmp eax, dword [ebx + 0x2c]
jne 0x596b52
lea ecx, [ebx + 0x24]
push ecx
call dword [ebx + 0x24]
pop ecx
mov ecx, dword [ebx + 0x48]
mov eax, dword [ebx + 0x30]
xor edx, edx
mov dl, byte [eax]
shl edx, cl
or dword [ebx + 0x3c], edx
mov ecx, dword [ebx + 0x48]
add ecx, 8
mov dword [ebx + 0x48], ecx
cmp dword [ebx + 0x48], 8
jl 0x596b3f
mov eax, dword [ebx + 0x3c]
mov dword [ebp - 0x98], eax
cmp dword [ebx + 0x48], 0x20
jle 0x596b99
sub dword [ebx + 0x48], 8
mov ecx, 8
sub ecx, dword [ebx + 0x48]
mov eax, dword [ebx + 0x30]
xor edx, edx
mov dl, byte [eax]
sar edx, cl
mov dword [ebx + 0x3c], edx
jmp 0x596ba1
sub dword [ebx + 0x48], 8
shr dword [ebx + 0x3c], 8
and dword [ebp - 0x98], 0xff
mov ecx, dword [ebp - 0x98]
cmp ecx, dword [ebx + 0x89c]
je 0x596bcf
mov eax, dword [ebp - 0x98]
mov dword [ebx + 0x89c], eax
xor edx, edx
mov dword [ebx + 0x8a0], edx
jmp 0x596bd5
inc dword [ebx + 0x8a0]
mov ecx, esi
shl ecx, 4
mov eax, dword [ebx + 0x89c]
sar eax, 4
add ecx, eax
mov esi, ecx
mov eax, dword [ebp - 0x38]
mov dword [eax], ecx
mov eax, dword [ebp - 0x34]
lea eax, [eax + eax*2]
add ecx, eax
mov dword [ebp - 0x34], ecx
add dword [ebp - 0x38], 4
mov edx, dword [ebp - 0x8c]
shl edx, 4
mov eax, dword [ebx + 0x89c]
and eax, 0xf
add edx, eax
mov dword [ebp - 0x8c], edx
mov ecx, dword [ebp - 0x38]
mov dword [ecx], edx
mov eax, dword [ebp - 0x34]
lea eax, [eax + eax*2]
add edx, eax
mov dword [ebp - 0x34], edx
add dword [ebp - 0x38], 4
jmp 0x596c61
mov ecx, dword [ebp - 0x34]
lea ecx, [ecx + ecx*8]
lea edi, [esi + esi*2]
add ecx, edi
add ecx, dword [ebp - 0x8c]
mov dword [ebp - 0x34], ecx
mov ecx, dword [ebp - 4]
shl esi, cl
mov eax, dword [ebp - 0x38]
mov dword [eax], esi
add dword [ebp - 0x38], 4
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x8c]
shl eax, cl
mov edx, dword [ebp - 0x38]
mov dword [edx], eax
add dword [ebp - 0x38], 4
inc dword [ebp - 0x44]
mov ecx, dword [ebp - 0x44]
cmp ecx, dword [ebp + 0x10]
jb 0x59628e
jmp 0x59707b
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x38], eax
xor edx, edx
mov dword [ebp - 0x44], edx
mov ecx, dword [ebp - 0x44]
cmp ecx, dword [ebp + 0x10]
jae 0x59707b
push 0
push ebx
call fcn.00598c68
add esp, 8
mov edi, eax
cmp edi, 0x80000000
je 0x59707b
mov eax, dword [ebp - 0x6c]
cmp eax, dword [ebp - 0x68]
jg 0x596cf1
mov edx, dword [ebp - 0x6c]
cmp edx, dword [ebp - 0x64]
jg 0x596cf1
push 1
push ebx
call fcn.00598c68
add esp, 8
add eax, eax
mov ecx, edi
and ecx, 1
or eax, ecx
mov dword [ebp - 0xb0], eax
mov ecx, dword [ebp - 0xb0]
add ecx, edi
sar ecx, 1
mov dword [ebp - 0xb4], ecx
mov eax, dword [ebp - 0xb0]
sub eax, edi
sar eax, 1
mov dword [ebp - 0xb8], eax
jmp 0x596d51
mov edx, dword [ebp - 0x64]
cmp edx, dword [ebp - 0x68]
jg 0x596d26
push 1
push ebx
call fcn.00598c68
add esp, 8
mov dword [ebp - 0xb4], eax
sub eax, edi
mov dword [ebp - 0xb8], eax
mov edx, dword [ebp - 0xb4]
add edx, dword [ebp - 0xb8]
mov dword [ebp - 0xb0], edx
jmp 0x596d51
push 1
push ebx
call fcn.00598c68
add esp, 8
mov dword [ebp - 0xb8], eax
add edi, eax
mov dword [ebp - 0xb4], edi
mov edx, dword [ebp - 0xb8]
add edx, dword [ebp - 0xb4]
mov dword [ebp - 0xb0], edx
mov ecx, dword [ebp - 0xb0]
sar ecx, 1
push ecx
call fcn.00586c84
pop ecx
mov edx, dword [ebp - 0x6c]
sar edx, 8
mov ecx, dword [ebp - 0x6c]
sub ecx, edx
add eax, ecx
mov dword [ebp - 0x6c], eax
push dword [ebp - 0xb4]
call fcn.00586c84
pop ecx
mov edx, dword [ebp - 0x64]
sar edx, 8
mov ecx, dword [ebp - 0x64]
sub ecx, edx
add eax, ecx
mov dword [ebp - 0x64], eax
push dword [ebp - 0xb8]
call fcn.00586c84
pop ecx
mov edx, dword [ebp - 0x68]
sar edx, 8
mov ecx, dword [ebp - 0x68]
sub ecx, edx
add eax, ecx
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x114]
mov ecx, dword [eax]
lea eax, [ebp - 0x40]
mov edx, dword [eax]
imul edx, dword [ebp - 0x110]
add edx, 0x80
sar edx, 8
add ecx, edx
add ecx, dword [ebp - 0xb4]
mov dword [ebp - 0xbc], ecx
lea ecx, [ebp - 0x10c]
mov eax, dword [ecx]
lea edx, [ebp - 0x3c]
mov edx, dword [edx]
imul edx, dword [ebp - 0x108]
add edx, 0x80
sar edx, 8
add eax, edx
add eax, dword [ebp - 0xb8]
mov dword [ebp - 0xc0], eax
cmp dword [ebp - 0x110], 0
setge al
and eax, 1
cmp dword [ebp - 0xb4], 0
setg cl
and ecx, 1
cmp eax, ecx
jne 0x596e31
lea ecx, [ebp - 0x40]
mov eax, dword [ecx]
inc dword [ecx]
cmp eax, 0x100
jne 0x596e42
lea edx, [ebp - 0x40]
dec dword [edx]
jmp 0x596e42
lea ecx, [ebp - 0x40]
mov eax, dword [ecx]
add dword [ecx], 0xffffffff
test eax, eax
jne 0x596e42
lea edx, [ebp - 0x40]
inc dword [edx]
cmp dword [ebp - 0x108], 0
setge cl
and ecx, 1
cmp dword [ebp - 0xb8], 0
setg al
and eax, 1
cmp ecx, eax
jne 0x596e75
lea edx, [ebp - 0x3c]
mov eax, dword [edx]
inc dword [edx]
cmp eax, 0x100
jne 0x596e86
lea edx, [ebp - 0x3c]
dec dword [edx]
jmp 0x596e86
lea ecx, [ebp - 0x3c]
mov eax, dword [ecx]
add dword [ecx], 0xffffffff
test eax, eax
jne 0x596e86
lea edx, [ebp - 0x3c]
inc dword [edx]
lea ecx, [ebp - 0x114]
mov eax, dword [ebp - 0xbc]
sub eax, dword [ecx]
mov dword [ebp - 0x110], eax
lea edx, [ebp - 0x114]
add dword [edx], eax
lea ecx, [ebp - 0x10c]
mov eax, dword [ebp - 0xc0]
sub eax, dword [ecx]
mov dword [ebp - 0x108], eax
lea edx, [ebp - 0x10c]
add dword [edx], eax
test byte [ebp - 8], 0x40
je 0x597022
cmp dword [ebx + 0x8a0], 8
jl 0x596f55
cmp dword [ebx + 0x48], 0
je 0x596ee6
dec dword [ebx + 0x48]
mov ecx, dword [ebx + 0x3c]
and ecx, 1
jmp 0x596f0d
inc dword [ebx + 0x30]
mov ecx, dword [ebx + 0x30]
cmp ecx, dword [ebx + 0x2c]
jne 0x596ef9
lea eax, [ebx + 0x24]
push eax
call dword [ebx + 0x24]
pop ecx
mov dword [ebx + 0x48], 7
mov edx, dword [ebx + 0x30]
xor ecx, ecx
mov cl, byte [edx]
mov dword [ebx + 0x3c], ecx
and ecx, 1
test ecx, ecx
je 0x596f1b
shr dword [ebx + 0x3c], 1
mov eax, 1
jmp 0x596f20
shr dword [ebx + 0x3c], 1
xor eax, eax
test eax, eax
jne 0x596fc0
jmp 0x596f55
inc dword [ebx + 0x30]
mov edx, dword [ebx + 0x30]
cmp edx, dword [ebx + 0x2c]
jne 0x596f3d
lea ecx, [ebx + 0x24]
push ecx
call dword [ebx + 0x24]
pop ecx
mov ecx, dword [ebx + 0x48]
mov eax, dword [ebx + 0x30]
xor edx, edx
mov dl, byte [eax]
shl edx, cl
or dword [ebx + 0x3c], edx
mov ecx, dword [ebx + 0x48]
add ecx, 8
mov dword [ebx + 0x48], ecx
cmp dword [ebx + 0x48], 8
jl 0x596f2a
mov eax, dword [ebx + 0x3c]
mov dword [ebp - 0xc4], eax
cmp dword [ebx + 0x48], 0x20
jle 0x596f84
sub dword [ebx + 0x48], 8
mov ecx, 8
sub ecx, dword [ebx + 0x48]
mov eax, dword [ebx + 0x30]
xor edx, edx
mov dl, byte [eax]
sar edx, cl
mov dword [ebx + 0x3c], edx
jmp 0x596f8c
sub dword [ebx + 0x48], 8
shr dword [ebx + 0x3c], 8
and dword [ebp - 0xc4], 0xff
mov ecx, dword [ebp - 0xc4]
cmp ecx, dword [ebx + 0x89c]
je 0x596fba
mov eax, dword [ebp - 0xc4]
mov dword [ebx + 0x89c], eax
xor edx, edx
mov dword [ebx + 0x8a0], edx
jmp 0x596fc0
inc dword [ebx + 0x8a0]
lea ecx, [ebp - 0x114]
mov eax, dword [ecx]
shl eax, 4
mov edx, dword [ebx + 0x89c]
sar edx, 4
add eax, edx
mov dword [ebp - 0xbc], eax
mov edx, dword [ebp - 0x38]
mov dword [edx], eax
mov edx, dword [ebp - 0x34]
lea edx, [edx + edx*2]
add eax, edx
mov dword [ebp - 0x34], eax
add dword [ebp - 0x38], 4
lea ecx, [ebp - 0x10c]
mov ecx, dword [ecx]
shl ecx, 4
mov eax, dword [ebx + 0x89c]
and eax, 0xf
add ecx, eax
mov dword [ebp - 0xc0], ecx
mov eax, dword [ebp - 0x38]
mov dword [eax], ecx
mov eax, dword [ebp - 0x34]
lea eax, [eax + eax*2]
add ecx, eax
mov dword [ebp - 0x34], ecx
add dword [ebp - 0x38], 4
jmp 0x59706c
mov edx, dword [ebp - 0x34]
lea edx, [edx + edx*8]
lea eax, [ebp - 0x114]
mov ecx, dword [eax]
lea ecx, [ecx + ecx*2]
add edx, ecx
lea eax, [ebp - 0x10c]
add edx, dword [eax]
mov dword [ebp - 0x34], edx
mov ecx, dword [ebp - 4]
lea edx, [ebp - 0x114]
mov eax, dword [edx]
shl eax, cl
mov edx, dword [ebp - 0x38]
mov dword [edx], eax
add dword [ebp - 0x38], 4
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x10c]
mov edx, dword [eax]
shl edx, cl
mov ecx, dword [ebp - 0x38]
mov dword [ecx], edx
add dword [ebp - 0x38], 4
inc dword [ebp - 0x44]
mov ecx, dword [ebp - 0x44]
cmp ecx, dword [ebp + 0x10]
jb 0x596c8c
mov eax, dword [ebp - 0x64]
mov dword [ebx + 0x890], eax
mov edx, dword [ebp - 0x68]
mov dword [ebx + 0x894], edx
mov ecx, dword [ebp - 0x6c]
mov dword [ebx + 0x88c], ecx
mov eax, dword [ebp - 0x70]
mov dword [ebx + 0x898], eax
jmp 0x597e5f
cmp word [ebx + 8], 3
jne 0x5974a3
cmp word [ebx + 0xa], 0
je 0x5974a3
test byte [ebp - 8], 1
je 0x5974a3
test byte [ebp - 8], 2
je 0x5971aa
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x38], edx
xor ecx, ecx
mov dword [ebp - 0x44], ecx
mov eax, dword [ebp - 0x44]
cmp eax, dword [ebp + 0x10]
jae 0x597e5f
push 0
push ebx
call fcn.00598c68
add esp, 8
mov edi, eax
cmp eax, 0x80000000
je 0x597e5f
add dword [ebp - 0x110], edi
mov edx, dword [ebp - 0x110]
lea ecx, [ebp - 0x114]
add dword [ecx], edx
mov ecx, dword [ecx]
mov eax, dword [ebp - 0x34]
lea eax, [eax + eax*2]
add ecx, eax
mov dword [ebp - 0x34], ecx
lea edx, [ebp - 0x114]
mov ecx, dword [edx]
cmp ecx, dword [ebp - 0x1c]
jge 0x597151
lea eax, [ebp - 0x114]
mov edx, dword [eax]
mov eax, dword [ebp - 0x48]
neg eax
cmp edx, eax
jge 0x597143
mov dword [ebp - 0x4c], 1
mov edx, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x24]
mov dword [edx], ecx
add dword [ebp - 0x38], 4
jmp 0x597196
lea ecx, [ebp - 0x114]
mov eax, dword [ecx]
cmp eax, dword [ebp - 0x20]
jle 0x597180
lea edx, [ebp - 0x114]
mov ecx, dword [edx]
cmp ecx, dword [ebp - 0x48]
jle 0x597172
mov dword [ebp - 0x4c], 1
mov eax, dword [ebp - 0x38]
mov edx, dword [ebp - 0x28]
mov dword [eax], edx
add dword [ebp - 0x38], 4
jmp 0x597196
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x114]
mov edx, dword [eax]
shl edx, cl
mov eax, dword [ebp - 0x38]
mov dword [eax], edx
add dword [ebp - 0x38], 4
inc dword [ebp - 0x44]
mov edx, dword [ebp - 0x44]
cmp edx, dword [ebp + 0x10]
jb 0x5970e5
jmp 0x597e5f
test dword [ebp - 8], 0x410
je 0x597357
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x38], ecx
xor ecx, ecx
mov dword [ebp - 0x44], ecx
mov eax, dword [ebp - 0x44]
cmp eax, dword [ebp + 0x10]
jae 0x597e5f
test byte [ebp - 7], 4
je 0x5971e7
lea edx, [ebp - 0x30]
push edx
push 0
push ebx
call fcn.00598f38
add esp, 0xc
mov edi, eax
jmp 0x5971f4
push 0
push ebx
call fcn.00598c68
add esp, 8
mov edi, eax
cmp edi, 0x80000000
je 0x597e5f
mov eax, dword [ebx + 0x80]
mov dword [ebp - 0x14], eax
lea eax, [ebx + 0x8cc]
jmp 0x597286
mov edx, dword [ebp - 0x10]
mov edx, dword [eax + edx*4 + 0x10]
mov ecx, edx
and ecx, 0xffff
imul ecx, dword [eax + 8]
sar ecx, 7
mov esi, edx
and esi, 0xffff0000
sar esi, 7
imul esi, dword [eax + 8]
add ecx, esi
inc ecx
sar ecx, 1
add ecx, edi
mov dword [ebp - 0xc8], ecx
test edx, edx
je 0x597271
test edi, edi
je 0x597271
xor edx, edi
jl 0x597262
mov edx, dword [eax + 8]
inc dword [eax + 8]
cmp edx, 0x100
jne 0x597271
dec dword [eax + 8]
jmp 0x597271
mov ecx, dword [eax + 8]
add dword [eax + 8], 0xffffffff
cmp ecx, dword [ebp - 0xc]
jne 0x597271
inc dword [eax + 8]
mov edi, dword [ebp - 0xc8]
mov edx, dword [ebp - 0x10]
add edx, dword [eax]
and edx, 7
mov dword [eax + edx*4 + 0x10], edi
add eax, 0x60
mov ecx, dword [ebp - 0x14]
add dword [ebp - 0x14], 0xffffffff
test ecx, ecx
jne 0x597211
mov eax, dword [ebp - 0x10]
inc eax
and eax, 7
mov dword [ebp - 0x10], eax
test byte [ebp - 8], 0x80
je 0x5972e8
test byte [ebp - 7], 1
je 0x5972ca
mov ecx, dword [ebp - 0x30]
add ecx, dword [ebx + 0x8a8]
add edi, ecx
mov eax, dword [ebp - 0x34]
lea eax, [eax + eax*2]
add eax, edi
mov dword [ebp - 0x34], eax
mov edx, dword [ebp - 0x30]
neg edx
mov dword [ebx + 0x8a8], edx
jmp 0x5972d8
add edi, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x34]
lea ecx, [ecx + ecx*2]
add ecx, edi
mov dword [ebp - 0x34], ecx
mov ecx, dword [ebp - 4]
shl edi, cl
mov eax, dword [ebp - 0x38]
mov dword [eax], edi
add dword [ebp - 0x38], 4
jmp 0x597343
mov edx, dword [ebp - 0x34]
lea edx, [edx + edx*2]
add edx, edi
mov dword [ebp - 0x34], edx
cmp edi, dword [ebp - 0x1c]
jge 0x597316
mov ecx, dword [ebp - 0x48]
neg ecx
cmp edi, ecx
jge 0x597308
mov dword [ebp - 0x4c], 1
mov eax, dword [ebp - 0x38]
mov edx, dword [ebp - 0x24]
mov dword [eax], edx
add dword [ebp - 0x38], 4
jmp 0x597343
cmp edi, dword [ebp - 0x20]
jle 0x597335
cmp edi, dword [ebp - 0x48]
jle 0x597327
mov dword [ebp - 0x4c], 1
mov ecx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x28]
mov dword [ecx], eax
add dword [ebp - 0x38], 4
jmp 0x597343
mov ecx, dword [ebp - 4]
shl edi, cl
mov eax, dword [ebp - 0x38]
mov dword [eax], edi
add dword [ebp - 0x38], 4
inc dword [ebp - 0x44]
mov edx, dword [ebp - 0x44]
cmp edx, dword [ebp + 0x10]
jb 0x5971ce
jmp 0x597e5f
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x38], ecx
xor eax, eax
mov dword [ebp - 0x44], eax
mov edx, dword [ebp - 0x44]
cmp edx, dword [ebp + 0x10]
jae 0x597e5f
push 0
push ebx
call fcn.00598c68
add esp, 8
mov edi, eax
cmp eax, 0x80000000
je 0x597e5f
lea edx, [ebp - 0x114]
mov ecx, dword [edx]
lea esi, [ebp - 0x40]
mov eax, dword [esi]
imul dword [ebp - 0x110]
add eax, 0x80
sar eax, 8
add ecx, eax
add ecx, edi
mov dword [ebp - 0xcc], ecx
cmp dword [ebp - 0x110], 0
setge dl
and edx, 1
test edi, edi
setg cl
and ecx, 1
cmp edx, ecx
jne 0x5973d9
lea ecx, [ebp - 0x40]
mov eax, dword [ecx]
inc dword [ecx]
cmp eax, 0x100
jne 0x5973ea
lea edx, [ebp - 0x40]
dec dword [edx]
jmp 0x5973ea
lea ecx, [ebp - 0x40]
mov eax, dword [ecx]
add dword [ecx], 0xffffffff
test eax, eax
jne 0x5973ea
lea edx, [ebp - 0x40]
inc dword [edx]
lea ecx, [ebp - 0x114]
mov eax, dword [ebp - 0xcc]
sub eax, dword [ecx]
mov dword [ebp - 0x110], eax
lea edx, [ebp - 0x114]
mov eax, dword [ebp - 0xcc]
mov dword [edx], eax
mov edx, dword [ebp - 0x34]
lea edx, [edx + edx*2]
add eax, edx
mov dword [ebp - 0x34], eax
lea ecx, [ebp - 0x114]
mov ecx, dword [ecx]
cmp ecx, dword [ebp - 0x1c]
jge 0x59744a
lea eax, [ebp - 0x114]
mov edx, dword [eax]
mov eax, dword [ebp - 0x48]
neg eax
cmp edx, eax
jge 0x59743c
mov dword [ebp - 0x4c], 1
mov edx, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x24]
mov dword [edx], ecx
add dword [ebp - 0x38], 4
jmp 0x59748f
lea ecx, [ebp - 0x114]
mov eax, dword [ecx]
cmp eax, dword [ebp - 0x20]
jle 0x597479
lea edx, [ebp - 0x114]
mov ecx, dword [edx]
cmp ecx, dword [ebp - 0x48]
jle 0x59746b
mov dword [ebp - 0x4c], 1
mov eax, dword [ebp - 0x38]
mov edx, dword [ebp - 0x28]
mov dword [eax], edx
add dword [ebp - 0x38], 4
jmp 0x59748f
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x114]
mov edx, dword [eax]
shl edx, cl
mov eax, dword [ebp - 0x38]
mov dword [eax], edx
add dword [ebp - 0x38], 4
inc dword [ebp - 0x44]
mov edx, dword [ebp - 0x44]
cmp edx, dword [ebp + 0x10]
jb 0x59736e
jmp 0x597e5f
cmp word [ebx + 8], 3
jne 0x597bc8
cmp word [ebx + 0xa], 0
je 0x597bc8
test byte [ebp - 8], 1
jne 0x597bc8
test byte [ebp - 8], 2
je 0x59764d
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x38], ecx
xor ecx, ecx
mov dword [ebp - 0x44], ecx
mov eax, dword [ebp - 0x44]
cmp eax, dword [ebp + 0x10]
jae 0x597e5f
push 0
push ebx
call fcn.00598c68
add esp, 8
mov edi, eax
cmp eax, 0x80000000
je 0x597e5f
add dword [ebp - 0x110], edi
mov edx, dword [ebp - 0x110]
lea ecx, [ebp - 0x114]
add dword [ecx], edx
mov ecx, dword [ecx]
mov eax, dword [ebp - 0x34]
lea eax, [eax + eax*2]
add ecx, eax
mov dword [ebp - 0x34], ecx
lea edx, [ebp - 0x114]
mov ecx, dword [edx]
cmp ecx, dword [ebp - 0x1c]
jge 0x597550
lea eax, [ebp - 0x114]
mov edx, dword [eax]
mov eax, dword [ebp - 0x48]
neg eax
cmp edx, eax
jge 0x597542
mov dword [ebp - 0x4c], 1
mov edx, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x24]
mov dword [edx], ecx
add dword [ebp - 0x38], 4
jmp 0x597595
lea ecx, [ebp - 0x114]
mov eax, dword [ecx]
cmp eax, dword [ebp - 0x20]
jle 0x59757f
lea edx, [ebp - 0x114]
mov ecx, dword [edx]
cmp ecx, dword [ebp - 0x48]
jle 0x597571
mov dword [ebp - 0x4c], 1
mov eax, dword [ebp - 0x38]
mov edx, dword [ebp - 0x28]
mov dword [eax], edx
add dword [ebp - 0x38], 4
jmp 0x597595
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x114]
mov edx, dword [eax]
shl edx, cl
mov eax, dword [ebp - 0x38]
mov dword [eax], edx
add dword [ebp - 0x38], 4
push 1
push ebx
call fcn.00598c68
add esp, 8
add dword [ebp - 0x108], eax
mov edx, dword [ebp - 0x108]
lea ecx, [ebp - 0x10c]
add dword [ecx], edx
mov ecx, dword [ecx]
mov eax, dword [ebp - 0x34]
lea eax, [eax + eax*2]
add ecx, eax
mov dword [ebp - 0x34], ecx
lea edx, [ebp - 0x10c]
mov ecx, dword [edx]
cmp ecx, dword [ebp - 0x1c]
jge 0x5975f4
lea eax, [ebp - 0x10c]
mov edx, dword [eax]
mov eax, dword [ebp - 0x48]
neg eax
cmp edx, eax
jge 0x5975e6
mov dword [ebp - 0x4c], 1
mov edx, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x24]
mov dword [edx], ecx
add dword [ebp - 0x38], 4
jmp 0x597639
lea ecx, [ebp - 0x10c]
mov eax, dword [ecx]
cmp eax, dword [ebp - 0x20]
jle 0x597623
lea edx, [ebp - 0x10c]
mov ecx, dword [edx]
cmp ecx, dword [ebp - 0x48]
jle 0x597615
mov dword [ebp - 0x4c], 1
mov eax, dword [ebp - 0x38]
mov edx, dword [ebp - 0x28]
mov dword [eax], edx
add dword [ebp - 0x38], 4
jmp 0x597639
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x10c]
mov edx, dword [eax]
shl edx, cl
mov eax, dword [ebp - 0x38]
mov dword [eax], edx
add dword [ebp - 0x38], 4
inc dword [ebp - 0x44]
mov edx, dword [ebp - 0x44]
cmp edx, dword [ebp + 0x10]
jb 0x5974e4
jmp 0x597e5f
test dword [ebp - 8], 0x410
je 0x597965
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x38], ecx
xor ecx, ecx
mov dword [ebp - 0x44], ecx
mov eax, dword [ebp - 0x44]
cmp eax, dword [ebp + 0x10]
jae 0x597e5f
test byte [ebp - 7], 4
je 0x59769b
lea edx, [ebp - 0x30]
push edx
push 0
push ebx
call fcn.00598f38
add esp, 0xc
mov esi, eax
lea eax, [ebp - 0x2c]
push eax
push 1
push ebx
call fcn.00598f38
add esp, 0xc
mov edx, eax
jmp 0x5976b5
push 0
push ebx
call fcn.00598c68
add esp, 8
mov esi, eax
push 1
push ebx
call fcn.00598c68
add esp, 8
mov edx, eax
cmp esi, 0x80000000
je 0x597e5f
mov eax, dword [ebx + 0x80]
mov dword [ebp - 0x14], eax
lea eax, [ebx + 0x8cc]
jmp 0x5977f4
mov ecx, dword [ebp - 0x10]
mov ecx, dword [eax + ecx*4 + 0x10]
mov dword [ebp - 0xe0], ecx
mov ecx, dword [ebp - 0x10]
mov ecx, dword [eax + ecx*4 + 0x30]
mov dword [ebp - 0xe4], ecx
mov ecx, dword [ebp - 0x10]
add ecx, dword [eax]
and ecx, 7
mov dword [ebp - 0xe8], ecx
mov ecx, dword [ebp - 0xe0]
and ecx, 0xffff
imul ecx, dword [eax + 8]
sar ecx, 7
mov edi, dword [ebp - 0xe0]
and edi, 0xffff0000
sar edi, 7
imul edi, dword [eax + 8]
add ecx, edi
inc ecx
sar ecx, 1
add ecx, esi
mov dword [ebp - 0xd0], ecx
cmp dword [ebp - 0xe0], 0
je 0x597767
test esi, esi
je 0x597767
xor esi, dword [ebp - 0xe0]
jl 0x597758
mov ecx, dword [eax + 8]
inc dword [eax + 8]
cmp ecx, 0x100
jne 0x597767
dec dword [eax + 8]
jmp 0x597767
mov ecx, dword [eax + 8]
add dword [eax + 8], 0xffffffff
cmp ecx, dword [ebp - 0xc]
jne 0x597767
inc dword [eax + 8]
mov esi, dword [ebp - 0xd0]
mov ecx, dword [ebp - 0xe8]
mov dword [eax + ecx*4 + 0x10], esi
mov ecx, dword [ebp - 0xe4]
and ecx, 0xffff
imul ecx, dword [eax + 0xc]
sar ecx, 7
mov edi, dword [ebp - 0xe4]
and edi, 0xffff0000
sar edi, 7
imul edi, dword [eax + 0xc]
add ecx, edi
inc ecx
sar ecx, 1
add ecx, edx
mov dword [ebp - 0xd4], ecx
cmp dword [ebp - 0xe4], 0
je 0x5977e1
test edx, edx
je 0x5977e1
xor edx, dword [ebp - 0xe4]
jl 0x5977d2
mov edx, dword [eax + 0xc]
inc dword [eax + 0xc]
cmp edx, 0x100
jne 0x5977e1
dec dword [eax + 0xc]
jmp 0x5977e1
mov ecx, dword [eax + 0xc]
add dword [eax + 0xc], 0xffffffff
cmp ecx, dword [ebp - 0xc]
jne 0x5977e1
inc dword [eax + 0xc]
mov edx, dword [ebp - 0xd4]
mov ecx, dword [ebp - 0xe8]
mov dword [eax + ecx*4 + 0x30], edx
add eax, 0x60
mov ecx, dword [ebp - 0x14]
add dword [ebp - 0x14], 0xffffffff
test ecx, ecx
jne 0x5976d5
mov eax, dword [ebp - 0x10]
inc eax
and eax, 7
mov dword [ebp - 0x10], eax
test byte [ebp - 8], 0x80
je 0x59784d
test byte [ebp - 7], 1
je 0x597847
mov eax, dword [ebp - 0x30]
add eax, dword [ebx + 0x8a8]
add esi, eax
mov ecx, dword [ebp - 0x2c]
add ecx, dword [ebx + 0x8ac]
add edx, ecx
mov eax, dword [ebp - 0x30]
neg eax
mov dword [ebx + 0x8a8], eax
mov ecx, dword [ebp - 0x2c]
neg ecx
mov dword [ebx + 0x8ac], ecx
jmp 0x59784d
add esi, dword [ebp - 0x30]
add edx, dword [ebp - 0x2c]
test byte [ebp - 7], 0x40
je 0x59787a
add edx, edx
mov eax, esi
and eax, 1
or edx, eax
mov dword [ebp - 0xd8], edx
mov dword [ebp - 0xdc], esi
sub edx, esi
sar edx, 1
mov esi, dword [ebp - 0xd8]
add esi, dword [ebp - 0xdc]
sar esi, 1
mov eax, dword [ebp - 0x34]
lea eax, [eax + eax*8]
lea ecx, [esi + esi*2]
add eax, ecx
add eax, edx
mov dword [ebp - 0x34], eax
test byte [ebp - 8], 0x80
je 0x5978b1
mov ecx, dword [ebp - 4]
shl esi, cl
mov eax, dword [ebp - 0x38]
mov dword [eax], esi
add dword [ebp - 0x38], 4
mov ecx, dword [ebp - 4]
shl edx, cl
mov eax, dword [ebp - 0x38]
mov dword [eax], edx
add dword [ebp - 0x38], 4
jmp 0x597951
cmp esi, dword [ebp - 0x1c]
jge 0x5978d4
mov eax, dword [ebp - 0x48]
neg eax
cmp esi, eax
jge 0x5978c6
mov dword [ebp - 0x4c], 1
mov ecx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x24]
mov dword [ecx], eax
add dword [ebp - 0x38], 4
jmp 0x597901
cmp esi, dword [ebp - 0x20]
jle 0x5978f3
cmp esi, dword [ebp - 0x48]
jle 0x5978e5
mov dword [ebp - 0x4c], 1
mov ecx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x28]
mov dword [ecx], eax
add dword [ebp - 0x38], 4
jmp 0x597901
mov ecx, dword [ebp - 4]
shl esi, cl
mov eax, dword [ebp - 0x38]
mov dword [eax], esi
add dword [ebp - 0x38], 4
cmp edx, dword [ebp - 0x1c]
jge 0x597924
mov ecx, dword [ebp - 0x48]
neg ecx
cmp edx, ecx
jge 0x597916
mov dword [ebp - 0x4c], 1
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x24]
mov dword [edx], eax
add dword [ebp - 0x38], 4
jmp 0x597951
cmp edx, dword [ebp - 0x20]
jle 0x597943
cmp edx, dword [ebp - 0x48]
jle 0x597935
mov dword [ebp - 0x4c], 1
mov edx, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x28]
mov dword [edx], ecx
add dword [ebp - 0x38], 4
jmp 0x597951
mov ecx, dword [ebp - 4]
shl edx, cl
mov eax, dword [ebp - 0x38]
mov dword [eax], edx
add dword [ebp - 0x38], 4
inc dword [ebp - 0x44]
mov edx, dword [ebp - 0x44]
cmp edx, dword [ebp + 0x10]
jb 0x597671
jmp 0x597e5f
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x38], ecx
xor eax, eax
mov dword [ebp - 0x44], eax
mov edx, dword [ebp - 0x44]
cmp edx, dword [ebp + 0x10]
jae 0x597e5f
push 0
push ebx
call fcn.00598c68
add esp, 8
mov edi, eax
cmp eax, 0x80000000
je 0x597e5f
lea edx, [ebp - 0x114]
mov ecx, dword [edx]
lea esi, [ebp - 0x40]
mov eax, dword [esi]
imul dword [ebp - 0x110]
add eax, 0x80
sar eax, 8
add ecx, eax
add ecx, edi
mov dword [ebp - 0xec], ecx
cmp dword [ebp - 0x110], 0
setge dl
and edx, 1
test edi, edi
setg cl
and ecx, 1
cmp edx, ecx
jne 0x5979e7
lea ecx, [ebp - 0x40]
mov eax, dword [ecx]
inc dword [ecx]
cmp eax, 0x100
jne 0x5979f8
lea edx, [ebp - 0x40]
dec dword [edx]
jmp 0x5979f8
lea ecx, [ebp - 0x40]
mov eax, dword [ecx]
add dword [ecx], 0xffffffff
test eax, eax
jne 0x5979f8
lea edx, [ebp - 0x40]
inc dword [edx]
lea ecx, [ebp - 0x114]
mov eax, dword [ebp - 0xec]
sub eax, dword [ecx]
mov dword [ebp - 0x110], eax
lea edx, [ebp - 0x114]
mov eax, dword [ebp - 0xec]
mov dword [edx], eax
mov edx, dword [ebp - 0x34]
lea edx, [edx + edx*2]
add eax, edx
mov dword [ebp - 0x34], eax
push 1
push ebx
call fcn.00598c68
add esp, 8
mov edi, eax
lea eax, [ebp - 0x10c]
mov edx, dword [eax]
lea ecx, [ebp - 0x3c]
mov eax, dword [ecx]
imul eax, dword [ebp - 0x108]
add eax, 0x80
sar eax, 8
add edx, eax
add edx, edi
mov dword [ebp - 0xec], edx
cmp dword [ebp - 0x108], 0
setge dl
and edx, 1
test edi, edi
setg cl
and ecx, 1
cmp edx, ecx
jne 0x597a86
lea ecx, [ebp - 0x3c]
mov eax, dword [ecx]
inc dword [ecx]
cmp eax, 0x100
jne 0x597a97
lea edx, [ebp - 0x3c]
dec dword [edx]
jmp 0x597a97
lea ecx, [ebp - 0x3c]
mov eax, dword [ecx]
add dword [ecx], 0xffffffff
test eax, eax
jne 0x597a97
lea edx, [ebp - 0x3c]
inc dword [edx]
lea ecx, [ebp - 0x10c]
mov eax, dword [ebp - 0xec]
sub eax, dword [ecx]
mov dword [ebp - 0x108], eax
lea edx, [ebp - 0x10c]
mov eax, dword [ebp - 0xec]
mov dword [edx], eax
mov edx, dword [ebp - 0x34]
lea edx, [edx + edx*2]
add eax, edx
mov dword [ebp - 0x34], eax
lea ecx, [ebp - 0x114]
mov ecx, dword [ecx]
cmp ecx, dword [ebp - 0x1c]
jge 0x597af7
lea eax, [ebp - 0x114]
mov edx, dword [eax]
mov eax, dword [ebp - 0x48]
neg eax
cmp edx, eax
jge 0x597ae9
mov dword [ebp - 0x4c], 1
mov edx, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x24]
mov dword [edx], ecx
add dword [ebp - 0x38], 4
jmp 0x597b3c
lea ecx, [ebp - 0x114]
mov eax, dword [ecx]
cmp eax, dword [ebp - 0x20]
jle 0x597b26
lea edx, [ebp - 0x114]
mov ecx, dword [edx]
cmp ecx, dword [ebp - 0x48]
jle 0x597b18
mov dword [ebp - 0x4c], 1
mov eax, dword [ebp - 0x38]
mov edx, dword [ebp - 0x28]
mov dword [eax], edx
add dword [ebp - 0x38], 4
jmp 0x597b3c
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x114]
mov edx, dword [eax]
shl edx, cl
mov eax, dword [ebp - 0x38]
mov dword [eax], edx
add dword [ebp - 0x38], 4
lea edx, [ebp - 0x10c]
mov ecx, dword [edx]
cmp ecx, dword [ebp - 0x1c]
jge 0x597b6f
lea ecx, [ebp - 0x10c]
mov eax, dword [ecx]
mov edx, dword [ebp - 0x48]
neg edx
cmp eax, edx
jge 0x597b61
mov dword [ebp - 0x4c], 1
mov ecx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x24]
mov dword [ecx], eax
add dword [ebp - 0x38], 4
jmp 0x597bb4
lea edx, [ebp - 0x10c]
mov ecx, dword [edx]
cmp ecx, dword [ebp - 0x20]
jle 0x597b9e
lea eax, [ebp - 0x10c]
mov edx, dword [eax]
cmp edx, dword [ebp - 0x48]
jle 0x597b90
mov dword [ebp - 0x4c], 1
mov ecx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x28]
mov dword [ecx], eax
add dword [ebp - 0x38], 4
jmp 0x597bb4
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x10c]
mov edx, dword [eax]
shl edx, cl
mov eax, dword [ebp - 0x38]
mov dword [eax], edx
add dword [ebp - 0x38], 4
inc dword [ebp - 0x44]
mov edx, dword [ebp - 0x44]
cmp edx, dword [ebp + 0x10]
jb 0x59797c
jmp 0x597e5f
cmp word [ebx + 8], 2
jne 0x597caf
test byte [ebp - 8], 1
je 0x597caf
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x38], ecx
xor ecx, ecx
mov dword [ebp - 0x44], ecx
mov eax, dword [ebp - 0x44]
cmp eax, dword [ebp + 0x10]
jae 0x597e5f
push 0
push ebx
call fcn.005989ef
add esp, 8
mov edi, eax
cmp eax, 0x80000000
je 0x597e5f
add dword [ebp - 0x110], edi
mov edx, dword [ebp - 0x110]
lea ecx, [ebp - 0x114]
add dword [ecx], edx
cmp word [ebx + 0xa], 0
je 0x597c85
lea ecx, [ebp - 0x114]
mov eax, dword [ecx]
cmp eax, dword [ebp - 0x1c]
jge 0x597c59
lea edx, [ebp - 0x114]
mov ecx, dword [edx]
mov eax, dword [ebp - 0x48]
neg eax
cmp ecx, eax
jge 0x597c4c
mov dword [ebp - 0x4c], 1
lea edx, [ebp - 0x114]
mov eax, dword [ebp - 0x1c]
mov dword [edx], eax
jmp 0x597c85
lea edx, [ebp - 0x114]
mov ecx, dword [edx]
cmp ecx, dword [ebp - 0x20]
jle 0x597c85
lea ecx, [ebp - 0x114]
mov eax, dword [ecx]
cmp eax, dword [ebp - 0x48]
jle 0x597c7a
mov dword [ebp - 0x4c], 1
lea edx, [ebp - 0x114]
mov eax, dword [ebp - 0x20]
mov dword [edx], eax
mov ecx, dword [ebp - 4]
lea edx, [ebp - 0x114]
mov eax, dword [edx]
shl eax, cl
mov edx, dword [ebp - 0x38]
mov dword [edx], eax
add dword [ebp - 0x38], 4
inc dword [ebp - 0x44]
mov ecx, dword [ebp - 0x44]
cmp ecx, dword [ebp + 0x10]
jb 0x597bf4
jmp 0x597e5f
cmp word [ebx + 8], 3
jge 0x597e5a
test byte [ebp - 8], 1
jne 0x597e5a
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x38], ecx
xor eax, eax
mov dword [ebp - 0x44], eax
mov edx, dword [ebp - 0x44]
cmp edx, dword [ebp + 0x10]
jae 0x597e5f
push 0
push ebx
call fcn.005989ef
add esp, 8
mov edi, eax
cmp edi, 0x80000000
je 0x597e5f
push 1
push ebx
call fcn.005989ef
add esp, 8
mov dword [ebp - 0xf4], eax
and eax, 1
add edi, edi
or eax, edi
mov dword [ebp - 0xf0], eax
mov edx, dword [ebp - 0xf0]
add edx, dword [ebp - 0xf4]
sar edx, 1
add dword [ebp - 0x110], edx
mov ecx, dword [ebp - 0x110]
lea eax, [ebp - 0x114]
add dword [eax], ecx
mov edx, dword [ebp - 0xf0]
sub edx, dword [ebp - 0xf4]
sar edx, 1
add dword [ebp - 0x108], edx
mov ecx, dword [ebp - 0x108]
lea eax, [ebp - 0x10c]
add dword [eax], ecx
cmp word [ebx + 0xa], 0
je 0x597e1d
lea edx, [ebp - 0x114]
mov ecx, dword [edx]
cmp ecx, dword [ebp - 0x1c]
jge 0x597d93
lea ecx, [ebp - 0x114]
mov eax, dword [ecx]
mov edx, dword [ebp - 0x48]
neg edx
cmp eax, edx
jge 0x597d86
mov dword [ebp - 0x4c], 1
lea ecx, [ebp - 0x114]
mov eax, dword [ebp - 0x1c]
mov dword [ecx], eax
jmp 0x597dbf
lea edx, [ebp - 0x114]
mov ecx, dword [edx]
cmp ecx, dword [ebp - 0x20]
jle 0x597dbf
lea eax, [ebp - 0x114]
mov edx, dword [eax]
cmp edx, dword [ebp - 0x48]
jle 0x597db4
mov dword [ebp - 0x4c], 1
lea ecx, [ebp - 0x114]
mov eax, dword [ebp - 0x20]
mov dword [ecx], eax
lea edx, [ebp - 0x10c]
mov ecx, dword [edx]
cmp ecx, dword [ebp - 0x1c]
jge 0x597df1
lea eax, [ebp - 0x10c]
mov edx, dword [eax]
mov eax, dword [ebp - 0x48]
neg eax
cmp edx, eax
jge 0x597de4
mov dword [ebp - 0x4c], 1
lea edx, [ebp - 0x10c]
mov ecx, dword [ebp - 0x1c]
mov dword [edx], ecx
jmp 0x597e1d
lea ecx, [ebp - 0x10c]
mov eax, dword [ecx]
cmp eax, dword [ebp - 0x20]
jle 0x597e1d
lea edx, [ebp - 0x10c]
mov ecx, dword [edx]
cmp ecx, dword [ebp - 0x48]
jle 0x597e12
mov dword [ebp - 0x4c], 1
lea eax, [ebp - 0x10c]
mov edx, dword [ebp - 0x20]
mov dword [eax], edx
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x114]
mov edx, dword [eax]
shl edx, cl
mov eax, dword [ebp - 0x38]
mov dword [eax], edx
add dword [ebp - 0x38], 4
mov ecx, dword [ebp - 4]
lea edx, [ebp - 0x10c]
mov eax, dword [edx]
shl eax, cl
mov edx, dword [ebp - 0x38]
mov dword [edx], eax
add dword [ebp - 0x38], 4
inc dword [ebp - 0x44]
mov ecx, dword [ebp - 0x44]
cmp ecx, dword [ebp + 0x10]
jb 0x597cdb
jmp 0x597e5f
xor ecx, ecx
mov dword [ebp - 0x44], ecx
cmp word [ebx + 0xa], 0
je 0x597e6c
test byte [ebp - 8], 0x80
je 0x597ece
test byte [ebp - 8], 1
je 0x597e79
mov eax, 1
jmp 0x597e7e
mov eax, 2
imul dword [ebp + 0x10]
shl eax, 2
add eax, dword [ebp + 0xc]
mov dword [ebp - 0xf8], eax
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x38], edx
mov ecx, dword [ebp - 0x38]
cmp ecx, dword [ebp - 0xf8]
jae 0x597ece
mov ecx, dword [ebp - 0x38]
mov eax, dword [ecx]
cmp eax, dword [ebp - 0x48]
jg 0x597eb6
mov edx, dword [ebp - 0x38]
mov ecx, dword [edx]
mov eax, dword [ebp - 0x48]
neg eax
cmp ecx, eax
jge 0x597ebf
mov dword [ebp - 0x4c], 1
jmp 0x597ece
add dword [ebp - 0x38], 0xc
mov edx, dword [ebp - 0x38]
cmp edx, dword [ebp - 0xf8]
jb 0x597e9e
cmp dword [ebp - 0x4c], 0
je 0x597efd
mov ecx, dword [ebp + 0x10]
shl ecx, 2
test byte [ebp - 8], 1
je 0x597ee7
mov eax, 1
jmp 0x597eec
mov eax, 2
imul ecx, eax
push ecx
push 0
push dword [ebp + 0xc]
call fcn.005814b4
add esp, 0xc
cmp dword [ebp - 0x44], 0
je 0x5980ea
mov edx, dword [ebp - 0x44]
add dword [ebx + 0x7c], edx
mov ecx, dword [ebx + 0x7c]
mov eax, dword [ebp + 8]
cmp ecx, dword [eax + 0x8c]
jne 0x5980ea
cmp word [ebx + 8], 3
jne 0x597f48
mov edx, dword [ebp + 8]
cmp dword [edx + 0x98], 0
je 0x597f37
mov ecx, dword [ebx + 0x18]
jmp 0x597f3a
mov ecx, dword [ebx + 0x14]
cmp ecx, dword [ebp - 0x34]
je 0x597f48
mov eax, dword [ebp + 8]
inc dword [eax + 0x90]
mov edx, dword [ebp + 8]
test byte [edx + 0x9c], 4
je 0x5980ea
push 0x400
call fcn.00581564
pop ecx
mov dword [ebp - 0xfc], eax
lea ecx, [ebx + 0x24]
push ecx
call fcn.00594e6b
pop ecx
test eax, eax
je 0x597fd7
lea eax, [ebx + 0x24]
push eax
call fcn.00594e6b
pop ecx
mov edx, dword [ebp + 8]
add eax, dword [edx + 0x60]
push eax
mov ecx, dword [ebp + 8]
push dword [ecx + 0x5c]
call fcn.0058158c
add esp, 8
mov edx, dword [ebp + 8]
mov dword [edx + 0x5c], eax
lea eax, [ebx + 0x24]
push eax
call fcn.00594e6b
pop ecx
push eax
lea ecx, [ebx + 0x24]
push ecx
call fcn.00594e88
pop ecx
push eax
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x5c]
mov eax, dword [ebp + 8]
add edx, dword [eax + 0x60]
push edx
call fcn.00581474
add esp, 0xc
lea edx, [ebx + 0x24]
push edx
call fcn.00594e6b
pop ecx
mov ecx, dword [ebp + 8]
add dword [ecx + 0x60], eax
push 4
push dword [ebp - 0xfc]
mov ecx, dword [ebp + 8]
push dword [ecx + 0x74]
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x70]
call dword [edx]
add esp, 0xc
mov dword [ebp - 0x100], eax
cmp dword [ebp - 0x100], 0
je 0x59804f
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x60]
add eax, dword [ebp - 0x100]
push eax
mov edx, dword [ebp + 8]
push dword [edx + 0x5c]
call fcn.0058158c
add esp, 8
mov edx, dword [ebp + 8]
mov dword [edx + 0x5c], eax
push dword [ebp - 0x100]
push dword [ebp - 0xfc]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x5c]
mov eax, dword [ebp + 8]
add ecx, dword [eax + 0x60]
push ecx
call fcn.00581474
add esp, 0xc
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 0x100]
add dword [edx + 0x60], ecx
jmp 0x597fd7
push dword [ebp - 0xfc]
call fcn.0058157c
pop ecx
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x60], 0x10
jbe 0x5980ea
xor eax, eax
mov dword [ebp - 0x104], eax
jmp 0x598078
inc dword [ebp - 0x104]
cmp dword [ebp - 0x104], 0x10
jge 0x59809a
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 0x5c]
mov eax, dword [ebp - 0x104]
xor edx, edx
mov dl, byte [ecx + eax]
cmp edx, 0xff
je 0x598072
cmp dword [ebp - 0x104], 0x10
jne 0x5980ce
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x60]
sub eax, 0x10
push eax
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 0x5c]
add ecx, 0x10
push ecx
mov eax, dword [ebp + 8]
push dword [eax + 0x5c]
call fcn.00581474
add esp, 0xc
mov edx, dword [ebp + 8]
sub dword [edx + 0x60], 0x10
jmp 0x5980ea
mov ecx, dword [ebp + 8]
push dword [ecx + 0x5c]
call fcn.0058157c
pop ecx
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax + 0x5c], edx
mov ecx, dword [ebp + 8]
xor eax, eax
mov dword [ecx + 0x60], eax
push 0x10
lea edx, [ebp - 0x114]
push edx
lea ecx, [ebx + 0x8b4]
push ecx
call fcn.00581474
add esp, 0xc
push 8
lea eax, [ebp - 0x40]
push eax
lea edx, [ebx + 0x8c4]
push edx
call fcn.00581474
add esp, 0xc
mov ecx, dword [ebp - 0x34]
mov dword [ebx + 0x8b0], ecx
mov eax, dword [ebp - 0x10]
mov dword [ebx + 0x8a4], eax
mov eax, dword [ebp - 0x44]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret