Function at 0x1006aab0
Capabilities:
Encode data using xor

Disassembly:
push ebp
lea ebp, [esp - 0x88]
sub esp, 0x88
push 0xffffffffffffffff
push 0x101723ec
mov eax, dword fs:[0]
push eax
sub esp, 0x94
mov eax, dword [0x101cfdb0]
xor eax, ebp
mov dword [ebp + 0x84], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x2c], ebx
movzx eax, byte [ebp + 0x90]
sub esp, 8
mov dword [ebp - 4], 0
mov dword [ebx + 0xc], eax
mov eax, 0x78787879
mov ecx, dword [ebx + 0x234]
sub ecx, dword [ebx + 0x230]
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x101b7c60]
divsd xmm0, qword [0x101b6d20]
movsd qword [ebp - 0x80], xmm0
fld qword [ebp - 0x80]
fstp qword [esp]
call fcn.10141220
add esp, 8
fstp qword [ebp - 0x80]
movsd xmm0, qword [ebp - 0x80]
call fcn.100490c0
cvttsd2si eax, xmm0
mov ecx, ebx
mov dword [ebx + 0x10], eax
call fcn.1006a510
xor esi, esi
nop
mov ecx, dword [ebx + 0x234]
mov eax, 0x78787879
sub ecx, dword [ebx + 0x230]
imul ecx
mov eax, dword [ebx + 0xc]
sar edx, 5
mov edi, edx
shr edi, 0x1f
add edi, edx
lea edx, [eax*8]
sub edx, eax
lea eax, [edi - 1]
lea ecx, [edx - 7]
lea ecx, [esi + ecx*2]
cmp ecx, eax
ja 0x1006bcc9
lea eax, [esi + 1]
mov dword [ebp - 0x88], eax
cmp edi, eax
jb 0x1006bcc9
add edx, 0xfffffff9
lea ecx, [ebx + 0x22c]
mov dword [ebp - 0x38], ecx
lea eax, [esi + edx*2]
push eax
mov dword [ebp - 0x34], eax
call fcn.1006c7d0
mov ecx, dword [eax + 0x24]
test ecx, ecx
je 0x1006bcba
mov eax, 0x10624dd3
mul ecx
mov ecx, dword [0xf3e688]
shr edx, 6
imul eax, edx, 0x3e8
push eax
call dword [0x101b07e4]
mov dword [ebp - 0x30], eax
test eax, eax
je 0x1006bcba
mov edi, dword [ebp + 0xac]
lea ecx, [ebp + 0x98]
mov ebx, dword [ebp + 0x98]
cmp edi, 0x10
mov edx, dword [ebp + 0xa8]
push 0
cmovae ecx, ebx
push 0x101aec64
call fcn.10064480
add esp, 8
test al, al
jne 0x1006b549
sub esp, 0x1c
lea eax, [ebp + 0x94]
mov ecx, esp
mov dword [ebp - 0x84], esp
push eax
call fcn.10046370
mov ebx, dword [ebp - 0x30]
sub esp, 0x1c
mov ecx, esp
mov byte [ebp - 4], 1
lea edi, [ebx + 8]
push edi
call fcn.10046370
mov byte [ebp - 4], 0
call fcn.100d0670
test al, al
je 0x1006b53d
push dword [ebp - 0x34]
mov ecx, dword [ebp - 0x38]
call fcn.1006c7d0
push dword [ebp - 0x34]
mov ecx, dword [ebp - 0x38]
mov dword [eax + 0x40], ebx
call fcn.1006c7d0
add eax, 8
lea ecx, [ebp - 0x28]
push eax
call fcn.10046370
lea eax, [esi + esi*8]
mov esi, dword [ebp - 0x2c]
mov dword [ebp - 0x30], eax
mov esi, dword [esi + eax*4 + 0x18]
mov byte [ebp - 4], 2
test esi, esi
je 0x1006accb
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1006accb
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call dword [0x101b07cc]
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.100432e0
mov eax, dword [ebp - 0x10]
cmp eax, 0x10
jb 0x1006acec
inc eax
push eax
push dword [ebp - 0x24]
call fcn.100479d0
add esp, 8
mov eax, dword [ebp - 0x28]
push 8
push eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0xf
mov byte [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
call fcn.100479d0
add esp, 8
lea ecx, [ebp - 0x28]
push edi
call fcn.10046370
mov eax, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
mov esi, dword [eax + esi*4 + 0x1c]
mov byte [ebp - 4], 3
test esi, esi
je 0x1006ad47
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1006ad47
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call dword [0x101b07cc]
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.100432e0
mov eax, dword [ebp - 0x10]
cmp eax, 0x10
jb 0x1006ad68
inc eax
push eax
push dword [ebp - 0x24]
call fcn.100479d0
add esp, 8
mov eax, dword [ebp - 0x28]
push 8
push eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0xf
mov byte [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
call fcn.100479d0
mov ecx, dword [ebp - 0x38]
add esp, 8
push dword [ebp - 0x34]
call fcn.1006c7d0
movzx ecx, byte [ebx + 4]
mov esi, dword [eax + 0x24]
test esi, esi
je 0x1006b040
mov eax, 0x12e0be83
mul esi
mov eax, esi
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 0x1d
cmp eax, 4
jae 0x1006b040
cmp ecx, 0x2c
ja 0x1006b040
mov ecx, dword [ecx*4 + 0xf3e690]
mov eax, 0x10624dd3
mul esi
shr edx, 6
imul eax, edx, 0x3e8
mov edx, esi
sub edx, eax
cmp esi, 0x3b9aca00
lea eax, [edx + 0x3e8]
cmovb eax, edx
push eax
call dword [0x101b07e8]
mov edi, eax
test edi, edi
je 0x1006b040
cmp dword [edi + 0x20], 0
jbe 0x1006af2a
lea ecx, [edi + 4]
push ecx
lea ecx, [ebp - 0x28]
call fcn.10046370
mov ebx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x30]
mov esi, dword [ebx + eax*4 + 0x1c]
mov byte [ebp - 4], 4
test esi, esi
jne 0x1006ae7d
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.100432e0
mov eax, dword [ebp - 0x10]
cmp eax, 0x10
jb 0x1006ae51
inc eax
push eax
push dword [ebp - 0x24]
call fcn.100479d0
add esp, 8
mov eax, dword [ebp - 0x28]
push 8
push eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0xf
mov byte [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
call fcn.100479d0
add esp, 8
jmp 0x1006af2d
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
je 0x1006aed4
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.100432e0
mov eax, dword [ebp - 0x10]
cmp eax, 0x10
jb 0x1006aeab
inc eax
push eax
push dword [ebp - 0x24]
call fcn.100479d0
add esp, 8
mov eax, dword [ebp - 0x28]
push 8
push eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0xf
mov byte [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
call fcn.100479d0
add esp, 8
jmp 0x1006af2d
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call dword [0x101b07cc]
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.100432e0
mov eax, dword [ebp - 0x10]
cmp eax, 0x10
jb 0x1006af01
inc eax
push eax
push dword [ebp - 0x24]
call fcn.100479d0
add esp, 8
mov eax, dword [ebp - 0x28]
push 8
push eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0xf
mov byte [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
call fcn.100479d0
add esp, 8
jmp 0x1006af2d
mov ebx, dword [ebp - 0x2c]
mov eax, dword [edi]
xor edx, edx
mov ecx, 0xa
div ecx
test edx, edx
je 0x1006b2bd
push edx
lea eax, [ebp + 0x6c]
push 0x101b2e18
push eax
call fcn.10051760
lea eax, [ebp - 0x59]
mov dword [ebp - 0x28], 0
push 8
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x8c], eax
call fcn.10047940
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x90], eax
add esp, 0x10
mov dword [eax], ecx
mov dword [eax + 4], 0
mov dword [ebp - 0x28], eax
mov byte [ebp - 4], 5
lea ecx, [ebp + 0x6c]
mov dword [ebp - 0x14], 0
lea edx, [ecx + 1]
mov dword [ebp - 0x10], 0xf
mov byte [ebp - 0x24], 0
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1006afb0
sub ecx, edx
lea eax, [ebp + 0x6c]
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.10046d30
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x90], 0
mov esi, dword [ebx + eax*4 + 0x20]
mov byte [ebp - 4], 6
test esi, esi
je 0x1006aff8
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1006aff8
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call dword [0x101b07cc]
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.100432e0
mov eax, dword [ebp - 0x10]
cmp eax, 0x10
jb 0x1006b019
inc eax
push eax
push dword [ebp - 0x24]
call fcn.100479d0
add esp, 8
mov eax, dword [ebp - 0x28]
push 8
push eax
mov byte [ebp - 0x24], 0
mov dword [ebp - 0x10], 0xf
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x28], 0
call fcn.100479d0
add esp, 8
mov edi, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
mov ebx, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x38]
push ebx
call fcn.1006c7d0
mov ecx, str.Sell
cmp byte [eax], 0
mov eax, 0x101b2e24
cmovne ecx, eax
push ecx
lea ecx, [ebp - 0x28]
call fcn.100461a0
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x30]
mov esi, dword [eax + ecx*4 + 0x24]
mov byte [ebp - 4], 9
test esi, esi
je 0x1006b092
push 4
push esi
call edi
test eax, eax
jne 0x1006b092
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call dword [0x101b07cc]
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.100432e0
mov eax, dword [ebp - 0x10]
cmp eax, 0x10
jb 0x1006b0b3
inc eax
push eax
push dword [ebp - 0x24]
call fcn.100479d0
add esp, 8
mov eax, dword [ebp - 0x28]
push 8
push eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0xf
mov byte [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
call fcn.100479d0
mov ecx, dword [ebp - 0x38]
add esp, 8
push ebx
call fcn.1006c7d0
lea esi, [ebp + 0x81]
mov ebx, dword [eax + 0x28]
nop dword [eax]
mov eax, 0xcccccccd
dec esi
mul ebx
shr edx, 3
mov al, dl
mov cl, dl
shl al, 2
add cl, al
add cl, cl
sub bl, cl
add bl, 0x30
mov byte [esi], bl
mov ebx, edx
test ebx, ebx
jne 0x1006b0f0
push ecx
lea eax, [ebp + 0x81]
push eax
push esi
lea ecx, [ebp - 0x28]
call fcn.1004e1c0
mov ebx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x30]
mov esi, dword [ebx + eax*4 + 0x28]
mov byte [ebp - 4], 0xa
test esi, esi
je 0x1006b14b
push 4
push esi
call edi
test eax, eax
jne 0x1006b14b
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call dword [0x101b07cc]
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.100432e0
mov eax, dword [ebp - 0x10]
cmp eax, 0x10
jb 0x1006b16c
inc eax
push eax
push dword [ebp - 0x24]
call fcn.100479d0
add esp, 8
mov eax, dword [ebp - 0x28]
push 8
push eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0xf
mov byte [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
call fcn.100479d0
mov edi, dword [ebp - 0x34]
lea ecx, [ebx + 0x22c]
add esp, 8
push edi
call fcn.1006c7d0
push 0x2e
lea ecx, [ebx + 0x22c]
push edi
cmp byte [eax + 0x30], 0
je 0x1006b3f5
call fcn.1006c7d0
mov eax, dword [eax + 0x2c]
push eax
lea eax, [ebp + 0x38]
push eax
call fcn.100ed000
mov byte [ebp - 4], 0xb
lea ecx, [eax + 4]
cmp dword [eax + 0x18], 0x10
jb 0x1006b1d6
mov ecx, dword [ecx]
movaps xmm0, xmmword [0x101b6df0]
push ecx
movups xmmword [ebp + 0x70], xmm0
xor ecx, ecx
mov al, byte [ebp + 0x70]
xor byte [ebp + ecx + 0x71], al
inc ecx
cmp ecx, 0xe
jb 0x1006b1e4
sub esp, 0x1c
mov byte [ebp + 0x7f], 0
lea eax, [ebp + 0x71]
mov ecx, esp
push eax
call fcn.100461a0
lea eax, [ebp - 0x28]
push eax
call fcn.100492e0
mov eax, dword [ebp - 0x30]
add esp, 0x24
mov esi, dword [ebx + eax*4 + 0x2c]
mov byte [ebp - 4], 0xc
test esi, esi
je 0x1006b237
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1006b237
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call dword [0x101b07cc]
lea ecx, [ebp - 0x28]
call fcn.100432e0
mov eax, dword [ebp - 0x10]
cmp eax, 0x10
jb 0x1006b254
inc eax
push eax
push dword [ebp - 0x24]
call fcn.100479d0
add esp, 8
mov eax, dword [ebp - 0x28]
push 8
push eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0xf
mov byte [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
call fcn.100479d0
add esp, 8
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x38]
call fcn.100432e0
mov eax, dword [ebp + 0x50]
cmp eax, 0x10
jb 0x1006b29c
inc eax
push eax
push dword [ebp + 0x3c]
call fcn.100479d0
add esp, 8
mov eax, dword [ebp + 0x38]
mov dword [ebp + 0x4c], 0
mov dword [ebp + 0x50], 0xf
mov byte [ebp + 0x3c], 0
mov dword [ebp + 0x38], 0
jmp 0x1006b506
lea eax, [ebp - 0x5a]
mov dword [ebp - 0x28], 0
push 8
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x94], eax
call fcn.10047940
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x98], eax
add esp, 4
mov dword [eax], ecx
mov dword [eax + 4], 0
mov dword [ebp - 0x28], eax
mov byte [ebp - 4], 7
push 1
push 0x101b2dec
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0xf
mov byte [ebp - 0x24], 0
call fcn.10046d30
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x98], 0
mov esi, dword [ebx + eax*4 + 0x20]
mov byte [ebp - 4], 8
test esi, esi
je 0x1006aff8
mov edi, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
push 4
push esi
call edi
test eax, eax
je 0x1006b39c
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.100432e0
mov eax, dword [ebp - 0x10]
cmp eax, 0x10
jb 0x1006b370
inc eax
push eax
push dword [ebp - 0x24]
call fcn.100479d0
add esp, 8
mov eax, dword [ebp - 0x28]
push 8
push eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0xf
mov byte [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
call fcn.100479d0
add esp, 8
jmp 0x1006b046
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call dword [0x101b07cc]
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.100432e0
mov eax, dword [ebp - 0x10]
cmp eax, 0x10
jb 0x1006b3c9
inc eax
push eax
push dword [ebp - 0x24]
call fcn.100479d0
add esp, 8
mov eax, dword [ebp - 0x28]
push 8
push eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0xf
mov byte [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
call fcn.100479d0
add esp, 8
jmp 0x1006b046
call fcn.1006c7d0
mov eax, dword [eax + 0x2c]
push eax
lea eax, [ebp + 0x1c]
push eax
call fcn.100ed000
mov byte [ebp - 4], 0xd
lea ecx, [eax + 4]
cmp dword [eax + 0x18], 0x10
jb 0x1006b416
mov ecx, dword [ecx]
push ecx
mov cl, 0x78
mov dword [ebp + 0x60], 0x580b5d78
mov dword [ebp + 0x64], 0x1611171b
xor eax, eax
mov word [ebp + 0x68], 0xb
nop
xor byte [ebp + eax + 0x61], cl
inc eax
cmp eax, 8
jae 0x1006b43f
mov cl, byte [ebp + 0x60]
jmp 0x1006b430
sub esp, 0x1c
mov byte [ebp + 0x69], 0
lea eax, [ebp + 0x61]
mov ecx, esp
push eax
call fcn.100461a0
lea eax, [ebp - 0x78]
push eax
call fcn.100492e0
mov eax, dword [ebp - 0x30]
add esp, 0x24
mov esi, dword [ebx + eax*4 + 0x2c]
mov byte [ebp - 4], 0xe
test esi, esi
je 0x1006b485
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1006b485
lea eax, [ebp - 0x78]
mov ecx, esi
push eax
call dword [0x101b07cc]
lea ecx, [ebp - 0x78]
call fcn.100432e0
mov eax, dword [ebp - 0x60]
cmp eax, 0x10
jb 0x1006b4a2
inc eax
push eax
push dword [ebp - 0x74]
call fcn.100479d0
add esp, 8
mov eax, dword [ebp - 0x78]
push 8
push eax
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0xf
mov byte [ebp - 0x74], 0
mov dword [ebp - 0x78], 0
call fcn.100479d0
add esp, 8
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x1c]
call fcn.100432e0
mov eax, dword [ebp + 0x34]
cmp eax, 0x10
jb 0x1006b4ea
inc eax
push eax
push dword [ebp + 0x20]
call fcn.100479d0
add esp, 8
mov eax, dword [ebp + 0x1c]
mov dword [ebp + 0x30], 0
mov dword [ebp + 0x34], 0xf
mov byte [ebp + 0x20], 0
mov dword [ebp + 0x1c], 0
push 8
push eax
call fcn.100479d0
mov esi, dword [ebp - 0x30]
add esp, 8
mov ecx, dword [ebx + esi*4 + 0x30]
test ecx, ecx
je 0x1006b524
push 1
call dword [0x101b07e0]
mov ecx, dword [ebx + esi*4 + 0x34]
test ecx, ecx
je 0x1006bcba
push 1
call dword [0x101b07e0]
jmp 0x1006bcba
mov edi, dword [ebp + 0xac]
mov ebx, dword [ebp + 0x98]
mov edx, dword [ebp + 0xa8]
lea ecx, [ebp + 0x98]
cmp edi, 0x10
push 0
cmovae ecx, ebx
push 0x101aec64
call fcn.10064480
add esp, 8
test al, al
je 0x1006bcb7
push dword [ebp - 0x34]
mov ecx, dword [ebp - 0x38]
call fcn.1006c7d0
add eax, 8
lea ecx, [ebp - 0x28]
push eax
call fcn.10046370
mov eax, dword [ebp - 0x2c]
lea ebx, [esi + esi*8]
mov dword [ebp - 0x84], ebx
mov esi, dword [eax + ebx*4 + 0x18]
mov byte [ebp - 4], 0xf
test esi, esi
je 0x1006b5ba
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1006b5ba
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call dword [0x101b07cc]
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.100432e0
mov eax, dword [ebp - 0x10]
cmp eax, 0x10
jb 0x1006b5db
inc eax
push eax
push dword [ebp - 0x24]
call fcn.100479d0
add esp, 8
mov eax, dword [ebp - 0x28]
push 8
push eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0xf
mov byte [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
call fcn.100479d0
mov edi, dword [ebp - 0x30]
lea ecx, [ebp - 0x28]
add esp, 8
lea eax, [edi + 8]
push eax
call fcn.10046370
mov eax, dword [ebp - 0x2c]
mov esi, dword [eax + ebx*4 + 0x1c]
mov byte [ebp - 4], 0x10
test esi, esi
je 0x1006b639
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1006b639
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call dword [0x101b07cc]
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.100432e0
mov eax, dword [ebp - 0x10]
cmp eax, 0x10
jb 0x1006b65a
inc eax
push eax
push dword [ebp - 0x24]
call fcn.100479d0
add esp, 8
mov eax, dword [ebp - 0x28]
push 8
push eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0xf
mov byte [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
call fcn.100479d0
mov ecx, dword [ebp - 0x38]
add esp, 8
push dword [ebp - 0x34]
call fcn.1006c7d0
movzx ecx, byte [edi + 4]
mov esi, dword [eax + 0x24]
test esi, esi
je 0x1006b906
mov eax, 0x12e0be83
mul esi
mov eax, esi
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 0x1d
cmp eax, 4
jae 0x1006b906
cmp ecx, 0x2c
ja 0x1006b906
mov ecx, dword [ecx*4 + 0xf3e690]
mov eax, 0x10624dd3
mul esi
shr edx, 6
imul eax, edx, 0x3e8
mov edx, esi
sub edx, eax
cmp esi, 0x3b9aca00
lea eax, [edx + 0x3e8]
cmovb eax, edx
push eax
call dword [0x101b07e8]
mov edi, eax
test edi, edi
je 0x1006b906
cmp dword [edi + 0x20], 0
jbe 0x1006b780
lea ecx, [edi + 4]
push ecx
lea ecx, [ebp - 0x28]
call fcn.10046370
mov eax, dword [ebp - 0x2c]
mov esi, dword [eax + ebx*4 + 0x1c]
mov byte [ebp - 4], 0x11
test esi, esi
je 0x1006b738
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1006b738
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call dword [0x101b07cc]
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.100432e0
mov eax, dword [ebp - 0x10]
cmp eax, 0x10
jb 0x1006b759
inc eax
push eax
push dword [ebp - 0x24]
call fcn.100479d0
add esp, 8
mov eax, dword [ebp - 0x28]
push 8
push eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0xf
mov byte [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
call fcn.100479d0
add esp, 8
mov eax, dword [edi]
xor edx, edx
mov ecx, 0xa
div ecx
test edx, edx
je 0x1006b82f
push edx
lea eax, [ebp + 0x6c]
push 0x101b2e18
push eax
call fcn.10051760
lea eax, [ebp - 0x5b]
mov dword [ebp - 0x28], 0
push 8
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x9c], eax
call fcn.10047940
lea ecx, [ebp - 0x28]
mov dword [ebp - 0xa0], eax
add esp, 0x10
mov dword [eax], ecx
mov dword [eax + 4], 0
mov dword [ebp - 0x28], eax
mov byte [ebp - 4], 0x12
lea ecx, [ebp + 0x6c]
mov dword [ebp - 0x14], 0
lea edx, [ecx + 1]
mov dword [ebp - 0x10], 0xf
mov byte [ebp - 0x24], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1006b802
sub ecx, edx
lea eax, [ebp + 0x6c]
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.10046d30
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0xa0], 0
mov esi, dword [eax + ebx*4 + 0x20]
mov byte [ebp - 4], 0x13
jmp 0x1006b8a1
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x28], 0
push 8
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x7c], eax
call fcn.10047940
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x80], eax
add esp, 4
mov dword [eax], ecx
mov dword [eax + 4], 0
mov dword [ebp - 0x28], eax
mov byte [ebp - 4], 0x14
push 1
push 0x101b2dec
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0xf
mov byte [ebp - 0x24], 0
call fcn.10046d30
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x80], 0
mov esi, dword [eax + ebx*4 + 0x20]
mov byte [ebp - 4], 0x15
test esi, esi
je 0x1006b8be
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1006b8be
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call dword [0x101b07cc]
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.100432e0
mov eax, dword [ebp - 0x10]
cmp eax, 0x10
jb 0x1006b8df
inc eax
push eax
push dword [ebp - 0x24]
call fcn.100479d0
add esp, 8
mov eax, dword [ebp - 0x28]
push 8
push eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0xf
mov byte [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
call fcn.100479d0
add esp, 8
mov edi, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x38]
push edi
call fcn.1006c7d0
mov ecx, str.Sell
cmp byte [eax], 0
mov eax, 0x101b2e24
cmovne ecx, eax
push ecx
lea ecx, [ebp - 0x28]
call fcn.100461a0
mov eax, dword [ebp - 0x2c]
mov esi, dword [eax + ebx*4 + 0x24]
mov byte [ebp - 4], 0x16
test esi, esi
je 0x1006b953
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1006b953
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call dword [0x101b07cc]
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.100432e0
mov eax, dword [ebp - 0x10]
cmp eax, 0x10
jb 0x1006b974
inc eax
push eax
push dword [ebp - 0x24]
call fcn.100479d0
add esp, 8
mov eax, dword [ebp - 0x28]
push 8
push eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0xf
mov byte [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
call fcn.100479d0
mov ecx, dword [ebp - 0x38]
add esp, 8
push edi
call fcn.1006c7d0
lea esi, [ebp + 0x81]
mov ebx, dword [eax + 0x28]
nop dword [eax]
mov eax, 0xcccccccd
dec esi
mul ebx
shr edx, 3
mov al, dl
mov cl, dl
shl al, 2
add cl, al
add cl, cl
sub bl, cl
add bl, 0x30
mov byte [esi], bl
mov ebx, edx
test ebx, ebx
jne 0x1006b9b0
push ecx
lea eax, [ebp + 0x81]
push eax
push esi
lea ecx, [ebp - 0x28]
call fcn.1004e1c0
mov edi, dword [ebp - 0x84]
mov ebx, dword [ebp - 0x2c]
mov esi, dword [ebx + edi*4 + 0x28]
mov byte [ebp - 4], 0x17
test esi, esi
je 0x1006ba12
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1006ba12
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call dword [0x101b07cc]
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.100432e0
mov eax, dword [ebp - 0x10]
cmp eax, 0x10
jb 0x1006ba33
inc eax
push eax
push dword [ebp - 0x24]
call fcn.100479d0
add esp, 8
mov eax, dword [ebp - 0x28]
push 8
push eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0xf
mov byte [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
call fcn.100479d0
add esp, 8
lea ecx, [ebx + 0x22c]
push dword [ebp - 0x34]
call fcn.1006c7d0
push 0x2e
push dword [ebp - 0x34]
lea ecx, [ebx + 0x22c]
cmp byte [eax + 0x30], 0
je 0x1006bb86
call fcn.1006c7d0
mov eax, dword [eax + 0x2c]
push eax
lea eax, [ebp + 0x38]
push eax
call fcn.100ed000
mov byte [ebp - 4], 0x18
lea ecx, [eax + 4]
cmp dword [eax + 0x18], 0x10
jb 0x1006ba9e
mov ecx, dword [ecx]
movaps xmm0, xmmword [0x101b6f20]
push ecx
movups xmmword [ebp + 0x70], xmm0
xor ecx, ecx
nop dword [eax]
mov al, byte [ebp + 0x70]
xor byte [ebp + ecx + 0x71], al
inc ecx
cmp ecx, 0xe
jb 0x1006bab0
sub esp, 0x1c
mov byte [ebp + 0x7f], 0
lea eax, [ebp + 0x71]
mov ecx, esp
push eax
call fcn.100461a0
lea eax, [ebp - 0x28]
push eax
call fcn.100492e0
mov esi, dword [ebx + edi*4 + 0x2c]
add esp, 0x24
mov byte [ebp - 4], 0x19
test esi, esi
je 0x1006bb00
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1006bb00
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call dword [0x101b07cc]
lea ecx, [ebp - 0x28]
call fcn.100432e0
mov eax, dword [ebp - 0x10]
cmp eax, 0x10
jb 0x1006bb1d
inc eax
push eax
push dword [ebp - 0x24]
call fcn.100479d0
add esp, 8
mov eax, dword [ebp - 0x28]
push 8
push eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0xf
mov byte [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
call fcn.100479d0
add esp, 8
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x38]
call fcn.100432e0
mov eax, dword [ebp + 0x50]
cmp eax, 0x10
jb 0x1006bb65
inc eax
push eax
push dword [ebp + 0x3c]
call fcn.100479d0
add esp, 8
mov eax, dword [ebp + 0x38]
mov dword [ebp + 0x4c], 0
mov dword [ebp + 0x50], 0xf
mov byte [ebp + 0x3c], 0
mov dword [ebp + 0x38], 0
jmp 0x1006bc93
call fcn.1006c7d0
mov eax, dword [eax + 0x2c]
push eax
lea eax, [ebp]
push eax
call fcn.100ed000
mov byte [ebp - 4], 0x1a
lea ecx, [eax + 4]
cmp dword [eax + 0x18], 0x10
jb 0x1006bba7
mov ecx, dword [ecx]
push ecx
mov cl, 0x11
mov dword [ebp + 0x54], 0x31623411
mov dword [ebp + 0x58], 0x7f787e72
xor eax, eax
mov word [ebp + 0x5c], 0x62
xor byte [ebp + eax + 0x55], cl
inc eax
cmp eax, 8
jae 0x1006bbcf
mov cl, byte [ebp + 0x54]
jmp 0x1006bbc0
sub esp, 0x1c
mov byte [ebp + 0x5d], 0
lea eax, [ebp + 0x55]
mov ecx, esp
push eax
call fcn.100461a0
lea eax, [ebp - 0x54]
push eax
call fcn.100492e0
mov esi, dword [ebx + edi*4 + 0x2c]
add esp, 0x24
mov byte [ebp - 4], 0x1b
test esi, esi
je 0x1006bc12
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1006bc12
lea eax, [ebp - 0x54]
mov ecx, esi
push eax
call dword [0x101b07cc]
lea ecx, [ebp - 0x54]
call fcn.100432e0
mov eax, dword [ebp - 0x3c]
cmp eax, 0x10
jb 0x1006bc2f
inc eax
push eax
push dword [ebp - 0x50]
call fcn.100479d0
add esp, 8
mov eax, dword [ebp - 0x54]
push 8
push eax
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0xf
mov byte [ebp - 0x50], 0
mov dword [ebp - 0x54], 0
call fcn.100479d0
add esp, 8
mov byte [ebp - 4], 0
lea ecx, [ebp]
call fcn.100432e0
mov eax, dword [ebp + 0x18]
cmp eax, 0x10
jb 0x1006bc77
inc eax
push eax
push dword [ebp + 4]
call fcn.100479d0
add esp, 8
mov eax, dword [ebp]
mov dword [ebp + 0x14], 0
mov dword [ebp + 0x18], 0xf
mov byte [ebp + 4], 0
mov dword [ebp], 0
push 8
push eax
call fcn.100479d0
mov ecx, dword [ebx + edi*4 + 0x30]
add esp, 8
test ecx, ecx
je 0x1006bcae
push 1
call dword [0x101b07e0]
mov ecx, dword [ebx + edi*4 + 0x34]
jmp 0x1006b528
mov ebx, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x88]
cmp esi, 0xe
jb 0x1006ab70
mov edx, dword [ebx + 0xc]
lea ecx, [ebp - 0x54]
call fcn.10049240
mov esi, dword [ebx + 0x228]
mov byte [ebp - 4], 0x1c
test esi, esi
je 0x1006bcfb
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1006bcfb
lea eax, [ebp - 0x54]
mov ecx, esi
push eax
call dword [0x101b07cc]
lea ecx, [ebp - 0x54]
call fcn.100432e0
mov eax, dword [ebp - 0x3c]
cmp eax, 0x10
jb 0x1006bd18
inc eax
push eax
push dword [ebp - 0x50]
call fcn.100479d0
add esp, 8
mov eax, dword [ebp - 0x54]
push 8
push eax
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0xf
mov byte [ebp - 0x50], 0
mov dword [ebp - 0x54], 0
call fcn.100479d0
add esp, 8
lea ecx, [ebp + 0x94]
call fcn.100432e0
mov eax, dword [ebp + 0xac]
cmp eax, 0x10
jb 0x1006bd65
inc eax
push eax
push dword [ebp + 0x98]
call fcn.100479d0
add esp, 8
mov eax, dword [ebp + 0x94]
push 8
push eax
mov dword [ebp + 0xa8], 0
mov dword [ebp + 0xac], 0xf
mov byte [ebp + 0x98], 0
mov dword [ebp + 0x94], 0
call fcn.100479d0
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x84]
xor ecx, ebp
call fcn.101163c0
lea esp, [ebp + 0x88]
pop ebp
ret 0x20