Function at 0x1005c080
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008b719
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xa8
mov eax, dword [0x100a8080]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x58], 0
call fcn.1005bb30
xor eax, eax
mov dword [ebp - 0x18], 0
xorps xmm0, xmm0
mov dword [ebp - 0x44], eax
movq qword [ebp - 0x20], xmm0
xor edx, edx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0xa0], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], edx
xor edi, edi
mov eax, dword [esi + 0x21c]
mov ecx, dword [esi + 0x218]
sub eax, ecx
sar eax, 5
test eax, eax
je 0x1005c17e
xor esi, esi
mov eax, dword [ecx + esi + 0x18]
add ecx, esi
or eax, dword [ecx + 0x1c]
je 0x1005c157
cmp dword [ecx], 0
je 0x1005c157
cmp edx, dword [ebp - 0xa0]
je 0x1005c141
movups xmm0, xmmword [ecx]
movups xmmword [edx], xmm0
movups xmm0, xmmword [ecx + 0x10]
movups xmmword [edx + 0x10], xmm0
add edx, 0x20
mov dword [ebp - 0x1c], edx
jmp 0x1005c157
push ecx
push edx
lea ecx, [ebp - 0x20]
call fcn.1005dc50
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp - 0x3c]
inc edi
add esi, 0x20
mov ecx, dword [eax + 0x218]
mov eax, dword [eax + 0x21c]
sub eax, ecx
sar eax, 5
cmp edi, eax
jb 0x1005c113
mov edi, dword [ebp - 0x20]
mov esi, dword [ebp - 0x3c]
mov dword [ebp - 0x44], edi
jmp 0x1005c180
xor edi, edi
mov eax, edx
sub eax, edi
sar eax, 5
mov dword [ebp - 0xa4], eax
test eax, eax
jne 0x1005c200
mov eax, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
lea edi, [esi + 0x1d0]
mov dword [ebp - 0x58], 0xc
mov esi, dword [edi]
test esi, esi
je 0x1005c1c0
push 4
push esi
call eax
test eax, eax
jne 0x1005c1bb
push eax
mov ecx, esi
call dword [0x1009df64]
mov eax, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
add edi, 4
sub dword [ebp - 0x58], 1
jne 0x1005c1a3
mov esi, dword [ebp - 0x3c]
mov edi, dword [esi + 0x188]
mov esi, dword [esi + 0x204]
test esi, esi
je 0x1005c1ee
push 4
push esi
call eax
test eax, eax
jne 0x1005c1ee
push edi
mov ecx, esi
call dword [0x1009dfcc]
mov eax, dword [ebp - 0x3c]
mov dword [eax + 0x18c], 1
jmp 0x1005cc49
push 0x1004ea90
push eax
mov ecx, edi
call fcn.1005d9b0
mov eax, dword [ebp - 0xa4]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x1009fdc0]
divsd xmm0, qword [0x1009f3d0]
movsd qword [ebp - 0xb0], xmm0
fld qword [ebp - 0xb0]
fstp qword [esp]
call fcn.10083d80
add esp, 8
fstp qword [ebp - 0xb0]
movsd xmm0, qword [ebp - 0xb0]
call fcn.1003fae0
cvttsd2si eax, xmm0
or ecx, 0xffffffff
mov dword [esi + 0x18c], eax
mov eax, dword [ebx + 8]
lea edx, [eax + eax*2]
shl edx, 2
mov dword [ebp - 0xac], edx
lea eax, [edx - 0xc]
cmp eax, edx
mov edx, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
mov dword [ebp - 0x54], eax
jge 0x1005cc27
inc ecx
mov dword [ebp - 0x40], ecx
cmp ecx, 0xb
jg 0x1005cc27
mov eax, dword [ebp - 0xa4]
dec eax
cmp dword [ebp - 0x54], eax
jle 0x1005c2d3
mov esi, dword [esi + ecx*4 + 0x1d0]
test esi, esi
je 0x1005c2c4
push 4
push esi
call edx
test eax, eax
jne 0x1005c2c1
push eax
mov ecx, esi
call dword [0x1009df64]
mov ecx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x54]
mov esi, dword [ebp - 0x3c]
inc eax
cmp eax, dword [ebp - 0xac]
jmp 0x1005c27c
mov esi, dword [ebp - 0x54]
shl esi, 5
mov dword [ebp - 0x50], esi
mov ecx, dword [esi + edi]
test ecx, ecx
je 0x1005cc00
mov eax, 0x10624dd3
mul ecx
shr edx, 6
imul eax, edx, 0x3e8
push eax
call dword [0x1009df18]
mov dword [ebp - 0x4c], eax
test eax, eax
je 0x1005cbfa
xorps xmm0, xmm0
mov dword [ebp - 0x28], 0
movups xmmword [ebp - 0x38], xmm0
mov dword [ebp - 0x24], 0xf
mov byte [ebp - 0x38], 0
mov byte [ebp - 4], 1
cmp dword [eax], 0
mov edi, dword [esi + edi]
je 0x1005c3a6
test edi, edi
je 0x1005c3a6
mov eax, 0x12e0be83
mov esi, edi
mul edi
sub esi, edx
shr esi, 1
add esi, edx
shr esi, 0x1d
cmp esi, 4
jae 0x1005c3a6
mov eax, dword [ebp - 0x4c]
cmp byte [eax + 4], 0x2d
jae 0x1005c3a6
push 4
push 0x10b8050
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1005c3a6
mov eax, 0x10624dd3
mul edi
shr edx, 6
sub esi, edx
imul eax, esi, 0x3e8
add eax, edi
push eax
mov eax, dword [ebp - 0x4c]
movzx ecx, byte [eax + 4]
mov ecx, dword [ecx*4 + 0x10b8050]
call dword [0x1009df1c]
mov esi, eax
test esi, esi
je 0x1005c3a8
cmp dword [esi + 0x3c], 0
je 0x1005c3a8
mov edx, dword [ebp - 0x50]
mov eax, dword [ebp - 0x44]
push dword [edx + eax]
xor edx, edx
push esi
jmp 0x1005c3b6
xor esi, esi
mov edx, dword [ebp - 0x50]
mov eax, dword [ebp - 0x44]
push dword [edx + eax]
mov edx, dword [ebp - 0x4c]
push 0
lea ecx, [ebp - 0x9c]
call fcn.1000b1e0
add esp, 8
lea ecx, [ebp - 0x38]
push eax
call fcn.1000bc40
mov ecx, dword [ebp - 0x88]
cmp ecx, 0xf
jbe 0x1005c407
mov edx, dword [ebp - 0x9c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1005c3fd
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005cca4
push ecx
push edx
call fcn.100675d1
add esp, 8
mov eax, dword [ebp - 0x40]
mov edx, dword [ebp - 0x44]
lea edi, [eax + eax*4]
mov eax, dword [ebp - 0x50]
mov ecx, dword [eax + edx + 0x18]
mov edx, dword [eax + edx + 0x1c]
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 0x20c]
mov dword [eax + edi*8 + 0x20], ecx
mov dword [eax + edi*8 + 0x24], edx
mov eax, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x50]
mov ecx, dword [eax + 0x20c]
mov eax, dword [ebp - 0x44]
mov eax, dword [edx + eax]
mov dword [ecx + edi*8 + 0x1c], eax
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 0x20c]
mov eax, dword [eax + edi*8 + 0x18]
mov dword [ebp - 0x48], eax
test eax, eax
je 0x1005c4f7
add eax, 4
je 0x1005c47f
push 4
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1005c47c
mov ecx, dword [ebp - 0x48]
lea eax, [ebp - 0x38]
push eax
lea ecx, [ecx + 4]
call dword [0x1009df2c]
mov edx, dword [ebp - 0x50]
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x4c]
mov eax, dword [eax + 0x20c]
mov eax, dword [eax + edi*8 + 0x18]
mov dword [eax + 0x60], ecx
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 0x20c]
mov eax, dword [eax + edi*8 + 0x18]
mov dword [eax + 0x64], esi
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 0x20c]
mov eax, dword [eax + edi*8 + 0x18]
mov dword [eax + 0x68], 0
test esi, esi
je 0x1005c4cc
movsx eax, word [esi + 0x4e]
mov dword [ebp - 0x48], eax
movsx eax, word [ecx + 0x5e]
mov ecx, dword [ebp - 0x48]
add ecx, eax
jmp 0x1005c4d0
movsx ecx, word [ecx + 0x5e]
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 0x20c]
mov eax, dword [eax + edi*8 + 0x18]
mov dword [eax + 0x6c], ecx
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 0x20c]
mov ecx, dword [eax + edi*8 + 0x18]
mov eax, dword [ebp - 0x44]
mov eax, dword [edx + eax + 0x10]
mov dword [ecx + 0x44], eax
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 0x20c]
mov eax, dword [eax + edi*8 + 0x14]
mov dword [ebp - 0x48], eax
test eax, eax
je 0x1005c525
push 4
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1005c525
mov ecx, dword [ebp - 0x48]
lea eax, [ebp - 0x38]
push eax
call dword [0x1009df98]
mov edx, dword [ebp - 0x4c]
lea ecx, [ebp - 0x9c]
push esi
call fcn.1000b5b0
add esp, 4
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x3c]
mov byte [ebp - 4], 2
mov ecx, dword [eax + 0x20c]
mov esi, dword [ecx + edi*8]
test esi, esi
je 0x1005c566
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1005c566
push dword [ebp - 0x48]
mov ecx, esi
call dword [0x1009dfc8]
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x88]
cmp ecx, 0xf
jbe 0x1005c5a4
mov edx, dword [ebp - 0x9c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1005c59a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005cca4
push ecx
push edx
call fcn.100675d1
add esp, 8
mov edx, dword [ebp - 0x50]
lea ecx, [ebp - 0x9c]
mov edi, dword [ebp - 0x44]
mov edx, dword [edx + edi + 0x10]
call fcn.1000ba60
mov edx, eax
mov byte [ebp - 4], 3
cmp dword [edx + 0x14], 0xf
jbe 0x1005c5c7
mov edx, dword [edx]
mov ecx, edx
mov dword [ebp - 0x74], 0
xorps xmm0, xmm0
mov dword [ebp - 0x70], 0
movups xmmword [ebp - 0x84], xmm0
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1005c5e4
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x84]
call fcn.10005240
mov eax, dword [ebp - 0x40]
mov byte [ebp - 4], 4
lea ecx, [eax + eax*4]
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 0x20c]
mov esi, dword [eax + ecx*8 + 4]
test esi, esi
je 0x1005c631
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1005c631
lea eax, [ebp - 0x84]
mov ecx, esi
push eax
call dword [0x1009dfc8]
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x70]
cmp ecx, 0xf
jbe 0x1005c66c
mov edx, dword [ebp - 0x84]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1005c662
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005cca4
push ecx
push edx
call fcn.100675d1
add esp, 8
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x88]
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x70], 0xf
mov byte [ebp - 0x84], 0
cmp ecx, 0xf
jbe 0x1005c6bf
mov edx, dword [ebp - 0x9c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1005c6b5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005cca4
push ecx
push edx
call fcn.100675d1
add esp, 8
mov edx, dword [ebp - 0x54]
mov eax, edx
shl eax, 5
shl edx, 5
mov eax, dword [eax + edi + 0xc]
cmp eax, 1
jne 0x1005c805
mov edx, dword [edi + edx + 8]
push ecx
lea ecx, [ebp - 0x9c]
call fcn.1000e990
add esp, 4
mov byte [ebp - 4], 5
cmp dword [eax + 0x14], 0xf
jbe 0x1005c6f6
mov eax, dword [eax]
movaps xmm0, xmmword [0x1009fba0]
xor ecx, ecx
push eax
movups xmmword [ebp - 0x6c], xmm0
mov word [ebp - 0x5c], 0x6335
mov byte [ebp - 0x5a], 0
nop
mov al, byte [ebp - 0x6c]
xor byte [ebp + ecx - 0x6b], al
inc ecx
cmp ecx, 0x11
jb 0x1005c710
sub esp, 0x18
mov byte [ebp - 0x5a], 0
mov edx, esp
lea ecx, [ebp - 0x6b]
xorps xmm0, xmm0
lea esi, [ecx + 1]
movups xmmword [edx], xmm0
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1005c740
sub ecx, esi
lea eax, [ebp - 0x6b]
push ecx
push eax
mov ecx, edx
call fcn.10005240
lea eax, [ebp - 0x84]
push eax
call fcn.10004de0
add esp, 0x20
mov edi, eax
mov eax, dword [ebp - 0x40]
mov byte [ebp - 4], 6
lea edx, [eax + eax*4]
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax + 0x20c]
mov esi, dword [ecx + edx*8 + 8]
test esi, esi
je 0x1005c797
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1005c797
push edi
mov ecx, esi
call dword [0x1009dfc8]
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x70]
cmp ecx, 0xf
jbe 0x1005c7d2
mov edx, dword [ebp - 0x84]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1005c7c8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005cca4
push ecx
push edx
call fcn.100675d1
add esp, 8
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x88]
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x70], 0xf
mov byte [ebp - 0x84], 0
cmp ecx, 0xf
jbe 0x1005ca01
mov edx, dword [ebp - 0x9c]
jmp 0x1005c9d8
cmp eax, 2
jne 0x1005ca01
mov eax, dword [ebp - 0x54]
shl eax, 5
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x84]
mov edx, dword [eax + edi + 8]
call fcn.1000f790
or dword [ebp - 0x58], 3
mov eax, 3
mov ecx, dword [ebp - 0x74]
mov edi, ecx
mov dword [ebp - 0x4c], eax
cmp edi, eax
jle 0x1005c8b9
nop dword [eax]
mov edx, edi
sub edx, eax
cmp ecx, edx
jb 0x1005cc9f
mov esi, dword [ebp - 0x70]
mov eax, esi
sub eax, ecx
cmp eax, 1
jb 0x1005c887
lea eax, [ecx + 1]
cmp esi, 0xf
mov dword [ebp - 0x74], eax
lea eax, [ebp - 0x84]
cmova eax, dword [ebp - 0x84]
sub ecx, edx
inc ecx
push ecx
lea esi, [eax + edx]
lea eax, [esi + 1]
push esi
push eax
call fcn.10069130
add esp, 0xc
mov byte [esi], 0x2e
jmp 0x1005c8a6
push 0x2e
push 1
push edx
mov byte [ebp - 0xb4], 0
lea ecx, [ebp - 0x84]
push dword [ebp - 0xb4]
push 1
call fcn.1000eb70
mov eax, dword [ebp - 0x4c]
inc edi
add eax, 4
mov dword [ebp - 0x4c], eax
cmp edi, eax
jle 0x1005c8b9
mov ecx, dword [ebp - 0x74]
jmp 0x1005c840
cmp dword [ebp - 0x70], 0xf
lea eax, [ebp - 0x84]
movaps xmm0, xmmword [0x1009fcd0]
cmova eax, dword [ebp - 0x84]
xor ecx, ecx
push eax
movups xmmword [ebp - 0x6c], xmm0
mov word [ebp - 0x5c], 0x6e38
mov byte [ebp - 0x5a], 0
mov al, byte [ebp - 0x6c]
xor byte [ebp + ecx - 0x6b], al
inc ecx
cmp ecx, 0x11
jb 0x1005c8e2
sub esp, 0x18
mov byte [ebp - 0x5a], 0
mov edx, esp
lea ecx, [ebp - 0x6b]
xorps xmm0, xmm0
lea esi, [ecx + 1]
movups xmmword [edx], xmm0
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1005c912
sub ecx, esi
lea eax, [ebp - 0x6b]
push ecx
push eax
mov ecx, edx
call fcn.10005240
lea eax, [ebp - 0x9c]
push eax
call fcn.10004de0
add esp, 0x20
mov edi, eax
mov eax, dword [ebp - 0x40]
mov byte [ebp - 4], 8
lea edx, [eax + eax*4]
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax + 0x20c]
mov esi, dword [ecx + edx*8 + 8]
test esi, esi
je 0x1005c969
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1005c969
push edi
mov ecx, esi
call dword [0x1009dfc8]
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x88]
cmp ecx, 0xf
jbe 0x1005c9a7
mov edx, dword [ebp - 0x9c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1005c99d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005cca4
push ecx
push edx
call fcn.100675d1
add esp, 8
and dword [ebp - 0x58], 0xfffffffe
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x70]
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x88], 0xf
mov byte [ebp - 0x9c], 0
cmp ecx, 0xf
jbe 0x1005ca01
mov edx, dword [ebp - 0x84]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1005c9f7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005cca4
push ecx
push edx
call fcn.100675d1
add esp, 8
mov edx, dword [ebp - 0x54]
mov eax, dword [ebp - 0x44]
shl edx, 5
push ecx
lea ecx, [ebp - 0x84]
mov edx, dword [edx + eax + 4]
call fcn.1000e990
add esp, 4
mov byte [ebp - 4], 9
cmp dword [eax + 0x14], 0xf
jbe 0x1005ca29
mov eax, dword [eax]
movaps xmm0, xmmword [0x100a01c0]
xor ecx, ecx
push eax
movups xmmword [ebp - 0x6c], xmm0
mov dword [ebp - 0x5c], 0x217772
nop
mov al, byte [ebp - 0x6c]
xor byte [ebp + ecx - 0x6b], al
inc ecx
cmp ecx, 0x12
jb 0x1005ca40
sub esp, 0x18
mov byte [ebp - 0x59], 0
mov edx, esp
lea ecx, [ebp - 0x6b]
xorps xmm0, xmm0
lea esi, [ecx + 1]
movups xmmword [edx], xmm0
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1005ca70
sub ecx, esi
lea eax, [ebp - 0x6b]
push ecx
push eax
mov ecx, edx
call fcn.10005240
lea eax, [ebp - 0x9c]
push eax
call fcn.10004de0
add esp, 0x20
mov edi, eax
mov eax, dword [ebp - 0x40]
mov byte [ebp - 4], 0xa
lea edx, [eax + eax*4]
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax + 0x20c]
mov esi, dword [ecx + edx*8 + 0xc]
test esi, esi
je 0x1005cac7
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1005cac7
push edi
mov ecx, esi
call dword [0x1009dfc8]
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x88]
cmp ecx, 0xf
jbe 0x1005cb05
mov edx, dword [ebp - 0x9c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1005cafb
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005cca4
push ecx
push edx
call fcn.100675d1
add esp, 8
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x70]
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x88], 0xf
mov byte [ebp - 0x9c], 0
cmp ecx, 0xf
jbe 0x1005cb5b
mov edx, dword [ebp - 0x84]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1005cb51
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005cca4
push ecx
push edx
call fcn.100675d1
add esp, 8
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x70], 0xf
mov byte [ebp - 0x84], 0
cmp ecx, 0xf
jbe 0x1005cba8
mov edx, dword [ebp - 0x38]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1005cb9e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005cca4
push ecx
push edx
call fcn.100675d1
add esp, 8
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0xf
mov byte [ebp - 0x38], 0
mov esi, dword [eax + ecx*4 + 0x1d0]
test esi, esi
je 0x1005cc12
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1005cbe2
push 1
mov ecx, esi
call dword [0x1009df64]
mov eax, dword [ebp - 0x54]
mov edi, dword [ebp - 0x44]
inc eax
mov ecx, dword [ebp - 0x40]
mov esi, dword [ebp - 0x3c]
cmp eax, dword [ebp - 0xac]
jmp 0x1005c27c
mov edx, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x40]
mov esi, dword [eax + ecx*4 + 0x1d0]
jmp 0x1005c2ab
mov eax, dword [ebp - 0x54]
mov edi, dword [ebp - 0x44]
inc eax
mov esi, dword [ebp - 0x3c]
cmp eax, dword [ebp - 0xac]
jmp 0x1005c27c
mov edi, dword [esi + 0x188]
mov esi, dword [esi + 0x204]
test esi, esi
je 0x1005cc49
push 4
push esi
call edx
test eax, eax
jne 0x1005cc49
push edi
mov ecx, esi
call dword [0x1009dfcc]
mov ecx, dword [ebp - 0x44]
test ecx, ecx
je 0x1005cc7f
mov edx, dword [ebp - 0xa0]
mov eax, ecx
sub edx, ecx
and edx, 0xffffffe0
cmp edx, 0x1000
jb 0x1005cc75
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005cca4
push edx
push ecx
call fcn.100675d1
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10067570
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
call fcn.1000ea70
call fcn.1006cd3b
int3