Function at 0x4067f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x5c
mov esi, dword [esp + 0x70]
lea eax, [esi + 8]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x84]
test eax, eax
je 0x40681c
mov eax, dword [esi + 0x114]
mov edi, dword [esp + 0x84]
mov dword [edi], eax
mov eax, dword [esi + 0x5c]
test eax, eax
js 0x406e00
mov eax, dword [esp + 0x7c]
mov eax, dword [eax]
test eax, eax
jne 0x4068f0
mov dword [esp + 0x80], 0
mov ebx, dword [esi + 0x30]
test ebx, ebx
jne 0x406965
mov eax, dword [esp + 0x74]
mov edx, 1
mov eax, dword [eax]
mov dword [esi + 0x14], eax
mov eax, dword [esp + 0x78]
mov eax, dword [eax]
mov dword [esi + 0x10], eax
mov ebp, edx
cmp ebp, 1
je 0x4068d0
cmp ebp, 2
jne 0x4074bb
mov ecx, dword [esi + 0x60]
test ecx, ecx
je 0x4068a5
mov eax, dword [esp + 0x84]
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x7c]
mov dword [esp + 4], 1
mov dword [esp], eax
mov eax, esi
call fcn.00403810
test eax, eax
js 0x40750c
mov eax, dword [esi + 0x30]
test eax, eax
je 0x406e0a
mov edx, dword [esi + 0x14]
test edx, edx
jne 0x406920
mov eax, dword [esp + 0x74]
mov dword [esi + 0x30], 0
mov eax, dword [eax]
mov dword [esi + 0x14], eax
mov eax, dword [esp + 0x78]
mov eax, dword [eax]
mov dword [esi + 0x10], eax
lea edi, [esi + 0x88]
mov eax, dword [esi]
mov ebp, esi
mov dword [esp + 0x24], edi
cmp eax, 0x1a
ja case.default.0x4068e3
jmp dword [eax*4 + 0x4673ec]
mov ebp, dword [esp + 0x80]
test ebp, ebp
je 0x40690c
mov eax, dword [esp + 0x80]
mov edi, dword [eax]
test edi, edi
jne 0x406840
lea eax, [esi + 0x5c]
mov edx, 0xffffffec
call fcn.004046d0
jmp 0x406937
mov edi, dword [esp + 0x74]
mov ebp, dword [edi]
test ebp, ebp
jne 0x406940
mov edx, 2
lea eax, [esi + 0x5c]
call fcn.004046d0
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret
mov ecx, dword [esp + 0x78]
mov edx, dword [ecx]
movzx edx, byte [edx]
mov byte [esi + eax + 0x28], dl
add eax, 1
mov dword [esi + 0x30], eax
mov dword [esi + 0x14], eax
mov eax, dword [esp + 0x74]
add dword [ecx], 1
sub dword [eax], 1
jmp 0x4068d0
lea eax, [esi + 0x28]
mov edx, 2
mov dword [esi + 0x10], eax
jmp 0x406862
mov ecx, dword [ebp + 0x234]
mov eax, 1
mov esi, 0xffffffe2
shl eax, cl
sub eax, 0x10
mov dword [ebp + 0x38], eax
mov dword [esp + 4], 0x3030
mov eax, dword [ebp + 0x20]
mov dword [esp], eax
call dword [ebp + 0x18]
test eax, eax
mov dword [ebp + 0xa8], eax
je 0x4074b2
add eax, 0x1da0
mov dword [ebp], 3
mov dword [ebp + 0xac], eax
mov dword [esp], ebp
call fcn.004085f0
mov dword [ebp], 4
mov edx, dword [esp + 0x2c]
mov eax, ebp
call fcn.00401c30
cmp eax, 1
mov esi, eax
je 0x4074c2
mov dword [esp + 0x70], ebp
mov ebp, esi
mov esi, dword [esp + 0x70]
jmp 0x406864
mov eax, dword [ebp + 0xcc]
lea ecx, [ebp + 0x240]
lea edx, [ebp + 0x23c]
shl eax, 6
mov dword [esp], ebp
call fcn.004061d0
cmp eax, 1
mov esi, eax
jne 0x4069e3
lea eax, [ebp + 0x250]
lea edx, [ebp + 0x270]
mov dword [eax], 0
add eax, 4
cmp edx, eax
jne 0x406a22
mov eax, dword [ebp + 0xcc]
test eax, eax
mov dword [esp + 0x28], eax
je 0x406ab1
mov ecx, dword [ebp + 0x240]
xor eax, eax
mov dword [esp + 0x70], ebp
mov ebp, eax
mov ebx, ecx
lea esi, [esi]
movzx ecx, byte [ebx]
lea edi, [ebx + 0x40]
xor esi, esi
nop
lea esi, [esi]
mov eax, ecx
mov edx, ecx
xor al, byte [ebx]
xor dl, byte [ebx + 1]
add ebx, 4
or eax, edx
mov edx, ecx
xor dl, byte [ebx - 2]
or eax, edx
mov edx, ecx
xor dl, byte [ebx - 1]
or eax, edx
movzx eax, al
or esi, eax
cmp edi, ebx
jne 0x406a60
test esi, esi
jne 0x406aa2
mov esi, dword [esp + 0x70]
mov eax, ebp
mov edx, 1
shr eax, 5
mov ecx, ebp
shl edx, cl
or dword [esi + eax*4 + 0x250], edx
add ebp, 1
cmp ebp, dword [esp + 0x28]
mov ebx, edi
jne 0x406a50
mov ebp, dword [esp + 0x70]
mov dword [ebp], 0x17
mov ebx, dword [ebp + 0xf0]
test byte [ebp + 0x230], 0x20
mov edx, dword [ebp + 0xf4]
lea eax, [ebx + 1]
lea esi, [edx + 0x10]
mov ecx, eax
mov dword [esp + 0x28], eax
jne 0x4072a7
mov eax, 0x18
shl eax, cl
add eax, esi
mov dword [esp + 0x28], eax
mov edi, eax
mov eax, dword [ebp + 0xd4]
lea ecx, [ebp + 0xfc]
lea edx, [ebp + 0xf8]
mov dword [esp], ebp
shl eax, 2
call fcn.004061d0
cmp eax, 1
mov esi, eax
jne 0x4069e3
mov eax, dword [ebp + 0x23c]
lea ebx, [ebp + 0x78]
mov dword [esp + 0xc], 0x100
mov dword [esp + 8], 0x100
mov dword [esp], ebp
mov dword [esp + 4], ebx
mov dword [esp + 0x10], eax
call fcn.00408810
mov esi, eax
mov eax, dword [ebp + 0xd0]
mov dword [esp + 0xc], 0x2c0
mov dword [esp + 8], 0x2c0
mov dword [esp], ebp
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 4], eax
call fcn.00408810
and eax, esi
and eax, 1
mov esi, eax
mov eax, dword [ebp + 0xf8]
mov dword [esp + 0xc], edi
mov dword [esp], ebp
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 8], eax
lea eax, [ebp + 0x98]
mov dword [esp + 4], eax
call fcn.00408810
test esi, eax
je 0x40795e
mov dword [ebp + 4], 0
mov dword [ebp], 0x18
cmp dword [ebp + 0x270], 1
je 0x4077ed
mov eax, dword [ebx + 4]
xor edx, edx
mov dword [ebp + 0x96c], 0
mov dword [ebp + 0x270], 1
mov dword [ebp + 0x970], eax
movzx eax, word [ebx + 0xc]
cmp edx, eax
jge 0x407696
mov ecx, dword [ebp + 0x970]
jmp 0x406c29
mov edx, dword [ebx]
mov eax, dword [ebp + 0x96c]
mov ecx, dword [ebp + 0x970]
mov dword [edx + eax*4], ecx
mov ecx, dword [esp + 0x4c]
add eax, 1
mov edx, dword [ebp + 0x970]
mov dword [ebp + 0x96c], eax
lea ecx, [edx + ecx*4]
movzx edx, word [ebx + 0xc]
mov dword [ebp + 0x970], ecx
cmp eax, edx
jge 0x407696
movzx edx, word [ebx + 0xa]
movzx eax, word [ebx + 8]
lea esi, [esp + 0x4c]
mov dword [esp + 4], ebp
mov dword [esp], esi
call fcn.00402b40
cmp eax, 1
je 0x406bf0
mov esi, ebp
mov ebp, eax
jmp 0x406864
lea eax, [ebp + 0x338]
mov dword [ebp + 4], 0
mov dword [ebp + 0x27c], 0
mov dword [ebp + 0x278], 0
mov dword [ebp + 0x270], 0
mov dword [ebp + 0x314], eax
mov dword [ebp + 0x274], 0
mov eax, 0xcc
mov dword [ebp], 0x12
mov edx, dword [esp + 0x2c]
lea ecx, [ebp + eax]
lea eax, [ebp + 0x228]
call fcn.00405fc0
cmp eax, 1
mov esi, eax
jne 0x4069e3
mov edx, dword [ebp + 4]
lea ecx, [ebp + edx*4]
mov eax, dword [ecx + 0xcc]
add eax, 1
cmp eax, 1
mov dword [ecx + 0xcc], eax
jbe 0x4078b1
mov dword [ebp], 0x13
mov ecx, dword [ebp + 0xa8]
add eax, 2
mov dword [esp + 4], ebp
imul edx, edx, 0x278
mov dword [esp], 0
lea ecx, [ecx + edx*4]
mov edx, eax
call fcn.00402b40
cmp eax, 1
mov esi, eax
jne 0x4069e3
mov dword [ebp], 0x14
imul edx, dword [ebp + 4], 0x18c
mov eax, dword [ebp + 0xac]
mov dword [esp + 4], ebp
mov dword [esp], 0
lea ecx, [eax + edx*4]
mov edx, 0x1a
mov eax, 0x1a
call fcn.00402b40
cmp eax, 1
mov esi, eax
jne 0x4069e3
mov dword [ebp], 0x15
mov edx, dword [ebp + 0x22c]
mov eax, dword [ebp + 4]
test edx, edx
mov dword [esp + 0x34], eax
je 0x407326
mov eax, dword [ebp + 0xbc]
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0x30], eax
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x30]
movzx eax, byte [eax*4 + 0x468ce2]
mov esi, eax
mov dword [esp + 0x28], eax
mov eax, 0x20
sub eax, ecx
cmp esi, eax
jbe 0x407513
mov edx, dword [ebp + 0x14]
test edx, edx
je 0x406de4
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
mov esi, 0x28
sub esi, ecx
mov esi, esi
lea edi, [edi]
shr eax, 8
sub ecx, 8
sub edx, 1
mov dword [ebp + 8], eax
movzx edi, byte [ebx]
add ebx, 1
mov dword [ebp + 0xc], ecx
mov dword [ebp + 0x14], edx
mov dword [ebp + 0x10], ebx
shl edi, 0x18
or eax, edi
cmp dword [esp + 0x28], esi
mov dword [ebp + 8], eax
jbe 0x407516
add esi, 8
test edx, edx
jne 0x406db0
mov eax, dword [esp + 0x30]
mov esi, ebp
mov dword [ebp + 0x22c], 1
mov dword [ebp + 0xbc], eax
jmp 0x406872
add esp, 0x5c
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, dword [esi + 0x14]
mov eax, dword [esi + 0x10]
mov ecx, dword [esp + 0x78]
mov edi, dword [esp + 0x74]
test edx, edx
mov dword [ecx], eax
mov dword [edi], edx
je 0x40692a
mov ebx, dword [esp + 0x78]
mov ecx, edi
lea esi, [esi]
movzx eax, byte [eax]
mov edx, dword [esi + 0x30]
mov byte [esi + edx + 0x28], al
add edx, 1
mov eax, dword [ebx]
mov dword [esi + 0x30], edx
mov edi, dword [ecx]
add eax, 1
lea edx, [edi - 1]
mov dword [ebx], eax
test edx, edx
mov dword [ecx], edx
jne 0x406e30
jmp 0x40692a
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call fcn.00401a70
test eax, eax
jne 0x4073be
nop
lea esi, [esi]
mov esi, ebp
jmp 0x406872
mov esi, ebp
mov eax, esi
call fcn.00403ac0
cmp eax, 2
mov ebp, eax
jne 0x406864
mov eax, esi
call fcn.004052c0
mov ebp, eax
jmp 0x406864
mov ecx, dword [esp + 0x84]
mov edx, dword [esp + 0x80]
mov eax, dword [esp + 0x7c]
mov dword [esp], ebp
call fcn.00403960
cmp eax, 1
mov esi, eax
jne 0x4069e3
mov dword [ebp], 0xe
mov eax, 0xe
jmp switch.0x004068e3
mov ecx, dword [ebp + 0xc]
mov eax, 0x20
sub eax, ecx
cmp eax, 5
ja 0x4075fc
mov ebx, dword [ebp + 0x14]
test ebx, ebx
je 0x406e70
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
mov edi, 0x28
sub edi, ecx
lea esi, [esi]
lea edi, [edi]
shr eax, 8
sub ecx, 8
sub ebx, 1
mov dword [ebp + 8], eax
movzx edx, byte [esi]
add esi, 1
mov dword [ebp + 0xc], ecx
mov dword [ebp + 0x14], ebx
mov dword [ebp + 0x10], esi
shl edx, 0x18
or eax, edx
cmp edi, 5
mov dword [ebp + 8], eax
ja 0x4075ff
add edi, 8
test ebx, ebx
jne 0x406f00
mov esi, ebp
jmp 0x406872
mov ebx, dword [ebp + 0xb8]
test ebx, ebx
jle 0x406ebe
mov esi, dword [ebp + 0xc]
nop
lea esi, [esi]
mov eax, 0x20
sub eax, esi
cmp eax, 7
ja 0x407490
mov edx, dword [ebp + 0x14]
test edx, edx
je 0x406e70
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
mov ebx, 0x28
sub ebx, esi
nop
lea esi, [esi]
shr eax, 8
sub esi, 8
sub edx, 1
mov dword [ebp + 8], eax
movzx edi, byte [ecx]
add ecx, 1
mov dword [ebp + 0xc], esi
mov dword [ebp + 0x14], edx
mov dword [ebp + 0x10], ecx
shl edi, 0x18
or eax, edi
cmp ebx, 7
mov dword [ebp + 8], eax
ja 0x407490
add ebx, 8
test edx, edx
jne 0x406f80
jmp 0x406e70
mov eax, dword [esp + 0x84]
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x7c]
mov dword [esp + 4], 0
mov dword [esp], eax
mov eax, ebp
call fcn.00403810
cmp eax, 1
mov esi, eax
jne 0x4069e3
mov eax, ebp
call fcn.004037d0
mov ecx, dword [ebp + 0x234]
shl esi, cl
cmp dword [ebp + 0x40], esi
je 0x407953
mov eax, dword [ebp]
cmp eax, 0xf
je 0x407934
cmp eax, 0x10
je 0x407923
mov esi, dword [ebp + 4]
test esi, esi
jne 0x407912
mov ebx, dword [ebp + 0xb8]
test ebx, ebx
je 0x406ebe
mov dword [ebp], 9
mov eax, 9
jmp switch.0x004068e3
mov esi, dword [ebp + 0xc]
mov eax, 0x20
sub eax, esi
cmp eax, 5
ja 0x407661
mov edx, dword [ebp + 0x14]
test edx, edx
je 0x406e70
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
mov ecx, 0x28
sub ecx, esi
nop
lea esi, [esi]
shr eax, 8
sub esi, 8
sub edx, 1
mov dword [ebp + 8], eax
movzx edi, byte [ebx]
add ebx, 1
mov dword [ebp + 0xc], esi
mov dword [ebp + 0x14], edx
mov dword [ebp + 0x10], ebx
shl edi, 0x18
or eax, edi
cmp ecx, 5
mov dword [ebp + 8], eax
ja 0x407664
add ecx, 8
test edx, edx
jne 0x407070
mov esi, ebp
jmp 0x406872
mov eax, dword [ebp + 4]
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0xcc]
cmp dword [esp + 0x28], eax
jge 0x407480
mov ecx, dword [ebp + 0xc]
mov eax, 0x20
sub eax, ecx
cmp eax, 1
ja 0x407450
mov edx, dword [ebp + 0x14]
test edx, edx
je 0x407123
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
mov esi, 0x28
sub esi, ecx
nop
lea esi, [esi]
shr eax, 8
sub ecx, 8
sub edx, 1
mov dword [ebp + 8], eax
movzx edi, byte [ebx]
add ebx, 1
mov dword [ebp + 0xc], ecx
mov dword [ebp + 0x14], edx
mov dword [ebp + 0x10], ebx
shl edi, 0x18
or eax, edi
cmp esi, 1
mov dword [ebp + 8], eax
ja 0x407453
add esi, 8
test edx, edx
jne 0x4070f0
mov eax, dword [esp + 0x28]
mov esi, ebp
mov dword [ebp + 4], eax
jmp 0x406872
mov esi, ebp
mov eax, dword [esi + 0x60]
test eax, eax
je 0x407169
mov eax, dword [esp + 0x84]
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x7c]
mov dword [esp + 4], 1
mov dword [esp], eax
mov eax, esi
call fcn.00403810
cmp eax, 1
mov ebp, eax
jne 0x406864
lea eax, [esi + 0x5c]
mov edx, 1
call fcn.004046d0
jmp 0x406937
mov ecx, dword [ebp + 0xb8]
mov esi, 0xfffffff6
test ecx, ecx
js 0x4074b2
mov dword [esp], ebp
call fcn.00408700
test byte [ebp + 0x230], 1
jne 0x4077f8
mov dword [ebp], 3
mov eax, 3
jmp switch.0x004068e3
mov eax, dword [ebp + 4]
cmp eax, 2
jle 0x407970
mov dword [ebp], 5
mov eax, 5
jmp switch.0x004068e3
mov edx, dword [ebp + 4]
mov eax, dword [ebp + edx*4 + 0xcc]
jmp 0x406cda
mov eax, dword [ebp + 4]
cmp eax, 1
je 0x4077e4
cmp eax, 2
je 0x4077d9
test eax, eax
je 0x40788c
lea eax, [ebp + 0x5c]
mov edx, 0xffffffe1
call fcn.004046d0
jmp 0x406937
mov esi, ebp
mov ecx, dword [esi + 0xdc]
mov eax, ecx
mov edx, ecx
shr eax, 5
shl edx, 6
add edx, dword [esi + 0x240]
mov eax, dword [esi + eax*4 + 0x250]
shr eax, cl
mov dword [esi + 0x70], edx
and eax, 1
mov dword [esi + 0xb0], eax
movzx edx, byte [edx]
mov eax, dword [esi + 0x78]
mov eax, dword [eax + edx*4]
mov dword [esi + 0x100], eax
mov eax, dword [esi + 0x244]
movzx eax, byte [eax + ecx]
and eax, 3
shl eax, 9
add eax, 0x468e00
mov dword [esi + 0x6c], eax
mov eax, dword [esi + 0xfc]
mov dword [esi + 0x74], eax
mov eax, dword [esi + 0x88]
mov eax, dword [eax]
mov dword [esi + 0x68], eax
mov eax, esi
call fcn.00403720
test eax, eax
jne 0x4076c0
mov edx, 0xffffffe5
mov edi, dword [esi + 0x30]
test edi, edi
je 0x4075b6
mov dword [esi + 0x30], 0
jmp 0x40692f
cmp edx, 0x7ffffffb
mov edi, 0x8000000c
ja 0x40730f
mov eax, 0x7ffffffc
mov ecx, ebx
sub eax, edx
shr eax, cl
add eax, 4
mov dword [esp + 0x30], eax
shr eax, 1
je 0x4078f7
xor ecx, ecx
jmp 0x4072d4
mov ecx, edi
shr eax, 1
lea edi, [ecx + 1]
jne 0x4072d2
lea eax, [ecx + ecx - 2]
mov edi, dword [esp + 0x30]
shr edi, cl
mov ecx, edi
mov edi, esi
and ecx, 1
or ecx, eax
mov dword [esp + 0x30], ecx
je 0x40730f
mov ecx, ebx
mov eax, 1
shl eax, cl
lea edi, [eax - 1]
mov eax, dword [esp + 0x30]
sub eax, 1
shl eax, cl
or edi, eax
lea edi, [edx + edi + 0x11]
movzx ecx, byte [esp + 0x28]
mov eax, 0x3e
shl eax, cl
add eax, esi
mov dword [esp + 0x28], eax
jmp 0x406aec
imul edx, eax, 0x18c
mov eax, dword [ebp + 0xac]
mov ecx, dword [ebp + 0xc]
lea eax, [eax + edx*4]
mov dword [esp + 0x28], eax
mov eax, 0x20
sub eax, ecx
cmp eax, 0xe
ja 0x407560
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 8]
test eax, eax
je 0x407393
mov ebx, dword [ebp + 0x10]
mov esi, 0x28
sub esi, ecx
shr edx, 8
sub ecx, 8
sub eax, 1
mov dword [ebp + 8], edx
movzx edi, byte [ebx]
add ebx, 1
mov dword [ebp + 0xc], ecx
mov dword [ebp + 0x14], eax
mov dword [ebp + 0x10], ebx
shl edi, 0x18
or edx, edi
cmp esi, 0xe
mov dword [ebp + 8], edx
ja 0x407563
add esi, 8
test eax, eax
jne 0x407360
lea eax, [esp + 0x4c]
lea ecx, [ebp + 0xc]
mov dword [esp], eax
mov eax, dword [esp + 0x28]
call fcn.004046f0
test eax, eax
je 0x406e70
mov eax, dword [esp + 0x4c]
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0x30], eax
jmp 0x406d72
movzx eax, byte [ebp + 0x230]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
lea ecx, [edx + 1]
mov ebx, eax
and eax, 0xffffffdf
shr bl, 5
mov byte [ebp + 0x230], al
mov dword [ebp + 0xc], ecx
mov edi, ebx
and edi, 1
bt esi, edx
jae 0x407894
mov ebx, esi
shr ebx, cl
lea ecx, [edx + 4]
and ebx, 7
mov dword [ebp + 0xc], ecx
jne 0x4078a3
mov ebx, esi
shr ebx, cl
lea ecx, [edx + 7]
and ebx, 7
cmp ebx, 1
mov dword [ebp + 0xc], ecx
je 0x4078d0
lea eax, [ebx + 8]
test ebx, ebx
mov edx, 0x11
cmove eax, edx
mov dword [ebp + 0x234], eax
test byte [ebp + 0x230], 0x20
je 0x4078bf
mov dword [ebp], 1
mov eax, 1
jmp switch.0x004068e3
mov eax, dword [ebp + 8]
lea edx, [ecx + 2]
mov ebx, dword [esp + 0x28]
shr eax, cl
and eax, 3
mov dword [ebp + 0xc], edx
mov edx, dword [ebp + 0x244]
mov byte [edx + ebx], al
mov eax, dword [ebp + 0xcc]
add ebx, 1
mov dword [esp + 0x28], ebx
cmp ebx, eax
jl 0x4070c1
mov dword [ebp], 0x16
jmp 0x4069f8
mov eax, dword [ebp + 0xb8]
add esi, 8
mov dword [ebp + 0xc], esi
sub eax, 1
test eax, eax
mov dword [ebp + 0xb8], eax
jg 0x406f50
jmp 0x406ebe
mov edx, esi
mov esi, ebp
jmp 0x407290
mov edx, ebp
jmp 0x407290
movzx eax, byte [ebp + 0x230]
test al, 6
je 0x4074f3
mov ecx, dword [ebp + 0xc]
mov ebx, ecx
neg ebx
and ebx, 7
je 0x4074f3
mov edx, dword [ebp + 8]
mov esi, 0xfffffff2
shr edx, cl
and edx, dword [ebx*4 + 0x468d60]
add ecx, ebx
mov dword [ebp + 0xc], ecx
test edx, edx
jne 0x4074b2
test al, 4
je 0x4077a6
mov dword [ebp], 0xc
mov eax, 0xc
jmp switch.0x004068e3
mov edx, eax
jmp 0x40692f
mov eax, dword [ebp + 8]
mov esi, dword [esp + 0x28]
shr eax, cl
add ecx, esi
and eax, dword [esi*4 + 0x468d60]
mov esi, dword [esp + 0x30]
mov dword [ebp + 0xc], ecx
movzx edx, word [esi*4 + 0x468ce0]
mov esi, dword [esp + 0x34]
add eax, edx
mov dword [ebp + esi*4 + 0xc0], eax
mov dword [ebp + 0x22c], 0
mov eax, 0x12
add dword [ebp + 4], 1
mov dword [ebp], 0x12
jmp switch.0x004068e3
mov edx, dword [ebp + 8]
mov esi, dword [esp + 0x28]
shr edx, cl
movzx eax, dl
lea ebx, [esi + eax*4]
movzx esi, byte [ebx]
mov eax, esi
cmp al, 8
jbe 0x40759b
mov eax, edx
mov edx, esi
add ecx, 8
movzx esi, dl
shr eax, 8
movzx edx, word [ebx + 2]
and eax, 0x7f
and eax, dword [esi*4 + 0x468d40]
add eax, edx
lea ebx, [ebx + eax*4]
movzx esi, byte [ebx]
mov eax, esi
movzx esi, al
movzx eax, word [ebx + 2]
add ecx, esi
mov dword [ebp + 0xc], ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x4c], eax
jmp 0x406d72
mov edi, dword [esi + 0xc]
mov ecx, 0x20
mov ebx, dword [esi + 0x14]
mov ebp, dword [esi + 0x10]
sub ecx, edi
mov eax, ecx
and ecx, 0xfffffff8
shr eax, 3
add ebx, eax
sub ebp, eax
cmp ecx, 0x20
mov dword [esi + 0x14], ebx
mov eax, ebp
mov dword [esi + 0x10], ebp
je 0x407880
shl dword [esi + 8], cl
add ecx, edi
mov dword [esi + 0xc], ecx
mov ecx, dword [esp + 0x74]
mov dword [ecx], ebx
mov ecx, dword [esp + 0x78]
mov dword [ecx], eax
jmp 0x40692f
mov eax, dword [ebp + 8]
shr eax, cl
add ecx, 6
mov esi, 0xffffffeb
mov dword [ebp + 0xc], ecx
mov ecx, eax
shr eax, 2
and ecx, 3
and eax, 0xf
shl eax, cl
mov dword [ebp + 0xf0], ecx
mov dword [ebp + 0xf4], eax
mov eax, dword [ebp + 0xcc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0x20]
mov dword [esp], eax
call dword [ebp + 0x18]
test eax, eax
mov dword [ebp + 0x244], eax
je 0x4074b2
mov dword [ebp + 4], 0
mov dword [ebp], 6
mov dword [esp + 0x28], 0
jmp 0x4070b1
mov eax, dword [ebp + 8]
mov ecx, esi
add esi, 6
shr eax, cl
mov dword [ebp + 0xc], esi
mov esi, 0xfffffff3
and eax, 0x3f
mov ecx, eax
mov dword [ebp + 0x234], eax
lea eax, [eax - 0xa]
cmp eax, 0x14
ja 0x4074b2
mov dword [ebp], 2
jmp 0x40697b
mov eax, dword [ebp + 4]
mov dword [ebp + 0x270], 0
add eax, 1
cmp eax, 2
mov dword [ebp + 4], eax
jle 0x407825
mov esi, ebp
mov dword [ebp], 0x19
jmp 0x407216
mov eax, dword [esi + 0xf0]
movzx edi, word [esi + 0xa2]
mov edx, 1
mov ecx, eax
mov dword [esp + 0x38], eax
mov eax, dword [esi + 0xf4]
shl edx, cl
mov dword [esp + 0x34], edi
mov dword [esp + 0x28], edx
test eax, eax
je 0x40797c
xor ecx, ecx
jmp 0x4076f6
mov ecx, edx
lea edx, [ecx + 1]
mov byte [esi + ecx + 0x280], 0
cmp eax, edx
mov dword [esi + edx*4 + 0x4cc], edx
jne 0x4076f4
lea ebp, [ecx + 0x11]
add eax, 1
xor ecx, ecx
cmp dword [esp + 0x34], ebp
mov dword [esp + 0x3c], eax
mov dword [esp + 0x24], 1
jbe 0x40779b
mov dword [esp + 0x70], esi
mov esi, ecx
lea esi, [esi]
mov edi, dword [esp + 0x24]
lea eax, [esi + 2]
mov ecx, edi
shl eax, cl
movzx ecx, byte [esp + 0x38]
sub eax, 4
shl eax, cl
mov ecx, dword [esp + 0x28]
add eax, dword [esp + 0x3c]
test ecx, ecx
je 0x40778a
lea ebx, [ecx + eax]
mov ecx, dword [esp + 0x70]
mov edx, ebp
sub edx, eax
lea ecx, [ecx + edx*4]
mov edx, ebp
sub edx, eax
add edx, dword [esp + 0x70]
mov dword [esp + 0x30], edx
mov edx, edi
mov edi, dword [esp + 0x30]
mov byte [edi + eax + 0x270], dl
mov dword [ecx + eax*4 + 0x490], eax
add eax, 1
cmp eax, ebx
jne 0x407771
add ebp, dword [esp + 0x28]
add dword [esp + 0x24], esi
xor esi, 1
cmp dword [esp + 0x34], ebp
ja 0x407730
mov esi, dword [esp + 0x70]
mov dword [esi], 7
jmp 0x406e79
mov ecx, dword [ebp + 0xb8]
test ecx, ecx
je 0x406ebe
mov eax, ebp
call fcn.00402330
test byte [ebp + 0x230], 2
je case.0x4068e3.17
mov dword [ebp], 0xb
mov eax, 0xb
jmp switch.0x004068e3
lea ebx, [ebp + 0x98]
jmp 0x406bae
mov ebx, dword [esp + 0x24]
jmp 0x406bae
mov edx, dword [ebp + 0x96c]
jmp 0x406bda
mov ecx, dword [ebp + 0xc]
mov esi, ebp
mov eax, ecx
neg eax
and eax, 7
je 0x40782d
mov edx, dword [ebp + 8]
shr edx, cl
and edx, dword [eax*4 + 0x468d60]
add eax, ecx
mov dword [ebp + 0xc], eax
test edx, edx
je 0x40782d
mov edx, 0xfffffff1
jmp 0x407290
mov eax, dword [ebp]
jmp case.default.0x4068e3
mov edx, dword [esi + 0x30]
test edx, edx
jne 0x407875
mov edx, dword [esi + 0xc]
mov ecx, 0x20
mov ebx, dword [esi + 0x14]
mov edi, dword [esi + 0x10]
sub ecx, edx
mov eax, ecx
and ecx, 0xfffffff8
shr eax, 3
add ebx, eax
sub edi, eax
cmp ecx, 0x20
mov dword [esi + 0x14], ebx
mov eax, edi
mov dword [esi + 0x10], edi
je 0x407906
shl dword [esi + 8], cl
add edx, ecx
mov edi, dword [esp + 0x78]
mov ecx, dword [esp + 0x74]
mov dword [esi + 0xc], edx
mov dword [ecx], ebx
mov dword [edi], eax
mov dword [esi], 0x1a
jmp 0x407133
mov dword [esi + 8], 0
jmp 0x4075e6
lea ebx, [ebp + 0x78]
jmp 0x406bae
mov dword [ebp + 0x234], 0x10
jmp 0x407429
lea eax, [ebx + 0x11]
mov dword [ebp + 0x234], eax
jmp 0x407429
add edx, 1
mov eax, dword [ebp]
mov dword [ebp + 4], edx
jmp case.default.0x4068e3
mov dword [ebp], 2
mov eax, 2
jmp switch.0x004068e3
mov ebx, edi
test bl, bl
je 0x407986
add edx, 8
bt esi, ecx
mov dword [ebp + 0xc], edx
jb 0x407986
or eax, 0x20
mov byte [ebp + 0x230], al
jmp 0x407429
mov eax, 0xfffffffc
mov ecx, 0xffffffff
jmp 0x4072df
mov dword [esi + 8], 0
jmp 0x407864
mov dword [ebp], 8
mov eax, 8
jmp switch.0x004068e3
mov dword [ebp], 0xa
mov eax, 0xa
jmp switch.0x004068e3
mov edi, dword [ebp + 0xb8]
test edi, edi
je 0x406ebe
mov dword [ebp], 7
mov eax, 7
jmp switch.0x004068e3
mov eax, dword [ebp + 0x38]
mov dword [ebp + 0x3c], eax
jmp 0x406fff
lea eax, [ebp + 0x5c]
mov edx, 0xffffffea
call fcn.004046d0
jmp 0x406937
lea eax, [eax*4 + 0xcc]
jmp 0x406c96
mov ebp, 0x10
jmp 0x40770f
mov esi, ebp
mov edx, 0xfffffff3
jmp 0x407290