Function at 0x410029
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x2c]
mov dword [ebp - 0x20], eax
and dword [ebp - 8], 0
and dword [ebp - 4], 0
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x28]
add eax, 0x78
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x28]
cmp dword [eax + 0x28], 0
je 0x41009b
mov eax, dword [ebp + 8]
cmp dword [eax + 0x1c], 0
je 0x41007f
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x28]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 0x2c]
add ecx, dword [eax + 0x28]
mov eax, dword [ebp + 8]
mov dword [eax + 0x4c], ecx
mov eax, dword [ebp + 8]
and dword [eax + 0x48], 0
jmp 0x41009b
mov eax, dword [ebp + 8]
and dword [eax + 0x4c], 0
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x28]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 0x2c]
add ecx, dword [eax + 0x28]
mov eax, dword [ebp + 8]
mov dword [eax + 0x48], ecx
mov eax, dword [ebp - 0x18]
cmp dword [eax + 4], 0
je 0x4100af
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x20]
add ecx, dword [eax]
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0
je 0x4100c7
mov eax, dword [ebp - 4]
cmp dword [eax + 0x18], 0
je 0x4100c7
mov eax, dword [ebp - 4]
cmp dword [eax + 0x14], 0
jne 0x4100e1
mov eax, dword [ebp + 8]
and dword [eax + 4], 0
mov eax, dword [ebp + 8]
and dword [eax + 0xc], 0
mov eax, dword [ebp + 8]
and dword [eax + 0x10], 0
jmp 0x410a1e
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx + 0x14]
mov dword [eax + 4], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx + 0x10]
mov dword [eax + 8], ecx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14]
shl eax, 2
push eax
call fcn.00401ac2
pop ecx
mov ecx, dword [ebp + 8]
mov dword [ecx + 0xc], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x20]
add ecx, dword [eax + 0x20]
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x20]
add ecx, dword [eax + 0x24]
mov dword [ebp - 0x1c], ecx
and dword [ebp - 0xc], 0
jmp 0x410145
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x14]
add eax, 4
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x1c]
inc eax
inc eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [eax + 0x18]
jae 0x410a15
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x20]
add ecx, dword [eax]
mov dword [ebp - 0x28], ecx
mov eax, dword [ebp - 0x1c]
movzx eax, word [eax]
mov dword [ebp - 0x24], eax
and dword [ebp - 0x2c], 0
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x24]
cmp ecx, dword [eax + 0x14]
jbe 0x410179
jmp 0x41012d
mov eax, dword [ebp + 8]
push dword [eax + 0x44]
mov eax, dword [ebp + 8]
push dword [eax + 0x40]
push dword [ebp - 0x28]
call fcn.0040fb3f
add esp, 0xc
test eax, eax
jne 0x410196
jmp 0x41012d
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x20]
add ecx, dword [eax + 0x1c]
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x20]
add edx, dword [ecx + eax*4]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x2c]
mov dword [eax + ecx*4], edx
push 0x28
call fcn.00401ac2
pop ecx
mov dword [ebp - 0x10], eax
push dword [ebp - 0x28]
call fcn.00409c44
pop ecx
mov ecx, dword [ebp - 0x10]
mov dword [ecx], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x2c]
mov dword [eax + 4], ecx
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x30], 0xfeedbeef
mov dword [ebp - 0x40], 0x9e3779b9
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x10]
push dword [eax]
call fcn.00401b90
pop ecx
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0xc
jb 0x4103cf
mov eax, dword [ebp - 0x38]
movzx eax, byte [eax]
mov ecx, dword [ebp - 0x38]
movzx ecx, byte [ecx + 1]
shl ecx, 8
add eax, ecx
mov ecx, dword [ebp - 0x38]
movzx ecx, byte [ecx + 2]
shl ecx, 0x10
add eax, ecx
mov ecx, dword [ebp - 0x38]
movzx ecx, byte [ecx + 3]
shl ecx, 0x18
add ecx, dword [ebp - 0x3c]
add ecx, eax
mov dword [ebp - 0x3c], ecx
mov eax, dword [ebp - 0x38]
movzx eax, byte [eax + 4]
mov ecx, dword [ebp - 0x38]
movzx ecx, byte [ecx + 5]
shl ecx, 8
add eax, ecx
mov ecx, dword [ebp - 0x38]
movzx ecx, byte [ecx + 6]
shl ecx, 0x10
add eax, ecx
mov ecx, dword [ebp - 0x38]
movzx ecx, byte [ecx + 7]
shl ecx, 0x18
add ecx, dword [ebp - 0x40]
add ecx, eax
mov dword [ebp - 0x40], ecx
mov eax, dword [ebp - 0x38]
movzx eax, byte [eax + 8]
mov ecx, dword [ebp - 0x38]
movzx ecx, byte [ecx + 9]
shl ecx, 8
add eax, ecx
mov ecx, dword [ebp - 0x38]
movzx ecx, byte [ecx + 0xa]
shl ecx, 0x10
add eax, ecx
mov ecx, dword [ebp - 0x38]
movzx ecx, byte [ecx + 0xb]
shl ecx, 0x18
add ecx, dword [ebp - 0x30]
add ecx, eax
mov dword [ebp - 0x30], ecx
mov eax, dword [ebp - 0x3c]
sub eax, dword [ebp - 0x40]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
sub eax, dword [ebp - 0x30]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x30]
shr eax, 0xd
xor eax, dword [ebp - 0x3c]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x40]
sub eax, dword [ebp - 0x30]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
sub eax, dword [ebp - 0x3c]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x3c]
shl eax, 8
xor eax, dword [ebp - 0x40]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x30]
sub eax, dword [ebp - 0x3c]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
sub eax, dword [ebp - 0x40]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x40]
shr eax, 0xd
xor eax, dword [ebp - 0x30]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x3c]
sub eax, dword [ebp - 0x40]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
sub eax, dword [ebp - 0x30]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x30]
shr eax, 0xc
xor eax, dword [ebp - 0x3c]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x40]
sub eax, dword [ebp - 0x30]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
sub eax, dword [ebp - 0x3c]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x3c]
shl eax, 0x10
xor eax, dword [ebp - 0x40]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x30]
sub eax, dword [ebp - 0x3c]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
sub eax, dword [ebp - 0x40]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x40]
shr eax, 5
xor eax, dword [ebp - 0x30]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x3c]
sub eax, dword [ebp - 0x40]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
sub eax, dword [ebp - 0x30]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x30]
shr eax, 3
xor eax, dword [ebp - 0x3c]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x40]
sub eax, dword [ebp - 0x30]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
sub eax, dword [ebp - 0x3c]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x3c]
shl eax, 0xa
xor eax, dword [ebp - 0x40]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x30]
sub eax, dword [ebp - 0x3c]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
sub eax, dword [ebp - 0x40]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x40]
shr eax, 0xf
xor eax, dword [ebp - 0x30]
mov dword [ebp - 0x30], eax
xor eax, eax
jne 0x4102a2
mov eax, dword [ebp - 0x38]
add eax, 0xc
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x34]
sub eax, 0xc
mov dword [ebp - 0x34], eax
jmp 0x410206
mov eax, dword [ebp - 0x10]
push dword [eax]
call fcn.00401b90
pop ecx
add eax, dword [ebp - 0x30]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x64]
dec eax
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x64], 0xa
ja case.default.0x4103fa
mov eax, dword [ebp - 0x64]
jmp dword [eax*4 + 0x410a22]
mov eax, dword [ebp - 0x38]
movzx eax, byte [eax + 0xa]
shl eax, 0x18
add eax, dword [ebp - 0x30]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x38]
movzx eax, byte [eax + 9]
shl eax, 0x10
add eax, dword [ebp - 0x30]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x38]
movzx eax, byte [eax + 8]
shl eax, 8
add eax, dword [ebp - 0x30]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x38]
movzx eax, byte [eax + 7]
shl eax, 0x18
add eax, dword [ebp - 0x40]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x38]
movzx eax, byte [eax + 6]
shl eax, 0x10
add eax, dword [ebp - 0x40]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x38]
movzx eax, byte [eax + 5]
shl eax, 8
add eax, dword [ebp - 0x40]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x38]
movzx eax, byte [eax + 4]
add eax, dword [ebp - 0x40]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x38]
movzx eax, byte [eax + 3]
shl eax, 0x18
add eax, dword [ebp - 0x3c]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x38]
movzx eax, byte [eax + 2]
shl eax, 0x10
add eax, dword [ebp - 0x3c]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x38]
movzx eax, byte [eax + 1]
shl eax, 8
add eax, dword [ebp - 0x3c]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x38]
movzx eax, byte [eax]
add eax, dword [ebp - 0x3c]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
sub eax, dword [ebp - 0x40]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
sub eax, dword [ebp - 0x30]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x30]
shr eax, 0xd
xor eax, dword [ebp - 0x3c]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x40]
sub eax, dword [ebp - 0x30]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
sub eax, dword [ebp - 0x3c]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x3c]
shl eax, 8
xor eax, dword [ebp - 0x40]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x30]
sub eax, dword [ebp - 0x3c]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
sub eax, dword [ebp - 0x40]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x40]
shr eax, 0xd
xor eax, dword [ebp - 0x30]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x3c]
sub eax, dword [ebp - 0x40]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
sub eax, dword [ebp - 0x30]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x30]
shr eax, 0xc
xor eax, dword [ebp - 0x3c]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x40]
sub eax, dword [ebp - 0x30]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
sub eax, dword [ebp - 0x3c]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x3c]
shl eax, 0x10
xor eax, dword [ebp - 0x40]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x30]
sub eax, dword [ebp - 0x3c]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
sub eax, dword [ebp - 0x40]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x40]
shr eax, 5
xor eax, dword [ebp - 0x30]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x3c]
sub eax, dword [ebp - 0x40]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
sub eax, dword [ebp - 0x30]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x30]
shr eax, 3
xor eax, dword [ebp - 0x3c]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x40]
sub eax, dword [ebp - 0x30]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
sub eax, dword [ebp - 0x3c]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x3c]
shl eax, 0xa
xor eax, dword [ebp - 0x40]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x30]
sub eax, dword [ebp - 0x3c]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
sub eax, dword [ebp - 0x40]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x40]
shr eax, 0xf
xor eax, dword [ebp - 0x30]
mov dword [ebp - 0x30], eax
xor eax, eax
jne case.default.0x4103fa
xor eax, eax
jne 0x4101dc
xor eax, eax
jne 0x4101dc
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x30]
mov dword [eax + 0x24], ecx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx]
mov dword [eax + 0x1c], ecx
mov eax, dword [ebp - 0x10]
push dword [eax]
call fcn.00401b90
pop ecx
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x20], eax
cmp dword [ebp - 8], 0
jne 0x4106e4
mov eax, dword [ebp - 0x10]
and dword [eax + 0x10], 0
mov eax, dword [ebp - 0x10]
and dword [eax + 0xc], 0
push 0x2c
call fcn.00401ac2
pop ecx
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 8], eax
mov eax, dword [ebp - 0x10]
cmp dword [eax + 8], 0
jne 0x410630
push 0xffffffffffffffff
call fcn.00403a0d
jmp 0x4106d4
push 0x2c
push 0
mov eax, dword [ebp - 0x10]
push dword [eax + 8]
call fcn.00401c20
add esp, 0xc
mov eax, dword [ebp - 0x10]
add eax, 8
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx + 8]
mov dword [ecx + 0x10], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
mov dword [eax + 4], 0x20
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
mov dword [eax + 8], 5
mov eax, dword [ebp - 0x10]
add eax, 8
sub eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx + 8]
mov dword [ecx + 0x14], eax
push 0x180
call fcn.00401ac2
pop ecx
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx + 8]
mov dword [ecx], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
mov dword [eax + 0x28], 0xa0111fe1
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
cmp dword [eax], 0
jne 0x4106bd
push 0xffffffffffffffff
call fcn.00403a0d
mov eax, dword [ebp - 0x10]
push dword [eax + 8]
call fcn.004019e5
pop ecx
jmp 0x4106d4
push 0x180
push 0
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
push dword [eax]
call fcn.00401c20
add esp, 0xc
xor eax, eax
jne 0x41060d
mov eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
jmp 0x410731
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx + 8]
mov dword [eax + 8], ecx
mov eax, dword [ebp - 0x10]
and dword [eax + 0x10], 0
mov eax, dword [ebp - 8]
mov eax, dword [eax + 8]
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx + 8]
mov eax, dword [eax + 0x10]
sub eax, dword [ecx + 0x14]
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0xc], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 8]
mov eax, dword [eax + 0x10]
mov ecx, dword [ebp - 0x10]
mov dword [eax + 8], ecx
mov eax, dword [ebp - 0x10]
add eax, 8
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx + 8]
mov dword [ecx + 0x10], eax
xor eax, eax
jne 0x4106f0
mov eax, dword [ebp - 8]
mov eax, dword [eax + 8]
mov eax, dword [eax + 0xc]
inc eax
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx + 8]
mov dword [ecx + 0xc], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 8]
mov eax, dword [eax + 4]
dec eax
and eax, dword [ebp - 0x30]
mov dword [ebp - 0x44], eax
xor eax, eax
jne 0x410744
mov eax, dword [ebp - 8]
mov eax, dword [eax + 8]
mov ecx, dword [ebp - 0x44]
imul ecx, ecx, 0xc
add ecx, dword [eax]
mov dword [ebp - 0x48], ecx
mov eax, dword [ebp - 0x48]
mov eax, dword [eax + 4]
inc eax
mov ecx, dword [ebp - 0x48]
mov dword [ecx + 4], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x48]
mov ecx, dword [ecx]
mov dword [eax + 0x18], ecx
mov eax, dword [ebp - 0x10]
and dword [eax + 0x14], 0
mov eax, dword [ebp - 0x48]
cmp dword [eax], 0
je 0x41079e
mov eax, dword [ebp - 0x10]
add eax, 8
mov ecx, dword [ebp - 0x48]
mov ecx, dword [ecx]
mov dword [ecx + 0xc], eax
mov eax, dword [ebp - 0x10]
add eax, 8
mov ecx, dword [ebp - 0x48]
mov dword [ecx], eax
mov eax, dword [ebp - 0x48]
mov eax, dword [eax + 8]
inc eax
imul eax, eax, 0xa
mov ecx, dword [ebp - 0x48]
cmp dword [ecx + 4], eax
jb 0x4109f0
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
cmp dword [eax + 0x24], 0
jne 0x4109f0
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
mov eax, dword [eax + 4]
shl eax, 1
imul eax, eax, 0xc
push eax
call fcn.00401ac2
pop ecx
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x58], 0
jne 0x4107f9
push 0xffffffffffffffff
call fcn.00403a0d
jmp 0x4109e8
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
mov eax, dword [eax + 4]
shl eax, 1
imul eax, eax, 0xc
push eax
push 0
push dword [ebp - 0x58]
call fcn.00401c20
add esp, 0xc
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx + 8]
mov ecx, dword [ecx + 8]
inc ecx
mov eax, dword [eax + 0xc]
shr eax, cl
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx + 8]
mov edx, dword [ebp - 0x10]
mov edx, dword [edx + 8]
mov edx, dword [edx + 4]
lea edx, [edx + edx - 1]
and edx, dword [ecx + 0xc]
neg edx
sbb edx, edx
neg edx
add eax, edx
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx + 8]
mov dword [ecx + 0x18], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
and dword [eax + 0x1c], 0
and dword [ebp - 0x54], 0
jmp 0x410868
mov eax, dword [ebp - 0x54]
inc eax
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
mov ecx, dword [ebp - 0x54]
cmp ecx, dword [eax + 4]
jae 0x41095a
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
mov ecx, dword [ebp - 0x54]
imul ecx, ecx, 0xc
mov eax, dword [eax]
mov eax, dword [ecx + eax]
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x5c], 0
je 0x410955
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
mov eax, dword [eax + 4]
lea eax, [eax + eax - 1]
mov ecx, dword [ebp - 0x5c]
and eax, dword [ecx + 0x1c]
mov dword [ebp - 0x4c], eax
xor eax, eax
jne 0x4108a1
mov eax, dword [ebp - 0x4c]
imul eax, eax, 0xc
add eax, dword [ebp - 0x58]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x60]
mov eax, dword [eax + 4]
inc eax
mov ecx, dword [ebp - 0x60]
mov dword [ecx + 4], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
mov ecx, dword [ebp - 0x60]
mov ecx, dword [ecx + 4]
cmp ecx, dword [eax + 0x18]
jbe 0x41091d
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
mov eax, dword [eax + 0x1c]
inc eax
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx + 8]
mov dword [ecx + 0x1c], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
mov ecx, dword [ebp - 0x60]
mov ecx, dword [ecx + 8]
imul ecx, dword [eax + 0x18]
mov eax, dword [ebp - 0x60]
cmp dword [eax + 4], ecx
jbe 0x41091d
mov eax, dword [ebp - 0x60]
mov eax, dword [eax + 8]
inc eax
mov ecx, dword [ebp - 0x60]
mov dword [ecx + 8], eax
mov eax, dword [ebp - 0x5c]
and dword [eax + 0xc], 0
mov eax, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x60]
mov ecx, dword [ecx]
mov dword [eax + 0x10], ecx
mov eax, dword [ebp - 0x60]
cmp dword [eax], 0
je 0x410942
mov eax, dword [ebp - 0x60]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x5c]
mov dword [eax + 0xc], ecx
mov eax, dword [ebp - 0x60]
mov ecx, dword [ebp - 0x5c]
mov dword [eax], ecx
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x5c], eax
jmp 0x41088e
jmp 0x410861
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
push dword [eax]
call fcn.004019e5
pop ecx
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
mov eax, dword [eax + 4]
shl eax, 1
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx + 8]
mov dword [ecx + 4], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
mov eax, dword [eax + 8]
inc eax
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx + 8]
mov dword [ecx + 8], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
mov ecx, dword [ebp - 0x58]
mov dword [eax], ecx
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
shr ecx, 1
cmp dword [eax + 0x1c], ecx
jbe 0x4109bf
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
mov eax, dword [eax + 0x20]
inc eax
mov dword [ebp - 0x68], eax
jmp 0x4109c3
and dword [ebp - 0x68], 0
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
mov ecx, dword [ebp - 0x68]
mov dword [eax + 0x20], ecx
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
cmp dword [eax + 0x20], 1
jbe 0x4109e8
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
mov dword [eax + 0x24], 1
xor eax, eax
jne 0x4107cf
xor eax, eax
jne 0x410758
xor eax, eax
jne 0x410731
xor eax, eax
jne 0x4105d0
xor eax, eax
jne 0x4101dc
jmp 0x41012d
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 8]
mov dword [eax + 0x10], ecx
leave
ret