Function at 0x1005ac90
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 0x1006b109
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xa8
mov eax, dword [0x1007e040]
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.1005a740
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 0x1005ad8e
xor esi, esi
mov eax, dword [ecx + esi + 0x18]
add ecx, esi
or eax, dword [ecx + 0x1c]
je 0x1005ad67
cmp dword [ecx], 0
je 0x1005ad67
cmp edx, dword [ebp - 0xa0]
je 0x1005ad51
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 0x1005ad67
push ecx
push edx
lea ecx, [ebp - 0x20]
call fcn.1005c850
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 0x1005ad23
mov edi, dword [ebp - 0x20]
mov esi, dword [ebp - 0x3c]
mov dword [ebp - 0x44], edi
jmp 0x1005ad90
xor edi, edi
mov eax, edx
sub eax, edi
sar eax, 5
mov dword [ebp - 0xa4], eax
test eax, eax
jne 0x1005ae10
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 0x1005add0
push 4
push esi
call eax
test eax, eax
jne 0x1005adcb
push eax
mov ecx, esi
call dword [0x10075210]
mov eax, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
add edi, 4
sub dword [ebp - 0x58], 1
jne 0x1005adb3
mov esi, dword [ebp - 0x3c]
mov edi, dword [esi + 0x188]
mov esi, dword [esi + 0x204]
test esi, esi
je 0x1005adfe
push 4
push esi
call eax
test eax, eax
jne 0x1005adfe
push edi
mov ecx, esi
call dword [0x10075278]
mov eax, dword [ebp - 0x3c]
mov dword [eax + 0x18c], 1
jmp 0x1005b859
push 0x1004d800
push eax
mov ecx, edi
call fcn.1005c5b0
mov eax, dword [ebp - 0xa4]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x10077060]
divsd xmm0, qword [0x10076728]
movsd qword [ebp - 0xb0], xmm0
fld qword [ebp - 0xb0]
fstp qword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_ceil
add esp, 8
fstp qword [ebp - 0xb0]
movsd xmm0, qword [ebp - 0xb0]
call fcn.1003e970
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 0x1005b837
inc ecx
mov dword [ebp - 0x40], ecx
cmp ecx, 0xb
jg 0x1005b837
mov eax, dword [ebp - 0xa4]
dec eax
cmp dword [ebp - 0x54], eax
jle 0x1005aee3
mov esi, dword [esi + ecx*4 + 0x1d0]
test esi, esi
je 0x1005aed4
push 4
push esi
call edx
test eax, eax
jne 0x1005aed1
push eax
mov ecx, esi
call dword [0x10075210]
mov ecx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x54]
mov esi, dword [ebp - 0x3c]
inc eax
cmp eax, dword [ebp - 0xac]
jmp 0x1005ae8c
mov esi, dword [ebp - 0x54]
shl esi, 5
mov dword [ebp - 0x50], esi
mov ecx, dword [esi + edi]
test ecx, ecx
je 0x1005b810
mov eax, 0x10624dd3
mul ecx
shr edx, 6
imul eax, edx, 0x3e8
push eax
call dword [0x100751c4]
mov dword [ebp - 0x4c], eax
test eax, eax
je 0x1005b80a
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 0x1005afb6
test edi, edi
je 0x1005afb6
mov eax, 0x12e0be83
mov esi, edi
mul edi
sub esi, edx
shr esi, 1
add esi, edx
shr esi, 0x1d
cmp esi, 4
jae 0x1005afb6
mov eax, dword [ebp - 0x4c]
cmp byte [eax + 4], 0x2d
jae 0x1005afb6
push 4
push 0x10b8050
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1005afb6
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 [0x100751c8]
mov esi, eax
test esi, esi
je 0x1005afb8
cmp dword [esi + 0x3c], 0
je 0x1005afb8
mov edx, dword [ebp - 0x50]
mov eax, dword [ebp - 0x44]
push dword [edx + eax]
xor edx, edx
push esi
jmp 0x1005afc6
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.1000d090
add esp, 8
lea ecx, [ebp - 0x38]
push eax
call fcn.1000dbd0
mov ecx, dword [ebp - 0x88]
cmp ecx, 0xf
jbe 0x1005b017
mov edx, dword [ebp - 0x9c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1005b00d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005b885
push ecx
push edx
call fcn.100662c0
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 0x1005b107
add eax, 4
je 0x1005b08f
push 4
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1005b08c
mov ecx, dword [ebp - 0x48]
lea eax, [ebp - 0x38]
push eax
lea ecx, [ecx + 4]
call dword [0x100751d8]
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 0x1005b0dc
movsx eax, word [esi + 0x4e]
mov dword [ebp - 0x48], eax
movsx eax, word [ecx + 0x5e]
mov ecx, dword [ebp - 0x48]
add ecx, eax
jmp 0x1005b0e0
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 0x1005b135
push 4
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1005b135
mov ecx, dword [ebp - 0x48]
lea eax, [ebp - 0x38]
push eax
call dword [0x10075244]
mov edx, dword [ebp - 0x4c]
lea ecx, [ebp - 0x9c]
push esi
call fcn.1000d450
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 0x1005b176
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1005b176
push dword [ebp - 0x48]
mov ecx, esi
call dword [0x10075274]
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x88]
cmp ecx, 0xf
jbe 0x1005b1b4
mov edx, dword [ebp - 0x9c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1005b1aa
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005b885
push ecx
push edx
call fcn.100662c0
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.1000d900
mov edx, eax
mov byte [ebp - 4], 3
cmp dword [edx + 0x14], 0xf
jbe 0x1005b1d7
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 0x1005b1f4
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x84]
call fcn.10005220
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 0x1005b241
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1005b241
lea eax, [ebp - 0x84]
mov ecx, esi
push eax
call dword [0x10075274]
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x70]
cmp ecx, 0xf
jbe 0x1005b27c
mov edx, dword [ebp - 0x84]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1005b272
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005b885
push ecx
push edx
call fcn.100662c0
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 0x1005b2cf
mov edx, dword [ebp - 0x9c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1005b2c5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005b885
push ecx
push edx
call fcn.100662c0
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 0x1005b415
mov edx, dword [edi + edx + 8]
push ecx
lea ecx, [ebp - 0x9c]
call fcn.10011a10
add esp, 4
mov byte [ebp - 4], 5
cmp dword [eax + 0x14], 0xf
jbe 0x1005b306
mov eax, dword [eax]
movaps xmm0, xmmword [0x10076c40]
xor ecx, ecx
push eax
movups xmmword [ebp - 0x6c], xmm0
mov word [ebp - 0x5c], 0x4a1c
mov byte [ebp - 0x5a], 0
nop
mov al, byte [ebp - 0x6c]
xor byte [ebp + ecx - 0x6b], al
inc ecx
cmp ecx, 0x11
jb 0x1005b320
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 0x1005b350
sub ecx, esi
lea eax, [ebp - 0x6b]
push ecx
push eax
mov ecx, edx
call fcn.10005220
lea eax, [ebp - 0x84]
push eax
call fcn.10004db0
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 0x1005b3a7
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1005b3a7
push edi
mov ecx, esi
call dword [0x10075274]
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x70]
cmp ecx, 0xf
jbe 0x1005b3e2
mov edx, dword [ebp - 0x84]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1005b3d8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005b885
push ecx
push edx
call fcn.100662c0
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 0x1005b60f
mov edx, dword [ebp - 0x9c]
jmp 0x1005b5e6
cmp eax, 2
jne 0x1005b60f
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.100120e0
or dword [ebp - 0x58], 1
mov eax, 3
mov ecx, dword [ebp - 0x74]
mov edi, ecx
mov dword [ebp - 0x4c], eax
cmp edi, eax
jle 0x1005b4c7
nop dword [eax]
mov edx, edi
sub edx, eax
cmp ecx, edx
jb 0x1005b8b5
mov esi, dword [ebp - 0x70]
mov eax, esi
sub eax, ecx
cmp eax, 1
jb 0x1005b497
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 sub.VCRUNTIME140.dll_memmove
add esp, 0xc
mov byte [esi], 0x2e
jmp 0x1005b4b4
sub esp, 8
mov byte [ebp - 0xb4], 0
push edx
push dword [ebp - 0xb4]
push ecx
lea ecx, [ebp - 0x84]
call fcn.10011f80
mov eax, dword [ebp - 0x4c]
inc edi
add eax, 4
mov dword [ebp - 0x4c], eax
cmp edi, eax
jle 0x1005b4c7
mov ecx, dword [ebp - 0x74]
jmp 0x1005b450
cmp dword [ebp - 0x70], 0xf
lea eax, [ebp - 0x84]
movaps xmm0, xmmword [0x10077330]
cmova eax, dword [ebp - 0x84]
xor ecx, ecx
push eax
movups xmmword [ebp - 0x6c], xmm0
mov word [ebp - 0x5c], 0xe58
mov byte [ebp - 0x5a], 0
mov al, byte [ebp - 0x6c]
xor byte [ebp + ecx - 0x6b], al
inc ecx
cmp ecx, 0x11
jb 0x1005b4f0
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 0x1005b520
sub ecx, esi
lea eax, [ebp - 0x6b]
push ecx
push eax
mov ecx, edx
call fcn.10005220
lea eax, [ebp - 0x9c]
push eax
call fcn.10004db0
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 0x1005b577
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1005b577
push edi
mov ecx, esi
call dword [0x10075274]
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x88]
cmp ecx, 0xf
jbe 0x1005b5b5
mov edx, dword [ebp - 0x9c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1005b5ab
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005b885
push ecx
push edx
call fcn.100662c0
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 0x1005b60f
mov edx, dword [ebp - 0x84]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1005b605
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005b885
push ecx
push edx
call fcn.100662c0
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.10011a10
add esp, 4
mov byte [ebp - 4], 9
cmp dword [eax + 0x14], 0xf
jbe 0x1005b637
mov eax, dword [eax]
movaps xmm0, xmmword [0x10076d80]
xor ecx, ecx
push eax
movups xmmword [ebp - 0x6c], xmm0
mov dword [ebp - 0x5c], 0x6c3a3f
nop dword [eax]
mov al, byte [ebp - 0x6c]
xor byte [ebp + ecx - 0x6b], al
inc ecx
cmp ecx, 0x12
jb 0x1005b650
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 0x1005b680
sub ecx, esi
lea eax, [ebp - 0x6b]
push ecx
push eax
mov ecx, edx
call fcn.10005220
lea eax, [ebp - 0x9c]
push eax
call fcn.10004db0
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 0x1005b6d7
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1005b6d7
push edi
mov ecx, esi
call dword [0x10075274]
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x88]
cmp ecx, 0xf
jbe 0x1005b715
mov edx, dword [ebp - 0x9c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1005b70b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005b885
push ecx
push edx
call fcn.100662c0
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 0x1005b76b
mov edx, dword [ebp - 0x84]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1005b761
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005b885
push ecx
push edx
call fcn.100662c0
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 0x1005b7b8
mov edx, dword [ebp - 0x38]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1005b7ae
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005b885
push ecx
push edx
call fcn.100662c0
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 0x1005b822
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1005b7f2
push 1
mov ecx, esi
call dword [0x10075210]
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 0x1005ae8c
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 0x1005aebb
mov eax, dword [ebp - 0x54]
mov edi, dword [ebp - 0x44]
inc eax
mov esi, dword [ebp - 0x3c]
cmp eax, dword [ebp - 0xac]
jmp 0x1005ae8c
mov edi, dword [esi + 0x188]
mov esi, dword [esi + 0x204]
test esi, esi
je 0x1005b859
push 4
push esi
call edx
test eax, eax
jne 0x1005b859
push edi
mov ecx, esi
call dword [0x10075278]
mov ecx, dword [ebp - 0x44]
test ecx, ecx
je 0x1005b895
mov edx, dword [ebp - 0xa0]
mov eax, ecx
sub edx, ecx
and edx, 0xffffffe0
cmp edx, 0x1000
jb 0x1005b88b
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1005b88b
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.100662c0
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.1006625f
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
call fcn.100113a0
int3