Function at 0x1006c180
Capabilities:
Contain obfuscated stackstrings
Encode data using xor

Disassembly:
push ebp
lea ebp, [esp - 0x88]
sub esp, 0x88
push 0xffffffffffffffff
push 0x1017c28c
mov eax, dword fs:[0]
push eax
sub esp, 0x94
mov eax, dword [0x101dadb0]
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 + 0x101c2710]
divsd xmm0, qword [0x101c17c0]
movsd qword [ebp - 0x80], xmm0
fld qword [ebp - 0x80]
fstp qword [esp]
call fcn.1014b0d0
add esp, 8
fstp qword [ebp - 0x80]
movsd xmm0, qword [ebp - 0x80]
call fcn.1004a580
cvttsd2si eax, xmm0
mov ecx, ebx
mov dword [ebx + 0x10], eax
call fcn.1006bbe0
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 0x1006d399
lea eax, [esi + 1]
mov dword [ebp - 0x88], eax
cmp edi, eax
jb 0x1006d399
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.1006dea0
mov ecx, dword [eax + 0x24]
test ecx, ecx
je 0x1006d38a
mov eax, 0x10624dd3
mul ecx
mov ecx, dword [0xf3e688]
shr edx, 6
imul eax, edx, 0x3e8
push eax
call dword [0x101ba7a4]
mov dword [ebp - 0x30], eax
test eax, eax
je 0x1006d38a
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 0x101b8c74
call fcn.10065b40
add esp, 8
test al, al
jne 0x1006cc19
sub esp, 0x1c
lea eax, [ebp + 0x94]
mov ecx, esp
mov dword [ebp - 0x84], esp
push eax
call fcn.10047840
mov ebx, dword [ebp - 0x30]
sub esp, 0x1c
mov ecx, esp
mov byte [ebp - 4], 1
lea edi, [ebx + 8]
push edi
call fcn.10047840
mov byte [ebp - 4], 0
call fcn.100da050
test al, al
je 0x1006cc0d
push dword [ebp - 0x34]
mov ecx, dword [ebp - 0x38]
call fcn.1006dea0
push dword [ebp - 0x34]
mov ecx, dword [ebp - 0x38]
mov dword [eax + 0x40], ebx
call fcn.1006dea0
add eax, 8
lea ecx, [ebp - 0x28]
push eax
call fcn.10047840
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 0x1006c39b
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1006c39b
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call dword [0x101ba78c]
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.100447b0
mov eax, dword [ebp - 0x10]
cmp eax, 0x10
jb 0x1006c3bc
inc eax
push eax
push dword [ebp - 0x24]
call fcn.10048ea0
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.10048ea0
add esp, 8
lea ecx, [ebp - 0x28]
push edi
call fcn.10047840
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 0x1006c417
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1006c417
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call dword [0x101ba78c]
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.100447b0
mov eax, dword [ebp - 0x10]
cmp eax, 0x10
jb 0x1006c438
inc eax
push eax
push dword [ebp - 0x24]
call fcn.10048ea0
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.10048ea0
mov ecx, dword [ebp - 0x38]
add esp, 8
push dword [ebp - 0x34]
call fcn.1006dea0
movzx ecx, byte [ebx + 4]
mov esi, dword [eax + 0x24]
test esi, esi
je 0x1006c710
mov eax, 0x12e0be83
mul esi
mov eax, esi
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 0x1d
cmp eax, 4
jae 0x1006c710
cmp ecx, 0x2c
ja 0x1006c710
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 [0x101ba7a8]
mov edi, eax
test edi, edi
je 0x1006c710
cmp dword [edi + 0x20], 0
jbe 0x1006c5fa
lea ecx, [edi + 4]
push ecx
lea ecx, [ebp - 0x28]
call fcn.10047840
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 0x1006c54d
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.100447b0
mov eax, dword [ebp - 0x10]
cmp eax, 0x10
jb 0x1006c521
inc eax
push eax
push dword [ebp - 0x24]
call fcn.10048ea0
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.10048ea0
add esp, 8
jmp 0x1006c5fd
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
je 0x1006c5a4
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.100447b0
mov eax, dword [ebp - 0x10]
cmp eax, 0x10
jb 0x1006c57b
inc eax
push eax
push dword [ebp - 0x24]
call fcn.10048ea0
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.10048ea0
add esp, 8
jmp 0x1006c5fd
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call dword [0x101ba78c]
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.100447b0
mov eax, dword [ebp - 0x10]
cmp eax, 0x10
jb 0x1006c5d1
inc eax
push eax
push dword [ebp - 0x24]
call fcn.10048ea0
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.10048ea0
add esp, 8
jmp 0x1006c5fd
mov ebx, dword [ebp - 0x2c]
mov eax, dword [edi]
xor edx, edx
mov ecx, 0xa
div ecx
test edx, edx
je 0x1006c98d
push edx
lea eax, [ebp + 0x6c]
push 0x101bca90
push eax
call fcn.10052e60
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.10048e10
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 0x1006c680
sub ecx, edx
lea eax, [ebp + 0x6c]
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.10048200
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 0x1006c6c8
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1006c6c8
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call dword [0x101ba78c]
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.100447b0
mov eax, dword [ebp - 0x10]
cmp eax, 0x10
jb 0x1006c6e9
inc eax
push eax
push dword [ebp - 0x24]
call fcn.10048ea0
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.10048ea0
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.1006dea0
mov ecx, str.Sell
cmp byte [eax], 0
mov eax, 0x101bca9c
cmovne ecx, eax
push ecx
lea ecx, [ebp - 0x28]
call fcn.10047670
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 0x1006c762
push 4
push esi
call edi
test eax, eax
jne 0x1006c762
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call dword [0x101ba78c]
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.100447b0
mov eax, dword [ebp - 0x10]
cmp eax, 0x10
jb 0x1006c783
inc eax
push eax
push dword [ebp - 0x24]
call fcn.10048ea0
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.10048ea0
mov ecx, dword [ebp - 0x38]
add esp, 8
push ebx
call fcn.1006dea0
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 0x1006c7c0
push ecx
lea eax, [ebp + 0x81]
push eax
push esi
lea ecx, [ebp - 0x28]
call fcn.1004f8c0
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 0x1006c81b
push 4
push esi
call edi
test eax, eax
jne 0x1006c81b
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call dword [0x101ba78c]
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.100447b0
mov eax, dword [ebp - 0x10]
cmp eax, 0x10
jb 0x1006c83c
inc eax
push eax
push dword [ebp - 0x24]
call fcn.10048ea0
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.10048ea0
mov edi, dword [ebp - 0x34]
lea ecx, [ebx + 0x22c]
add esp, 8
push edi
call fcn.1006dea0
push 0x2e
lea ecx, [ebx + 0x22c]
push edi
cmp byte [eax + 0x30], 0
je 0x1006cac5
call fcn.1006dea0
mov eax, dword [eax + 0x2c]
push eax
lea eax, [ebp + 0x38]
push eax
call fcn.100f6c10
mov byte [ebp - 4], 0xb
lea ecx, [eax + 4]
cmp dword [eax + 0x18], 0x10
jb 0x1006c8a6
mov ecx, dword [ecx]
movaps xmm0, xmmword [0x101c18d0]
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 0x1006c8b4
sub esp, 0x1c
mov byte [ebp + 0x7f], 0
lea eax, [ebp + 0x71]
mov ecx, esp
push eax
call fcn.10047670
lea eax, [ebp - 0x28]
push eax
call fcn.1004a7a0
mov eax, dword [ebp - 0x30]
add esp, 0x24
mov esi, dword [ebx + eax*4 + 0x2c]
mov byte [ebp - 4], 0xc
test esi, esi
je 0x1006c907
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1006c907
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call dword [0x101ba78c]
lea ecx, [ebp - 0x28]
call fcn.100447b0
mov eax, dword [ebp - 0x10]
cmp eax, 0x10
jb 0x1006c924
inc eax
push eax
push dword [ebp - 0x24]
call fcn.10048ea0
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.10048ea0
add esp, 8
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x38]
call fcn.100447b0
mov eax, dword [ebp + 0x50]
cmp eax, 0x10
jb 0x1006c96c
inc eax
push eax
push dword [ebp + 0x3c]
call fcn.10048ea0
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 0x1006cbd6
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.10048e10
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 0x101bca64
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0xf
mov byte [ebp - 0x24], 0
call fcn.10048200
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 0x1006c6c8
mov edi, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
push 4
push esi
call edi
test eax, eax
je 0x1006ca6c
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.100447b0
mov eax, dword [ebp - 0x10]
cmp eax, 0x10
jb 0x1006ca40
inc eax
push eax
push dword [ebp - 0x24]
call fcn.10048ea0
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.10048ea0
add esp, 8
jmp 0x1006c716
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call dword [0x101ba78c]
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.100447b0
mov eax, dword [ebp - 0x10]
cmp eax, 0x10
jb 0x1006ca99
inc eax
push eax
push dword [ebp - 0x24]
call fcn.10048ea0
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.10048ea0
add esp, 8
jmp 0x1006c716
call fcn.1006dea0
mov eax, dword [eax + 0x2c]
push eax
lea eax, [ebp + 0x1c]
push eax
call fcn.100f6c10
mov byte [ebp - 4], 0xd
lea ecx, [eax + 4]
cmp dword [eax + 0x18], 0x10
jb 0x1006cae6
mov ecx, dword [ecx]
push ecx
mov cl, 0x75
mov dword [ebp + 0x60], 0x55065075
mov dword [ebp + 0x64], 0x1b1c1a16
xor eax, eax
mov word [ebp + 0x68], 6
nop
xor byte [ebp + eax + 0x61], cl
inc eax
cmp eax, 8
jae 0x1006cb0f
mov cl, byte [ebp + 0x60]
jmp 0x1006cb00
sub esp, 0x1c
mov byte [ebp + 0x69], 0
lea eax, [ebp + 0x61]
mov ecx, esp
push eax
call fcn.10047670
lea eax, [ebp - 0x78]
push eax
call fcn.1004a7a0
mov eax, dword [ebp - 0x30]
add esp, 0x24
mov esi, dword [ebx + eax*4 + 0x2c]
mov byte [ebp - 4], 0xe
test esi, esi
je 0x1006cb55
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1006cb55
lea eax, [ebp - 0x78]
mov ecx, esi
push eax
call dword [0x101ba78c]
lea ecx, [ebp - 0x78]
call fcn.100447b0
mov eax, dword [ebp - 0x60]
cmp eax, 0x10
jb 0x1006cb72
inc eax
push eax
push dword [ebp - 0x74]
call fcn.10048ea0
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.10048ea0
add esp, 8
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x1c]
call fcn.100447b0
mov eax, dword [ebp + 0x34]
cmp eax, 0x10
jb 0x1006cbba
inc eax
push eax
push dword [ebp + 0x20]
call fcn.10048ea0
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.10048ea0
mov esi, dword [ebp - 0x30]
add esp, 8
mov ecx, dword [ebx + esi*4 + 0x30]
test ecx, ecx
je 0x1006cbf4
push 1
call dword [0x101ba7a0]
mov ecx, dword [ebx + esi*4 + 0x34]
test ecx, ecx
je 0x1006d38a
push 1
call dword [0x101ba7a0]
jmp 0x1006d38a
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 0x101b8c74
call fcn.10065b40
add esp, 8
test al, al
je 0x1006d387
push dword [ebp - 0x34]
mov ecx, dword [ebp - 0x38]
call fcn.1006dea0
add eax, 8
lea ecx, [ebp - 0x28]
push eax
call fcn.10047840
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 0x1006cc8a
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1006cc8a
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call dword [0x101ba78c]
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.100447b0
mov eax, dword [ebp - 0x10]
cmp eax, 0x10
jb 0x1006ccab
inc eax
push eax
push dword [ebp - 0x24]
call fcn.10048ea0
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.10048ea0
mov edi, dword [ebp - 0x30]
lea ecx, [ebp - 0x28]
add esp, 8
lea eax, [edi + 8]
push eax
call fcn.10047840
mov eax, dword [ebp - 0x2c]
mov esi, dword [eax + ebx*4 + 0x1c]
mov byte [ebp - 4], 0x10
test esi, esi
je 0x1006cd09
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1006cd09
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call dword [0x101ba78c]
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.100447b0
mov eax, dword [ebp - 0x10]
cmp eax, 0x10
jb 0x1006cd2a
inc eax
push eax
push dword [ebp - 0x24]
call fcn.10048ea0
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.10048ea0
mov ecx, dword [ebp - 0x38]
add esp, 8
push dword [ebp - 0x34]
call fcn.1006dea0
movzx ecx, byte [edi + 4]
mov esi, dword [eax + 0x24]
test esi, esi
je 0x1006cfd6
mov eax, 0x12e0be83
mul esi
mov eax, esi
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 0x1d
cmp eax, 4
jae 0x1006cfd6
cmp ecx, 0x2c
ja 0x1006cfd6
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 [0x101ba7a8]
mov edi, eax
test edi, edi
je 0x1006cfd6
cmp dword [edi + 0x20], 0
jbe 0x1006ce50
lea ecx, [edi + 4]
push ecx
lea ecx, [ebp - 0x28]
call fcn.10047840
mov eax, dword [ebp - 0x2c]
mov esi, dword [eax + ebx*4 + 0x1c]
mov byte [ebp - 4], 0x11
test esi, esi
je 0x1006ce08
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1006ce08
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call dword [0x101ba78c]
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.100447b0
mov eax, dword [ebp - 0x10]
cmp eax, 0x10
jb 0x1006ce29
inc eax
push eax
push dword [ebp - 0x24]
call fcn.10048ea0
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.10048ea0
add esp, 8
mov eax, dword [edi]
xor edx, edx
mov ecx, 0xa
div ecx
test edx, edx
je 0x1006ceff
push edx
lea eax, [ebp + 0x6c]
push 0x101bca90
push eax
call fcn.10052e60
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.10048e10
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 0x1006ced2
sub ecx, edx
lea eax, [ebp + 0x6c]
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.10048200
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0xa0], 0
mov esi, dword [eax + ebx*4 + 0x20]
mov byte [ebp - 4], 0x13
jmp 0x1006cf71
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.10048e10
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 0x101bca64
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0xf
mov byte [ebp - 0x24], 0
call fcn.10048200
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 0x1006cf8e
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1006cf8e
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call dword [0x101ba78c]
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.100447b0
mov eax, dword [ebp - 0x10]
cmp eax, 0x10
jb 0x1006cfaf
inc eax
push eax
push dword [ebp - 0x24]
call fcn.10048ea0
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.10048ea0
add esp, 8
mov edi, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x38]
push edi
call fcn.1006dea0
mov ecx, str.Sell
cmp byte [eax], 0
mov eax, 0x101bca9c
cmovne ecx, eax
push ecx
lea ecx, [ebp - 0x28]
call fcn.10047670
mov eax, dword [ebp - 0x2c]
mov esi, dword [eax + ebx*4 + 0x24]
mov byte [ebp - 4], 0x16
test esi, esi
je 0x1006d023
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1006d023
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call dword [0x101ba78c]
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.100447b0
mov eax, dword [ebp - 0x10]
cmp eax, 0x10
jb 0x1006d044
inc eax
push eax
push dword [ebp - 0x24]
call fcn.10048ea0
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.10048ea0
mov ecx, dword [ebp - 0x38]
add esp, 8
push edi
call fcn.1006dea0
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 0x1006d080
push ecx
lea eax, [ebp + 0x81]
push eax
push esi
lea ecx, [ebp - 0x28]
call fcn.1004f8c0
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 0x1006d0e2
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1006d0e2
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call dword [0x101ba78c]
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.100447b0
mov eax, dword [ebp - 0x10]
cmp eax, 0x10
jb 0x1006d103
inc eax
push eax
push dword [ebp - 0x24]
call fcn.10048ea0
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.10048ea0
add esp, 8
lea ecx, [ebx + 0x22c]
push dword [ebp - 0x34]
call fcn.1006dea0
push 0x2e
push dword [ebp - 0x34]
lea ecx, [ebx + 0x22c]
cmp byte [eax + 0x30], 0
je 0x1006d256
call fcn.1006dea0
mov eax, dword [eax + 0x2c]
push eax
lea eax, [ebp + 0x38]
push eax
call fcn.100f6c10
mov byte [ebp - 4], 0x18
lea ecx, [eax + 4]
cmp dword [eax + 0x18], 0x10
jb 0x1006d16e
mov ecx, dword [ecx]
movaps xmm0, xmmword [0x101c18a0]
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 0x1006d180
sub esp, 0x1c
mov byte [ebp + 0x7f], 0
lea eax, [ebp + 0x71]
mov ecx, esp
push eax
call fcn.10047670
lea eax, [ebp - 0x28]
push eax
call fcn.1004a7a0
mov esi, dword [ebx + edi*4 + 0x2c]
add esp, 0x24
mov byte [ebp - 4], 0x19
test esi, esi
je 0x1006d1d0
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1006d1d0
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call dword [0x101ba78c]
lea ecx, [ebp - 0x28]
call fcn.100447b0
mov eax, dword [ebp - 0x10]
cmp eax, 0x10
jb 0x1006d1ed
inc eax
push eax
push dword [ebp - 0x24]
call fcn.10048ea0
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.10048ea0
add esp, 8
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x38]
call fcn.100447b0
mov eax, dword [ebp + 0x50]
cmp eax, 0x10
jb 0x1006d235
inc eax
push eax
push dword [ebp + 0x3c]
call fcn.10048ea0
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 0x1006d363
call fcn.1006dea0
mov eax, dword [eax + 0x2c]
push eax
lea eax, [ebp]
push eax
call fcn.100f6c10
mov byte [ebp - 4], 0x1a
lea ecx, [eax + 4]
cmp dword [eax + 0x18], 0x10
jb 0x1006d277
mov ecx, dword [ecx]
push ecx
mov cl, 0x56
mov dword [ebp + 0x54], 0x76257356
mov dword [ebp + 0x58], 0x383f3935
xor eax, eax
mov word [ebp + 0x5c], 0x25
xor byte [ebp + eax + 0x55], cl
inc eax
cmp eax, 8
jae 0x1006d29f
mov cl, byte [ebp + 0x54]
jmp 0x1006d290
sub esp, 0x1c
mov byte [ebp + 0x5d], 0
lea eax, [ebp + 0x55]
mov ecx, esp
push eax
call fcn.10047670
lea eax, [ebp - 0x54]
push eax
call fcn.1004a7a0
mov esi, dword [ebx + edi*4 + 0x2c]
add esp, 0x24
mov byte [ebp - 4], 0x1b
test esi, esi
je 0x1006d2e2
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1006d2e2
lea eax, [ebp - 0x54]
mov ecx, esi
push eax
call dword [0x101ba78c]
lea ecx, [ebp - 0x54]
call fcn.100447b0
mov eax, dword [ebp - 0x3c]
cmp eax, 0x10
jb 0x1006d2ff
inc eax
push eax
push dword [ebp - 0x50]
call fcn.10048ea0
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.10048ea0
add esp, 8
mov byte [ebp - 4], 0
lea ecx, [ebp]
call fcn.100447b0
mov eax, dword [ebp + 0x18]
cmp eax, 0x10
jb 0x1006d347
inc eax
push eax
push dword [ebp + 4]
call fcn.10048ea0
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.10048ea0
mov ecx, dword [ebx + edi*4 + 0x30]
add esp, 8
test ecx, ecx
je 0x1006d37e
push 1
call dword [0x101ba7a0]
mov ecx, dword [ebx + edi*4 + 0x34]
jmp 0x1006cbf8
mov ebx, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x88]
cmp esi, 0xe
jb 0x1006c240
mov edx, dword [ebx + 0xc]
lea ecx, [ebp - 0x54]
call fcn.1004a700
mov esi, dword [ebx + 0x228]
mov byte [ebp - 4], 0x1c
test esi, esi
je 0x1006d3cb
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1006d3cb
lea eax, [ebp - 0x54]
mov ecx, esi
push eax
call dword [0x101ba78c]
lea ecx, [ebp - 0x54]
call fcn.100447b0
mov eax, dword [ebp - 0x3c]
cmp eax, 0x10
jb 0x1006d3e8
inc eax
push eax
push dword [ebp - 0x50]
call fcn.10048ea0
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.10048ea0
add esp, 8
lea ecx, [ebp + 0x94]
call fcn.100447b0
mov eax, dword [ebp + 0xac]
cmp eax, 0x10
jb 0x1006d435
inc eax
push eax
push dword [ebp + 0x98]
call fcn.10048ea0
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.10048ea0
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.10120250
lea esp, [ebp + 0x88]
pop ebp
ret 0x20