Function at 0x4b0183
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 0x4b01e3
mov eax, 0x800000
jmp 0x4b01e8
mov eax, 0x8000
mov dword [ebp - 0x48], eax
xor edx, edx
mov dword [ebp - 0x4c], edx
cmp word [ebx + 0xa], 0
je 0x4b0217
test byte [ebp - 8], 0x80
jne 0x4b0217
cmp word [ebx + 8], 3
jge 0x4b020f
mov ecx, dword [ebp - 0x48]
shl ecx, 2
mov dword [ebp - 0x48], ecx
jmp 0x4b0217
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 0x4b0237
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 0x4b0244
xor eax, eax
jmp 0x4b2b2c
cmp dword [ebx + 0x7c], 0
jne 0x4b028d
push ebx
call fcn.004af8a0
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.004af79b
add esp, 0xc
mov eax, dword [ebp + 8]
cmp dword [eax + 0x98], 0
je 0x4b028d
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.004af79b
add esp, 0xc
mov edx, dword [ebp - 0x18]
cmp byte [ebx + edx*8 + 0x84], 0
jne 0x4b02f2
cmp dword [ebx + 0x884], 0
jne 0x4b02c0
push ebx
call fcn.004af9a7
pop ecx
mov dword [ebx + 0x888], eax
shl eax, 8
push eax
call fcn.0049c280
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.004afa50
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.0049c1ac
add esp, 0xc
push 8
lea eax, [ebx + 0x8c4]
push eax
lea edx, [ebp - 0x40]
push edx
call fcn.0049c1ac
add esp, 0xc
cmp word [ebx + 0xa], 0
je 0x4b0335
test byte [ebp - 7], 0xa0
je 0x4b0350
mov dword [ebp - 0xc], 0xffffff00
jmp 0x4b0350
test byte [ebp - 7], 0x20
je 0x4b0350
test byte [ebp - 7], 0x80
je 0x4b0348
mov ecx, 0xfffffe00
jmp 0x4b034d
mov ecx, 0xffffff00
mov dword [ebp - 0xc], ecx
test byte [ebp - 8], 0x20
je 0x4b0382
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 0x4b03ac
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 0x4b09ec
cmp word [ebx + 0xa], 0
jne 0x4b09ec
test byte [ebp - 8], 1
je 0x4b09ec
test byte [ebp - 8], 2
je 0x4b053b
test byte [ebp - 8], 0x40
je 0x4b04c5
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 0x4b285f
push 0
push ebx
call fcn.004b3668
add esp, 8
mov edi, eax
cmp eax, 0x80000000
je 0x4b285f
add dword [ebp - 0x110], edi
mov edx, dword [ebp - 0x110]
lea ecx, [ebp - 0x114]
add dword [ecx], edx
jmp 0x4b0450
inc dword [ebx + 0x30]
mov ecx, dword [ebx + 0x30]
cmp ecx, dword [ebx + 0x2c]
jne 0x4b0438
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 0x4b0425
mov eax, dword [ebx + 0x3c]
mov dword [ebp - 0x50], eax
cmp dword [ebx + 0x48], 0x20
jle 0x4b047c
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 0x4b0484
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 0x4b03f7
jmp 0x4b285f
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 0x4b285f
push 0
push ebx
call fcn.004b3668
add esp, 8
mov edi, eax
cmp eax, 0x80000000
je 0x4b285f
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 0x4b04dc
jmp 0x4b285f
test byte [ebp - 8], 0x10
je 0x4b07eb
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 0x4b285f
test byte [ebp - 7], 4
je 0x4b057c
push 0
push ebx
call fcn.004b2bb8
add esp, 8
mov edi, eax
cmp eax, 0x80000000
je 0x4b285f
jmp 0x4b0594
push 0
push ebx
call fcn.004b318f
add esp, 8
mov edi, eax
cmp eax, 0x80000000
je 0x4b285f
test byte [ebp - 7], 0x80
je 0x4b061e
mov edx, dword [ebx + 0x80]
mov dword [ebp - 0x14], edx
lea eax, [ebx + 0x8cc]
jmp 0x4b0611
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 0x4b05ff
test edi, edi
je 0x4b05ff
xor edi, dword [ebp - 0x58]
jl 0x4b05f0
mov ecx, dword [eax + 8]
inc dword [eax + 8]
cmp ecx, 0x200
jne 0x4b05ff
dec dword [eax + 8]
jmp 0x4b05ff
mov edx, dword [eax + 8]
add dword [eax + 8], 0xffffffff
cmp edx, dword [ebp - 0xc]
jne 0x4b05ff
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 0x4b05af
jmp 0x4b069c
mov eax, dword [ebx + 0x80]
mov dword [ebp - 0x14], eax
lea eax, [ebx + 0x8cc]
jmp 0x4b0691
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 0x4b067f
test edi, edi
je 0x4b067f
xor edi, dword [ebp - 0x5c]
jl 0x4b0670
mov ecx, dword [eax + 8]
inc dword [eax + 8]
cmp ecx, 0x100
jne 0x4b067f
dec dword [eax + 8]
jmp 0x4b067f
mov edx, dword [eax + 8]
add dword [eax + 8], 0xffffffff
cmp edx, dword [ebp - 0xc]
jne 0x4b067f
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 0x4b062f
mov eax, dword [ebp - 0x10]
inc eax
and eax, 7
mov dword [ebp - 0x10], eax
test byte [ebp - 8], 0x40
je 0x4b07be
cmp dword [ebx + 0x8a0], 8
jl 0x4b073d
cmp dword [ebx + 0x48], 0
je 0x4b06ce
dec dword [ebx + 0x48]
mov ecx, dword [ebx + 0x3c]
and ecx, 1
jmp 0x4b06f5
inc dword [ebx + 0x30]
mov ecx, dword [ebx + 0x30]
cmp ecx, dword [ebx + 0x2c]
jne 0x4b06e1
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 0x4b0703
shr dword [ebx + 0x3c], 1
mov eax, 1
jmp 0x4b0708
shr dword [ebx + 0x3c], 1
xor eax, eax
test eax, eax
jne 0x4b0799
jmp 0x4b073d
inc dword [ebx + 0x30]
mov edx, dword [ebx + 0x30]
cmp edx, dword [ebx + 0x2c]
jne 0x4b0725
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 0x4b0712
mov eax, dword [ebx + 0x3c]
mov dword [ebp - 0x54], eax
cmp dword [ebx + 0x48], 0x20
jle 0x4b0769
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 0x4b0771
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 0x4b0793
mov eax, dword [ebp - 0x54]
mov dword [ebx + 0x89c], eax
xor edx, edx
mov dword [ebx + 0x8a0], edx
jmp 0x4b0799
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 0x4b07d7
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 0x4b055c
jmp 0x4b285f
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 0x4b285f
push 0
push ebx
call fcn.004b3668
add esp, 8
mov edi, eax
cmp eax, 0x80000000
je 0x4b285f
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 0x4b086a
lea ecx, [ebp - 0x40]
mov eax, dword [ecx]
inc dword [ecx]
cmp eax, 0x100
jne 0x4b087b
lea edx, [ebp - 0x40]
dec dword [edx]
jmp 0x4b087b
lea ecx, [ebp - 0x40]
mov eax, dword [ecx]
add dword [ecx], 0xffffffff
test eax, eax
jne 0x4b087b
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 0x4b09b1
cmp dword [ebx + 0x8a0], 8
jl 0x4b092b
cmp dword [ebx + 0x48], 0
je 0x4b08bc
dec dword [ebx + 0x48]
mov ecx, dword [ebx + 0x3c]
and ecx, 1
jmp 0x4b08e3
inc dword [ebx + 0x30]
mov ecx, dword [ebx + 0x30]
cmp ecx, dword [ebx + 0x2c]
jne 0x4b08cf
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 0x4b08f1
shr dword [ebx + 0x3c], 1
mov eax, 1
jmp 0x4b08f6
shr dword [ebx + 0x3c], 1
xor eax, eax
test eax, eax
jne 0x4b0987
jmp 0x4b092b
inc dword [ebx + 0x30]
mov edx, dword [ebx + 0x30]
cmp edx, dword [ebx + 0x2c]
jne 0x4b0913
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 0x4b0900
mov eax, dword [ebx + 0x3c]
mov dword [ebp - 0x60], eax
cmp dword [ebx + 0x48], 0x20
jle 0x4b0957
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 0x4b095f
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 0x4b0981
mov eax, dword [ebp - 0x60]
mov dword [ebx + 0x89c], eax
xor edx, edx
mov dword [ebx + 0x8a0], edx
jmp 0x4b0987
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 0x4b09d8
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 0x4b0802
jmp 0x4b285f
cmp word [ebx + 8], 3
jne 0x4b1aa4
cmp word [ebx + 0xa], 0
jne 0x4b1aa4
test byte [ebp - 8], 1
jne 0x4b1aa4
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 0x4b0c6d
test byte [ebp - 8], 0x40
je 0x4b0b8a
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 0x4b1a7b
push 0
push ebx
call fcn.004b3668
add esp, 8
mov edi, eax
cmp edi, 0x80000000
je 0x4b1a7b
push 1
push ebx
call fcn.004b3668
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 0x4b0af1
inc dword [ebx + 0x30]
mov edx, dword [ebx + 0x30]
cmp edx, dword [ebx + 0x2c]
jne 0x4b0ad9
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 0x4b0ac6
mov eax, dword [ebx + 0x3c]
mov dword [ebp - 0x7c], eax
cmp dword [ebx + 0x48], 0x20
jle 0x4b0b1d
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 0x4b0b25
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 0x4b0a5b
jmp 0x4b1a7b
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 0x4b1a7b
push 0
push ebx
call fcn.004b3668
add esp, 8
mov edi, eax
cmp edi, 0x80000000
je 0x4b1a7b
push 1
push ebx
call fcn.004b3668
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 0x4b0ba1
jmp 0x4b1a7b
test byte [ebp - 8], 0x10
je 0x4b1675
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 0x4b1a7b
test byte [ebp - 7], 0x10
je 0x4b0cc3
push 0
push ebx
call fcn.004b2bb8
add esp, 8
mov esi, eax
cmp esi, 0x80000000
je 0x4b1a7b
push 1
push ebx
call fcn.004b2bb8
add esp, 8
mov dword [ebp - 0x8c], eax
jmp 0x4b0f60
test byte [ebp - 7], 4
je 0x4b0e3b
push 0
push ebx
call fcn.004b2bb8
add esp, 8
mov edi, eax
cmp edi, 0x80000000
je 0x4b1a7b
push 1
push ebx
call fcn.004b2bb8
add esp, 8
mov edx, dword [ebp - 0x68]
cmp edx, dword [ebp - 0x64]
jle 0x4b0d9d
mov ecx, dword [ebp - 0x64]
add ecx, dword [ebp - 0x68]
mov edx, dword [ebp - 0x6c]
add edx, dword [ebp - 0x70]
cmp ecx, edx
jge 0x4b0d38
mov ecx, dword [ebp - 0x68]
cmp ecx, dword [ebp - 0x70]
jge 0x4b0d38
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 0x4b0ed8
mov dword [ebp - 0x90], edi
mov ecx, dword [ebp - 0x6c]
cmp ecx, dword [ebp - 0x64]
jge 0x4b0d80
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 0x4b0ed8
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 0x4b0ed8
mov ecx, dword [ebp - 0x64]
add ecx, dword [ebp - 0x68]
mov edx, dword [ebp - 0x6c]
add edx, dword [ebp - 0x70]
cmp ecx, edx
jge 0x4b0dd8
mov ecx, dword [ebp - 0x64]
cmp ecx, dword [ebp - 0x70]
jge 0x4b0dd8
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 0x4b0ed8
mov dword [ebp - 0x90], edi
mov ecx, dword [ebp - 0x6c]
cmp ecx, dword [ebp - 0x68]
jge 0x4b0e20
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 0x4b0ed8
mov dword [ebp - 0x8c], eax
mov esi, eax
add esi, dword [ebp - 0x90]
add eax, esi
mov dword [ebp - 0x88], eax
jmp 0x4b0ed8
push 0
push ebx
call fcn.004b318f
add esp, 8
mov edi, eax
cmp edi, 0x80000000
je 0x4b1a7b
push 1
push ebx
call fcn.004b318f
add esp, 8
mov edx, dword [ebp - 0x6c]
cmp edx, dword [ebp - 0x68]
jg 0x4b0e9a
mov ecx, dword [ebp - 0x6c]
cmp ecx, dword [ebp - 0x64]
jg 0x4b0e9a
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 0x4b0eca
mov edx, dword [ebp - 0x64]
cmp edx, dword [ebp - 0x68]
jg 0x4b0eb8
mov esi, eax
mov ecx, eax
sub ecx, edi
mov dword [ebp - 0x8c], ecx
add eax, ecx
mov dword [ebp - 0x88], eax
jmp 0x4b0eca
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.004a17ec
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.004a17ec
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.004a17ec
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.004a17ec
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 0x4b0f60
mov esi, dword [ebp - 0x90]
mov eax, dword [ebp - 0x88]
sar eax, 1
mov dword [ebp - 0x8c], eax
test byte [ebp - 7], 0x80
je 0x4b1205
mov edx, dword [ebx + 0x80]
mov dword [ebp - 0x14], edx
lea eax, [ebx + 0x8cc]
jmp 0x4b11f1
cmp dword [eax], 0
jle 0x4b1083
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 0x4b101a
test esi, esi
je 0x4b101a
xor esi, dword [ebp - 0x9c]
jl 0x4b100b
mov ecx, dword [eax + 8]
inc dword [eax + 8]
cmp ecx, 0x200
jne 0x4b101a
dec dword [eax + 8]
jmp 0x4b101a
mov ecx, dword [eax + 8]
add dword [eax + 8], 0xffffffff
cmp ecx, dword [ebp - 0xc]
jne 0x4b101a
inc dword [eax + 8]
cmp dword [ebp - 0xa0], 0
je 0x4b105c
cmp dword [ebp - 0x8c], 0
je 0x4b105c
mov ecx, dword [ebp - 0xa0]
xor ecx, dword [ebp - 0x8c]
jl 0x4b104d
mov ecx, dword [eax + 0xc]
inc dword [eax + 0xc]
cmp ecx, 0x200
jne 0x4b105c
dec dword [eax + 0xc]
jmp 0x4b105c
mov ecx, dword [eax + 0xc]
add dword [eax + 0xc], 0xffffffff
cmp ecx, dword [ebp - 0xc]
jne 0x4b105c
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 0x4b11ee
cmp dword [eax], 0xffffffff
jne 0x4b1139
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 0x4b10cf
test esi, esi
je 0x4b10cf
xor esi, dword [eax + 0x10]
jl 0x4b10c0
mov ecx, dword [eax + 8]
inc dword [eax + 8]
cmp ecx, 0x200
jne 0x4b10cf
dec dword [eax + 8]
jmp 0x4b10cf
mov ecx, dword [eax + 8]
add dword [eax + 8], 0xffffffff
cmp ecx, dword [ebp - 0xc]
jne 0x4b10cf
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 0x4b1125
cmp dword [ebp - 0x8c], 0
je 0x4b1125
mov ecx, dword [ebp - 0x8c]
xor ecx, esi
jl 0x4b1116
mov edx, dword [eax + 0xc]
inc dword [eax + 0xc]
cmp edx, 0x200
jne 0x4b1125
dec dword [eax + 0xc]
jmp 0x4b1125
mov ecx, dword [eax + 0xc]
add dword [eax + 0xc], 0xffffffff
cmp ecx, dword [ebp - 0xc]
jne 0x4b1125
inc dword [eax + 0xc]
mov edx, dword [ebp - 0x94]
mov dword [ebp - 0x8c], edx
mov dword [eax + 0x10], edx
jmp 0x4b11ee
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 0x4b1191
cmp dword [ebp - 0x8c], 0
je 0x4b1191
mov edx, dword [eax + 0x10]
xor edx, dword [ebp - 0x8c]
jl 0x4b1182
mov ecx, dword [eax + 8]
inc dword [eax + 8]
cmp ecx, 0x200
jne 0x4b1191
dec dword [eax + 8]
jmp 0x4b1191
mov edx, dword [eax + 8]
add dword [eax + 8], 0xffffffff
cmp edx, dword [ebp - 0xc]
jne 0x4b1191
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 0x4b11e9
test esi, esi
je 0x4b11e9
xor esi, dword [ebp - 0x8c]
jl 0x4b11da
mov ecx, dword [eax + 0xc]
inc dword [eax + 0xc]
cmp ecx, 0x200
jne 0x4b11e9
dec dword [eax + 0xc]
jmp 0x4b11e9
mov ecx, dword [eax + 0xc]
add dword [eax + 0xc], 0xffffffff
cmp ecx, dword [ebp - 0xc]
jne 0x4b11e9
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 0x4b0f7e
jmp 0x4b1488
mov eax, dword [ebx + 0x80]
mov dword [ebp - 0x14], eax
lea eax, [ebx + 0x8cc]
jmp 0x4b1479
cmp dword [eax], 0
jle 0x4b130b
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 0x4b12a2
test esi, esi
je 0x4b12a2
xor ecx, esi
jl 0x4b1293
mov ecx, dword [eax + 8]
inc dword [eax + 8]
cmp ecx, 0x100
jne 0x4b12a2
dec dword [eax + 8]
jmp 0x4b12a2
mov ecx, dword [eax + 8]
add dword [eax + 8], 0xffffffff
cmp ecx, dword [ebp - 0xc]
jne 0x4b12a2
inc dword [eax + 8]
cmp dword [ebp - 0xa8], 0
je 0x4b12e4
cmp dword [ebp - 0x8c], 0
je 0x4b12e4
mov ecx, dword [ebp - 0xa8]
xor ecx, dword [ebp - 0x8c]
jl 0x4b12d5
mov ecx, dword [eax + 0xc]
inc dword [eax + 0xc]
cmp ecx, 0x100
jne 0x4b12e4
dec dword [eax + 0xc]
jmp 0x4b12e4
mov ecx, dword [eax + 0xc]
add dword [eax + 0xc], 0xffffffff
cmp ecx, dword [ebp - 0xc]
jne 0x4b12e4
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 0x4b1476
cmp dword [eax], 0xffffffff
jne 0x4b13c1
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 0x4b1357
test esi, esi
je 0x4b1357
xor esi, dword [eax + 0x10]
jl 0x4b1348
mov ecx, dword [eax + 8]
inc dword [eax + 8]
cmp ecx, 0x100
jne 0x4b1357
dec dword [eax + 8]
jmp 0x4b1357
mov ecx, dword [eax + 8]
add dword [eax + 8], 0xffffffff
cmp ecx, dword [ebp - 0xc]
jne 0x4b1357
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 0x4b13ad
cmp dword [ebp - 0x8c], 0
je 0x4b13ad
mov ecx, dword [ebp - 0x8c]
xor ecx, esi
jl 0x4b139e
mov edx, dword [eax + 0xc]
inc dword [eax + 0xc]
cmp edx, 0x100
jne 0x4b13ad
dec dword [eax + 0xc]
jmp 0x4b13ad
mov ecx, dword [eax + 0xc]
add dword [eax + 0xc], 0xffffffff
cmp ecx, dword [ebp - 0xc]
jne 0x4b13ad
inc dword [eax + 0xc]
mov edx, dword [ebp - 0x94]
mov dword [ebp - 0x8c], edx
mov dword [eax + 0x10], edx
jmp 0x4b1476
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 0x4b1419
cmp dword [ebp - 0x8c], 0
je 0x4b1419
mov edx, dword [eax + 0x10]
xor edx, dword [ebp - 0x8c]
jl 0x4b140a
mov ecx, dword [eax + 8]
inc dword [eax + 8]
cmp ecx, 0x100
jne 0x4b1419
dec dword [eax + 8]
jmp 0x4b1419
mov edx, dword [eax + 8]
add dword [eax + 8], 0xffffffff
cmp edx, dword [ebp - 0xc]
jne 0x4b1419
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 0x4b1471
test esi, esi
je 0x4b1471
xor esi, dword [ebp - 0x8c]
jl 0x4b1462
mov ecx, dword [eax + 0xc]
inc dword [eax + 0xc]
cmp ecx, 0x100
jne 0x4b1471
dec dword [eax + 0xc]
jmp 0x4b1471
mov ecx, dword [eax + 0xc]
add dword [eax + 0xc], 0xffffffff
cmp ecx, dword [ebp - 0xc]
jne 0x4b1471
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 0x4b1219
mov eax, dword [ebp - 0x10]
inc eax
and eax, 7
mov dword [ebp - 0x10], eax
test byte [ebp - 7], 0x40
je 0x4b14d3
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 0x4b162b
cmp dword [ebx + 0x8a0], 8
jl 0x4b156a
cmp dword [ebx + 0x48], 0
je 0x4b14fb
dec dword [ebx + 0x48]
mov eax, dword [ebx + 0x3c]
and eax, 1
jmp 0x4b1522
inc dword [ebx + 0x30]
mov edx, dword [ebx + 0x30]
cmp edx, dword [ebx + 0x2c]
jne 0x4b150e
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 0x4b1530
shr dword [ebx + 0x3c], 1
mov edx, 1
jmp 0x4b1535
shr dword [ebx + 0x3c], 1
xor edx, edx
test edx, edx
jne 0x4b15d5
jmp 0x4b156a
inc dword [ebx + 0x30]
mov eax, dword [ebx + 0x30]
cmp eax, dword [ebx + 0x2c]
jne 0x4b1552
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 0x4b153f
mov eax, dword [ebx + 0x3c]
mov dword [ebp - 0x98], eax
cmp dword [ebx + 0x48], 0x20
jle 0x4b1599
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 0x4b15a1
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 0x4b15cf
mov eax, dword [ebp - 0x98]
mov dword [ebx + 0x89c], eax
xor edx, edx
mov dword [ebx + 0x8a0], edx
jmp 0x4b15d5
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 0x4b1661
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 0x4b0c8e
jmp 0x4b1a7b
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 0x4b1a7b
push 0
push ebx
call fcn.004b3668
add esp, 8
mov edi, eax
cmp edi, 0x80000000
je 0x4b1a7b
mov eax, dword [ebp - 0x6c]
cmp eax, dword [ebp - 0x68]
jg 0x4b16f1
mov edx, dword [ebp - 0x6c]
cmp edx, dword [ebp - 0x64]
jg 0x4b16f1
push 1
push ebx
call fcn.004b3668
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 0x4b1751
mov edx, dword [ebp - 0x64]
cmp edx, dword [ebp - 0x68]
jg 0x4b1726
push 1
push ebx
call fcn.004b3668
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 0x4b1751
push 1
push ebx
call fcn.004b3668
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.004a17ec
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.004a17ec
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.004a17ec
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 0x4b1831
lea ecx, [ebp - 0x40]
mov eax, dword [ecx]
inc dword [ecx]
cmp eax, 0x100
jne 0x4b1842
lea edx, [ebp - 0x40]
dec dword [edx]
jmp 0x4b1842
lea ecx, [ebp - 0x40]
mov eax, dword [ecx]
add dword [ecx], 0xffffffff
test eax, eax
jne 0x4b1842
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 0x4b1875
lea edx, [ebp - 0x3c]
mov eax, dword [edx]
inc dword [edx]
cmp eax, 0x100
jne 0x4b1886
lea edx, [ebp - 0x3c]
dec dword [edx]
jmp 0x4b1886
lea ecx, [ebp - 0x3c]
mov eax, dword [ecx]
add dword [ecx], 0xffffffff
test eax, eax
jne 0x4b1886
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 0x4b1a22
cmp dword [ebx + 0x8a0], 8
jl 0x4b1955
cmp dword [ebx + 0x48], 0
je 0x4b18e6
dec dword [ebx + 0x48]
mov ecx, dword [ebx + 0x3c]
and ecx, 1
jmp 0x4b190d
inc dword [ebx + 0x30]
mov ecx, dword [ebx + 0x30]
cmp ecx, dword [ebx + 0x2c]
jne 0x4b18f9
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 0x4b191b
shr dword [ebx + 0x3c], 1
mov eax, 1
jmp 0x4b1920
shr dword [ebx + 0x3c], 1
xor eax, eax
test eax, eax
jne 0x4b19c0
jmp 0x4b1955
inc dword [ebx + 0x30]
mov edx, dword [ebx + 0x30]
cmp edx, dword [ebx + 0x2c]
jne 0x4b193d
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 0x4b192a
mov eax, dword [ebx + 0x3c]
mov dword [ebp - 0xc4], eax
cmp dword [ebx + 0x48], 0x20
jle 0x4b1984
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 0x4b198c
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 0x4b19ba
mov eax, dword [ebp - 0xc4]
mov dword [ebx + 0x89c], eax
xor edx, edx
mov dword [ebx + 0x8a0], edx
jmp 0x4b19c0
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 0x4b1a6c
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 0x4b168c
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 0x4b285f
cmp word [ebx + 8], 3
jne 0x4b1ea3
cmp word [ebx + 0xa], 0
je 0x4b1ea3
test byte [ebp - 8], 1
je 0x4b1ea3
test byte [ebp - 8], 2
je 0x4b1baa
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 0x4b285f
push 0
push ebx
call fcn.004b3668
add esp, 8
mov edi, eax
cmp eax, 0x80000000
je 0x4b285f
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 0x4b1b51
lea eax, [ebp - 0x114]
mov edx, dword [eax]
mov eax, dword [ebp - 0x48]
neg eax
cmp edx, eax
jge 0x4b1b43
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 0x4b1b96
lea ecx, [ebp - 0x114]
mov eax, dword [ecx]
cmp eax, dword [ebp - 0x20]
jle 0x4b1b80
lea edx, [ebp - 0x114]
mov ecx, dword [edx]
cmp ecx, dword [ebp - 0x48]
jle 0x4b1b72
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 0x4b1b96
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 0x4b1ae5
jmp 0x4b285f
test dword [ebp - 8], 0x410
je 0x4b1d57
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 0x4b285f
test byte [ebp - 7], 4
je 0x4b1be7
lea edx, [ebp - 0x30]
push edx
push 0
push ebx
call fcn.004b3938
add esp, 0xc
mov edi, eax
jmp 0x4b1bf4
push 0
push ebx
call fcn.004b3668
add esp, 8
mov edi, eax
cmp edi, 0x80000000
je 0x4b285f
mov eax, dword [ebx + 0x80]
mov dword [ebp - 0x14], eax
lea eax, [ebx + 0x8cc]
jmp 0x4b1c86
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 0x4b1c71
test edi, edi
je 0x4b1c71
xor edx, edi
jl 0x4b1c62
mov edx, dword [eax + 8]
inc dword [eax + 8]
cmp edx, 0x100
jne 0x4b1c71
dec dword [eax + 8]
jmp 0x4b1c71
mov ecx, dword [eax + 8]
add dword [eax + 8], 0xffffffff
cmp ecx, dword [ebp - 0xc]
jne 0x4b1c71
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 0x4b1c11
mov eax, dword [ebp - 0x10]
inc eax
and eax, 7
mov dword [ebp - 0x10], eax
test byte [ebp - 8], 0x80
je 0x4b1ce8
test byte [ebp - 7], 1
je 0x4b1cca
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 0x4b1cd8
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 0x4b1d43
mov edx, dword [ebp - 0x34]
lea edx, [edx + edx*2]
add edx, edi
mov dword [ebp - 0x34], edx
cmp edi, dword [ebp - 0x1c]
jge 0x4b1d16
mov ecx, dword [ebp - 0x48]
neg ecx
cmp edi, ecx
jge 0x4b1d08
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 0x4b1d43
cmp edi, dword [ebp - 0x20]
jle 0x4b1d35
cmp edi, dword [ebp - 0x48]
jle 0x4b1d27
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 0x4b1d43
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 0x4b1bce
jmp 0x4b285f
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 0x4b285f
push 0
push ebx
call fcn.004b3668
add esp, 8
mov edi, eax
cmp eax, 0x80000000
je 0x4b285f
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 0x4b1dd9
lea ecx, [ebp - 0x40]
mov eax, dword [ecx]
inc dword [ecx]
cmp eax, 0x100
jne 0x4b1dea
lea edx, [ebp - 0x40]
dec dword [edx]
jmp 0x4b1dea
lea ecx, [ebp - 0x40]
mov eax, dword [ecx]
add dword [ecx], 0xffffffff
test eax, eax
jne 0x4b1dea
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 0x4b1e4a
lea eax, [ebp - 0x114]
mov edx, dword [eax]
mov eax, dword [ebp - 0x48]
neg eax
cmp edx, eax
jge 0x4b1e3c
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 0x4b1e8f
lea ecx, [ebp - 0x114]
mov eax, dword [ecx]
cmp eax, dword [ebp - 0x20]
jle 0x4b1e79
lea edx, [ebp - 0x114]
mov ecx, dword [edx]
cmp ecx, dword [ebp - 0x48]
jle 0x4b1e6b
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 0x4b1e8f
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 0x4b1d6e
jmp 0x4b285f
cmp word [ebx + 8], 3
jne 0x4b25c8
cmp word [ebx + 0xa], 0
je 0x4b25c8
test byte [ebp - 8], 1
jne 0x4b25c8
test byte [ebp - 8], 2
je 0x4b204d
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 0x4b285f
push 0
push ebx
call fcn.004b3668
add esp, 8
mov edi, eax
cmp eax, 0x80000000
je 0x4b285f
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 0x4b1f50
lea eax, [ebp - 0x114]
mov edx, dword [eax]
mov eax, dword [ebp - 0x48]
neg eax
cmp edx, eax
jge 0x4b1f42
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 0x4b1f95
lea ecx, [ebp - 0x114]
mov eax, dword [ecx]
cmp eax, dword [ebp - 0x20]
jle 0x4b1f7f
lea edx, [ebp - 0x114]
mov ecx, dword [edx]
cmp ecx, dword [ebp - 0x48]
jle 0x4b1f71
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 0x4b1f95
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.004b3668
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 0x4b1ff4
lea eax, [ebp - 0x10c]
mov edx, dword [eax]
mov eax, dword [ebp - 0x48]
neg eax
cmp edx, eax
jge 0x4b1fe6
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 0x4b2039
lea ecx, [ebp - 0x10c]
mov eax, dword [ecx]
cmp eax, dword [ebp - 0x20]
jle 0x4b2023
lea edx, [ebp - 0x10c]
mov ecx, dword [edx]
cmp ecx, dword [ebp - 0x48]
jle 0x4b2015
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 0x4b2039
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 0x4b1ee4
jmp 0x4b285f
test dword [ebp - 8], 0x410
je 0x4b2365
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 0x4b285f
test byte [ebp - 7], 4
je 0x4b209b
lea edx, [ebp - 0x30]
push edx
push 0
push ebx
call fcn.004b3938
add esp, 0xc
mov esi, eax
lea eax, [ebp - 0x2c]
push eax
push 1
push ebx
call fcn.004b3938
add esp, 0xc
mov edx, eax
jmp 0x4b20b5
push 0
push ebx
call fcn.004b3668
add esp, 8
mov esi, eax
push 1
push ebx
call fcn.004b3668
add esp, 8
mov edx, eax
cmp esi, 0x80000000
je 0x4b285f
mov eax, dword [ebx + 0x80]
mov dword [ebp - 0x14], eax
lea eax, [ebx + 0x8cc]
jmp 0x4b21f4
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 0x4b2167
test esi, esi
je 0x4b2167
xor esi, dword [ebp - 0xe0]
jl 0x4b2158
mov ecx, dword [eax + 8]
inc dword [eax + 8]
cmp ecx, 0x100
jne 0x4b2167
dec dword [eax + 8]
jmp 0x4b2167
mov ecx, dword [eax + 8]
add dword [eax + 8], 0xffffffff
cmp ecx, dword [ebp - 0xc]
jne 0x4b2167
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 0x4b21e1
test edx, edx
je 0x4b21e1
xor edx, dword [ebp - 0xe4]
jl 0x4b21d2
mov edx, dword [eax + 0xc]
inc dword [eax + 0xc]
cmp edx, 0x100
jne 0x4b21e1
dec dword [eax + 0xc]
jmp 0x4b21e1
mov ecx, dword [eax + 0xc]
add dword [eax + 0xc], 0xffffffff
cmp ecx, dword [ebp - 0xc]
jne 0x4b21e1
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 0x4b20d5
mov eax, dword [ebp - 0x10]
inc eax
and eax, 7
mov dword [ebp - 0x10], eax
test byte [ebp - 8], 0x80
je 0x4b224d
test byte [ebp - 7], 1
je 0x4b2247
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 0x4b224d
add esi, dword [ebp - 0x30]
add edx, dword [ebp - 0x2c]
test byte [ebp - 7], 0x40
je 0x4b227a
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 0x4b22b1
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 0x4b2351
cmp esi, dword [ebp - 0x1c]
jge 0x4b22d4
mov eax, dword [ebp - 0x48]
neg eax
cmp esi, eax
jge 0x4b22c6
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 0x4b2301
cmp esi, dword [ebp - 0x20]
jle 0x4b22f3
cmp esi, dword [ebp - 0x48]
jle 0x4b22e5
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 0x4b2301
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 0x4b2324
mov ecx, dword [ebp - 0x48]
neg ecx
cmp edx, ecx
jge 0x4b2316
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 0x4b2351
cmp edx, dword [ebp - 0x20]
jle 0x4b2343
cmp edx, dword [ebp - 0x48]
jle 0x4b2335
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 0x4b2351
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 0x4b2071
jmp 0x4b285f
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 0x4b285f
push 0
push ebx
call fcn.004b3668
add esp, 8
mov edi, eax
cmp eax, 0x80000000
je 0x4b285f
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 0x4b23e7
lea ecx, [ebp - 0x40]
mov eax, dword [ecx]
inc dword [ecx]
cmp eax, 0x100
jne 0x4b23f8
lea edx, [ebp - 0x40]
dec dword [edx]
jmp 0x4b23f8
lea ecx, [ebp - 0x40]
mov eax, dword [ecx]
add dword [ecx], 0xffffffff
test eax, eax
jne 0x4b23f8
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.004b3668
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 0x4b2486
lea ecx, [ebp - 0x3c]
mov eax, dword [ecx]
inc dword [ecx]
cmp eax, 0x100
jne 0x4b2497
lea edx, [ebp - 0x3c]
dec dword [edx]
jmp 0x4b2497
lea ecx, [ebp - 0x3c]
mov eax, dword [ecx]
add dword [ecx], 0xffffffff
test eax, eax
jne 0x4b2497
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 0x4b24f7
lea eax, [ebp - 0x114]
mov edx, dword [eax]
mov eax, dword [ebp - 0x48]
neg eax
cmp edx, eax
jge 0x4b24e9
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 0x4b253c
lea ecx, [ebp - 0x114]
mov eax, dword [ecx]
cmp eax, dword [ebp - 0x20]
jle 0x4b2526
lea edx, [ebp - 0x114]
mov ecx, dword [edx]
cmp ecx, dword [ebp - 0x48]
jle 0x4b2518
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 0x4b253c
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 0x4b256f
lea ecx, [ebp - 0x10c]
mov eax, dword [ecx]
mov edx, dword [ebp - 0x48]
neg edx
cmp eax, edx
jge 0x4b2561
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 0x4b25b4
lea edx, [ebp - 0x10c]
mov ecx, dword [edx]
cmp ecx, dword [ebp - 0x20]
jle 0x4b259e
lea eax, [ebp - 0x10c]
mov edx, dword [eax]
cmp edx, dword [ebp - 0x48]
jle 0x4b2590
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 0x4b25b4
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 0x4b237c
jmp 0x4b285f
cmp word [ebx + 8], 2
jne 0x4b26af
test byte [ebp - 8], 1
je 0x4b26af
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 0x4b285f
push 0
push ebx
call fcn.004b33ef
add esp, 8
mov edi, eax
cmp eax, 0x80000000
je 0x4b285f
add dword [ebp - 0x110], edi
mov edx, dword [ebp - 0x110]
lea ecx, [ebp - 0x114]
add dword [ecx], edx
cmp word [ebx + 0xa], 0
je 0x4b2685
lea ecx, [ebp - 0x114]
mov eax, dword [ecx]
cmp eax, dword [ebp - 0x1c]
jge 0x4b2659
lea edx, [ebp - 0x114]
mov ecx, dword [edx]
mov eax, dword [ebp - 0x48]
neg eax
cmp ecx, eax
jge 0x4b264c
mov dword [ebp - 0x4c], 1
lea edx, [ebp - 0x114]
mov eax, dword [ebp - 0x1c]
mov dword [edx], eax
jmp 0x4b2685
lea edx, [ebp - 0x114]
mov ecx, dword [edx]
cmp ecx, dword [ebp - 0x20]
jle 0x4b2685
lea ecx, [ebp - 0x114]
mov eax, dword [ecx]
cmp eax, dword [ebp - 0x48]
jle 0x4b267a
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 0x4b25f4
jmp 0x4b285f
cmp word [ebx + 8], 3
jge 0x4b285a
test byte [ebp - 8], 1
jne 0x4b285a
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 0x4b285f
push 0
push ebx
call fcn.004b33ef
add esp, 8
mov edi, eax
cmp edi, 0x80000000
je 0x4b285f
push 1
push ebx
call fcn.004b33ef
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 0x4b281d
lea edx, [ebp - 0x114]
mov ecx, dword [edx]
cmp ecx, dword [ebp - 0x1c]
jge 0x4b2793
lea ecx, [ebp - 0x114]
mov eax, dword [ecx]
mov edx, dword [ebp - 0x48]
neg edx
cmp eax, edx
jge 0x4b2786
mov dword [ebp - 0x4c], 1
lea ecx, [ebp - 0x114]
mov eax, dword [ebp - 0x1c]
mov dword [ecx], eax
jmp 0x4b27bf
lea edx, [ebp - 0x114]
mov ecx, dword [edx]
cmp ecx, dword [ebp - 0x20]
jle 0x4b27bf
lea eax, [ebp - 0x114]
mov edx, dword [eax]
cmp edx, dword [ebp - 0x48]
jle 0x4b27b4
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 0x4b27f1
lea eax, [ebp - 0x10c]
mov edx, dword [eax]
mov eax, dword [ebp - 0x48]
neg eax
cmp edx, eax
jge 0x4b27e4
mov dword [ebp - 0x4c], 1
lea edx, [ebp - 0x10c]
mov ecx, dword [ebp - 0x1c]
mov dword [edx], ecx
jmp 0x4b281d
lea ecx, [ebp - 0x10c]
mov eax, dword [ecx]
cmp eax, dword [ebp - 0x20]
jle 0x4b281d
lea edx, [ebp - 0x10c]
mov ecx, dword [edx]
cmp ecx, dword [ebp - 0x48]
jle 0x4b2812
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 0x4b26db
jmp 0x4b285f
xor ecx, ecx
mov dword [ebp - 0x44], ecx
cmp word [ebx + 0xa], 0
je 0x4b286c
test byte [ebp - 8], 0x80
je 0x4b28ce
test byte [ebp - 8], 1
je 0x4b2879
mov eax, 1
jmp 0x4b287e
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 0x4b28ce
mov ecx, dword [ebp - 0x38]
mov eax, dword [ecx]
cmp eax, dword [ebp - 0x48]
jg 0x4b28b6
mov edx, dword [ebp - 0x38]
mov ecx, dword [edx]
mov eax, dword [ebp - 0x48]
neg eax
cmp ecx, eax
jge 0x4b28bf
mov dword [ebp - 0x4c], 1
jmp 0x4b28ce
add dword [ebp - 0x38], 0xc
mov edx, dword [ebp - 0x38]
cmp edx, dword [ebp - 0xf8]
jb 0x4b289e
cmp dword [ebp - 0x4c], 0
je 0x4b28fd
mov ecx, dword [ebp + 0x10]
shl ecx, 2
test byte [ebp - 8], 1
je 0x4b28e7
mov eax, 1
jmp 0x4b28ec
mov eax, 2
imul ecx, eax
push ecx
push 0
push dword [ebp + 0xc]
call fcn.0049c1e4
add esp, 0xc
cmp dword [ebp - 0x44], 0
je 0x4b2aea
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 0x4b2aea
cmp word [ebx + 8], 3
jne 0x4b2948
mov edx, dword [ebp + 8]
cmp dword [edx + 0x98], 0
je 0x4b2937
mov ecx, dword [ebx + 0x18]
jmp 0x4b293a
mov ecx, dword [ebx + 0x14]
cmp ecx, dword [ebp - 0x34]
je 0x4b2948
mov eax, dword [ebp + 8]
inc dword [eax + 0x90]
mov edx, dword [ebp + 8]
test byte [edx + 0x9c], 4
je 0x4b2aea
push 0x400
call fcn.0049c280
pop ecx
mov dword [ebp - 0xfc], eax
lea ecx, [ebx + 0x24]
push ecx
call fcn.004af86b
pop ecx
test eax, eax
je 0x4b29d7
lea eax, [ebx + 0x24]
push eax
call fcn.004af86b
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.0049c2a0
add esp, 8
mov edx, dword [ebp + 8]
mov dword [edx + 0x5c], eax
lea eax, [ebx + 0x24]
push eax
call fcn.004af86b
pop ecx
push eax
lea ecx, [ebx + 0x24]
push ecx
call fcn.004af888
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.0049c1ac
add esp, 0xc
lea edx, [ebx + 0x24]
push edx
call fcn.004af86b
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 0x4b2a4f
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.0049c2a0
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.0049c1ac
add esp, 0xc
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 0x100]
add dword [edx + 0x60], ecx
jmp 0x4b29d7
push dword [ebp - 0xfc]
call fcn.0049c290
pop ecx
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x60], 0x10
jbe 0x4b2aea
xor eax, eax
mov dword [ebp - 0x104], eax
jmp 0x4b2a78
inc dword [ebp - 0x104]
cmp dword [ebp - 0x104], 0x10
jge 0x4b2a9a
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 0x4b2a72
cmp dword [ebp - 0x104], 0x10
jne 0x4b2ace
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.0049c1ac
add esp, 0xc
mov edx, dword [ebp + 8]
sub dword [edx + 0x60], 0x10
jmp 0x4b2aea
mov ecx, dword [ebp + 8]
push dword [ecx + 0x5c]
call fcn.0049c290
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.0049c1ac
add esp, 0xc
push 8
lea eax, [ebp - 0x40]
push eax
lea edx, [ebx + 0x8c4]
push edx
call fcn.0049c1ac
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