Function at 0x100526c0
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 0x10068cbd
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x98
mov eax, dword [0x1007c040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x50], 0
call fcn.10052170
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
xor edx, edx
movq qword [ebp - 0x20], xmm0
xor esi, esi
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x3c]
xor edi, edi
mov dword [ebp - 4], edx
mov ecx, dword [eax + 0x218]
mov eax, dword [eax + 0x21c]
sub eax, ecx
sar eax, 5
test eax, eax
je 0x100527aa
nop dword [eax + eax]
mov eax, dword [ecx + esi + 0x18]
add ecx, esi
or eax, dword [ecx + 0x1c]
je 0x1005278b
cmp dword [ecx], 0
je 0x1005278b
cmp edx, dword [ebp - 0x18]
je 0x1005277e
movups xmm0, xmmword [ecx]
movups xmmword [edx], xmm0
movups xmm0, xmmword [ecx + 0x10]
movups xmmword [edx + 0x10], xmm0
mov edx, dword [ebp - 0x1c]
add edx, 0x20
mov dword [ebp - 0x1c], edx
jmp 0x1005278b
push ecx
push edx
lea ecx, [ebp - 0x20]
call fcn.10054150
mov edx, dword [ebp - 0x1c]
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 0x10052750
mov esi, dword [ebp - 0x20]
mov eax, edx
sub eax, esi
sar eax, 5
test eax, eax
jne 0x1005282d
mov edi, dword [ebp - 0x3c]
mov eax, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
add edi, 0x1d0
mov dword [ebp - 0x50], 0xc
nop word [eax + eax]
mov esi, dword [edi]
test esi, esi
je 0x100527ed
push 4
push esi
call eax
test eax, eax
jne 0x100527e8
push eax
mov ecx, esi
call dword [0x100735d4]
mov eax, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
add edi, 4
sub dword [ebp - 0x50], 1
jne 0x100527d0
mov esi, dword [ebp - 0x3c]
mov edi, dword [esi + 0x188]
mov esi, dword [esi + 0x204]
test esi, esi
je 0x1005281b
push 4
push esi
call eax
test eax, eax
jne 0x1005281b
push edi
mov ecx, esi
call dword [0x1007363c]
mov eax, dword [ebp - 0x3c]
mov dword [eax + 0x18c], 1
jmp 0x1005321e
push 0x100451b0
push eax
mov ecx, esi
call fcn.10053ec0
mov eax, dword [ebp - 0x1c]
sub eax, dword [ebp - 0x20]
sar eax, 5
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x100752a0]
divsd xmm0, qword [0x10074700]
movsd qword [ebp - 0xa0], xmm0
fld qword [ebp - 0xa0]
fstp qword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_ceil
add esp, 8
fstp qword [ebp - 0xa0]
movsd xmm0, qword [ebp - 0xa0]
call fcn.10036980
mov edi, dword [ebp - 0x3c]
or edx, 0xffffffff
mov ecx, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
cvttsd2si eax, xmm0
mov dword [edi + 0x18c], eax
mov eax, dword [ebx + 8]
lea eax, [eax + eax*2]
shl eax, 2
mov dword [ebp - 0x9c], eax
lea esi, [eax - 0xc]
mov dword [ebp - 0xa4], esi
cmp esi, eax
jge 0x100531f9
inc edx
mov dword [ebp - 0x44], edx
cmp edx, 0xb
jg 0x100531f9
mov eax, dword [ebp - 0x1c]
sub eax, dword [ebp - 0x20]
sar eax, 5
dec eax
cmp esi, eax
jle 0x100528f5
mov esi, dword [edi + edx*4 + 0x1d0]
test esi, esi
je 0x100531e0
push 4
push esi
call ecx
jmp 0x100531ca
mov eax, dword [ebp - 0x20]
mov ecx, esi
shl ecx, 5
mov dword [ebp - 0x4c], ecx
mov edx, dword [eax + ecx]
test edx, edx
je 0x100531b3
mov ecx, dword [0x10073588]
mov eax, 0x10624dd3
mul edx
shr edx, 6
imul eax, edx, 0x3e8
push eax
call ecx
mov esi, eax
mov dword [ebp - 0x48], esi
test esi, esi
je 0x100531b3
xorps xmm0, xmm0
mov dword [ebp - 0x28], 0
movups xmmword [ebp - 0x38], xmm0
mov dword [ebp - 0x24], 0xf
mov byte [ebp - 0x38], 0
mov ecx, dword [ebp - 0x4c]
mov byte [ebp - 4], 1
cmp dword [esi], 0
mov eax, dword [ebp - 0x20]
mov ecx, dword [ecx + eax]
mov dword [ebp - 0x40], ecx
je 0x100529d8
test ecx, ecx
je 0x100529d8
mov eax, 0x12e0be83
mov edi, ecx
mul ecx
sub edi, edx
shr edi, 1
add edi, edx
shr edi, 0x1d
cmp edi, 4
jae 0x100529d8
cmp byte [esi + 4], 0x2d
jae 0x100529d8
push 4
push 0x10b8050
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x100529d8
mov esi, dword [0x1007358c]
mov eax, 0x10624dd3
mul dword [ebp - 0x40]
shr edx, 6
sub edi, edx
imul eax, edi, 0x3e8
mov edi, dword [ebp - 0x48]
movzx ecx, byte [edi + 4]
add eax, dword [ebp - 0x40]
push eax
mov ecx, dword [ecx*4 + 0x10b8050]
call esi
mov esi, eax
test esi, esi
je 0x100529dd
cmp dword [esi + 0x3c], 0
je 0x100529dd
mov ecx, dword [ebp - 0x20]
xor edx, edx
mov eax, dword [ebp - 0x4c]
push dword [eax + ecx]
push esi
jmp 0x100529ea
mov edi, dword [ebp - 0x48]
xor esi, esi
mov eax, dword [ebp - 0x20]
mov edx, edi
mov ecx, dword [ebp - 0x4c]
push dword [ecx + eax]
push 0
lea ecx, [ebp - 0x98]
call fcn.1000caa0
add esp, 8
lea ecx, [ebp - 0x38]
push eax
call fcn.1000d630
mov ecx, dword [ebp - 0x84]
cmp ecx, 0xf
jbe 0x10052a3b
mov edx, dword [ebp - 0x98]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10052a31
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10053247
push ecx
push edx
call fcn.100641c5
add esp, 8
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x4c]
mov ecx, dword [edx + eax + 0x18]
mov edx, dword [edx + eax + 0x1c]
mov eax, dword [ebp - 0x44]
lea eax, [eax + eax*4]
shl eax, 3
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x3c]
mov edi, dword [ebp - 0x40]
mov eax, dword [eax + 0x20c]
mov dword [edi + eax + 0x20], ecx
mov ecx, edi
mov dword [ecx + eax + 0x24], edx
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x3c]
mov ecx, dword [ecx + eax]
mov eax, dword [edx + 0x20c]
mov dword [edi + eax + 0x1c], ecx
mov ecx, edi
mov eax, dword [edx + 0x20c]
mov edi, dword [ebp - 0x48]
mov eax, dword [ecx + eax + 0x18]
mov dword [ebp - 0x54], eax
test eax, eax
je 0x10052b2f
add eax, 4
je 0x10052ac3
push 4
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10052abd
mov ecx, dword [ebp - 0x54]
lea eax, [ebp - 0x38]
push eax
lea ecx, [ecx + 4]
call dword [0x1007359c]
mov ecx, dword [ebp - 0x40]
mov edx, dword [ebp - 0x3c]
mov eax, dword [edx + 0x20c]
mov eax, dword [ecx + eax + 0x18]
mov dword [eax + 0x60], edi
mov eax, dword [edx + 0x20c]
mov eax, dword [ecx + eax + 0x18]
mov dword [eax + 0x64], esi
mov eax, dword [edx + 0x20c]
mov eax, dword [ecx + eax + 0x18]
mov dword [eax + 0x68], 0
test esi, esi
je 0x10052afe
movsx ecx, word [esi + 0x4e]
movsx eax, word [edi + 0x5e]
add ecx, eax
jmp 0x10052b02
movsx ecx, word [edi + 0x5e]
mov eax, dword [edx + 0x20c]
mov edi, dword [ebp - 0x40]
mov eax, dword [edi + eax + 0x18]
mov dword [eax + 0x6c], ecx
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x4c]
mov ecx, dword [ecx + eax + 0x10]
mov eax, dword [edx + 0x20c]
mov eax, dword [edi + eax + 0x18]
mov edi, dword [ebp - 0x48]
mov dword [eax + 0x44], ecx
mov ecx, dword [ebp - 0x40]
mov eax, dword [edx + 0x20c]
mov eax, dword [ecx + eax + 0x14]
mov dword [ebp - 0x54], eax
test eax, eax
je 0x10052b5a
push 4
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10052b5a
mov ecx, dword [ebp - 0x54]
lea eax, [ebp - 0x38]
push eax
call dword [0x10073608]
push esi
mov edx, edi
lea ecx, [ebp - 0x98]
call fcn.1000ce60
add esp, 4
mov edi, eax
mov eax, dword [ebp - 0x3c]
mov byte [ebp - 4], 2
mov ecx, dword [eax + 0x20c]
mov eax, dword [ebp - 0x40]
mov esi, dword [eax + ecx]
test esi, esi
je 0x10052b9a
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10052b9a
push edi
mov ecx, esi
call dword [0x10073638]
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x84]
cmp ecx, 0xf
jbe 0x10052bd8
mov edx, dword [ebp - 0x98]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10052bce
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10053247
push ecx
push edx
call fcn.100641c5
add esp, 8
mov edx, dword [ebp - 0x20]
lea ecx, [ebp - 0x98]
mov edi, dword [ebp - 0x4c]
mov edx, dword [edi + edx + 0x10]
call fcn.1000d310
mov edx, eax
mov byte [ebp - 4], 3
cmp dword [edx + 0x14], 0xf
jbe 0x10052bfb
mov edx, dword [edx]
mov ecx, edx
mov dword [ebp - 0x70], 0
xorps xmm0, xmm0
mov dword [ebp - 0x6c], 0
movups xmmword [ebp - 0x80], xmm0
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10052c15
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x80]
call fcn.100051a0
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x40]
mov byte [ebp - 4], 4
mov eax, dword [eax + 0x20c]
mov esi, dword [ecx + eax + 4]
test esi, esi
je 0x10052c59
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10052c59
lea eax, [ebp - 0x80]
mov ecx, esi
push eax
call dword [0x10073638]
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x6c]
cmp ecx, 0xf
jbe 0x10052c91
mov edx, dword [ebp - 0x80]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10052c87
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10053247
push ecx
push edx
call fcn.100641c5
add esp, 8
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x84]
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 0xf
mov byte [ebp - 0x80], 0
cmp ecx, 0xf
jbe 0x10052ce1
mov edx, dword [ebp - 0x98]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10052cd7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10053247
push ecx
push edx
call fcn.100641c5
add esp, 8
mov edx, dword [ebp - 0x20]
mov eax, dword [edi + edx + 0xc]
cmp eax, 1
jne 0x10052e11
mov edx, dword [edi + edx + 8]
push ecx
lea ecx, [ebp - 0x98]
call fcn.10010c60
add esp, 4
mov byte [ebp - 4], 5
cmp dword [eax + 0x14], 0xf
jbe 0x10052d10
mov eax, dword [eax]
movaps xmm0, xmmword [0x10075420]
xor ecx, ecx
push eax
movups xmmword [ebp - 0x68], xmm0
mov word [ebp - 0x58], 0x56
mov byte [ebp - 0x56], 0
mov al, byte [ebp - 0x68]
xor byte [ebp + ecx - 0x67], al
inc ecx
cmp ecx, 0x11
jb 0x10052d28
sub esp, 0x18
mov byte [ebp - 0x56], 0
mov edx, esp
lea ecx, [ebp - 0x67]
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 0x10052d58
sub ecx, esi
lea eax, [ebp - 0x67]
push ecx
push eax
mov ecx, edx
call fcn.100051a0
lea eax, [ebp - 0x80]
push eax
call fcn.10004d30
add esp, 0x20
mov edi, eax
mov eax, dword [ebp - 0x3c]
mov byte [ebp - 4], 6
mov ecx, dword [eax + 0x20c]
mov eax, dword [ebp - 0x40]
mov esi, dword [eax + ecx + 8]
test esi, esi
je 0x10052da9
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10052da9
push edi
mov ecx, esi
call dword [0x10073638]
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x6c]
cmp ecx, 0xf
jbe 0x10052de1
mov edx, dword [ebp - 0x80]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10052dd7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10053247
push ecx
push edx
call fcn.100641c5
add esp, 8
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x84]
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 0xf
mov byte [ebp - 0x80], 0
cmp ecx, 0xf
jbe 0x10052fe9
mov edx, dword [ebp - 0x98]
jmp 0x10052fc0
cmp eax, 2
jne 0x10052fe9
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x80]
mov edx, dword [edi + edx + 8]
call fcn.10011370
or dword [ebp - 0x50], 1
mov eax, 3
mov ecx, dword [ebp - 0x70]
mov edi, ecx
mov dword [ebp - 0x48], eax
cmp edi, eax
jle 0x10052ea7
nop
mov edx, edi
sub edx, eax
cmp ecx, edx
jb 0x10053277
mov esi, dword [ebp - 0x6c]
mov eax, esi
sub eax, ecx
cmp eax, 1
jb 0x10052e81
lea eax, [ecx + 1]
cmp esi, 0xf
mov dword [ebp - 0x70], eax
lea eax, [ebp - 0x80]
cmova eax, dword [ebp - 0x80]
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 0x10052e94
sub esp, 8
push edx
push dword [ebp - 0x9c]
push ecx
lea ecx, [ebp - 0x80]
call fcn.10011210
mov eax, dword [ebp - 0x48]
inc edi
add eax, 4
mov dword [ebp - 0x48], eax
cmp edi, eax
jle 0x10052ea7
mov ecx, dword [ebp - 0x70]
jmp 0x10052e40
cmp dword [ebp - 0x6c], 0xf
lea eax, [ebp - 0x80]
movaps xmm0, xmmword [0x10075030]
cmova eax, dword [ebp - 0x80]
xor ecx, ecx
push eax
movups xmmword [ebp - 0x68], xmm0
mov word [ebp - 0x58], 0x7c2a
mov byte [ebp - 0x56], 0
nop word [eax + eax]
mov al, byte [ebp - 0x68]
xor byte [ebp + ecx - 0x67], al
inc ecx
cmp ecx, 0x11
jb 0x10052ed0
sub esp, 0x18
mov byte [ebp - 0x56], 0
mov edx, esp
lea ecx, [ebp - 0x67]
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 0x10052f00
sub ecx, esi
lea eax, [ebp - 0x67]
push ecx
push eax
mov ecx, edx
call fcn.100051a0
lea eax, [ebp - 0x98]
push eax
call fcn.10004d30
add esp, 0x20
mov edi, eax
mov eax, dword [ebp - 0x3c]
mov byte [ebp - 4], 8
mov ecx, dword [eax + 0x20c]
mov eax, dword [ebp - 0x40]
mov esi, dword [eax + ecx + 8]
test esi, esi
je 0x10052f54
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10052f54
push edi
mov ecx, esi
call dword [0x10073638]
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x84]
cmp ecx, 0xf
jbe 0x10052f92
mov edx, dword [ebp - 0x98]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10052f88
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10053247
push ecx
push edx
call fcn.100641c5
add esp, 8
and dword [ebp - 0x50], 0xfffffffe
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x6c]
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x84], 0xf
mov byte [ebp - 0x98], 0
cmp ecx, 0xf
jbe 0x10052fe9
mov edx, dword [ebp - 0x80]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10052fdf
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10053247
push ecx
push edx
call fcn.100641c5
add esp, 8
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x4c]
push ecx
lea ecx, [ebp - 0x80]
mov edx, dword [eax + edx + 4]
call fcn.10010c60
add esp, 4
mov byte [ebp - 4], 9
cmp dword [eax + 0x14], 0xf
jbe 0x1005300b
mov eax, dword [eax]
movaps xmm0, xmmword [0x10074ed0]
xor ecx, ecx
push eax
movups xmmword [ebp - 0x68], xmm0
mov dword [ebp - 0x58], 0x6c3a3f
mov al, byte [ebp - 0x68]
xor byte [ebp + ecx - 0x67], al
inc ecx
cmp ecx, 0x12
jb 0x10053020
sub esp, 0x18
mov byte [ebp - 0x55], 0
mov edx, esp
lea ecx, [ebp - 0x67]
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 0x10053050
sub ecx, esi
lea eax, [ebp - 0x67]
push ecx
push eax
mov ecx, edx
call fcn.100051a0
lea eax, [ebp - 0x98]
push eax
call fcn.10004d30
add esp, 0x20
mov edi, eax
mov eax, dword [ebp - 0x3c]
mov byte [ebp - 4], 0xa
mov ecx, dword [eax + 0x20c]
mov eax, dword [ebp - 0x40]
mov esi, dword [eax + ecx + 0xc]
test esi, esi
je 0x100530a4
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x100530a4
push edi
mov ecx, esi
call dword [0x10073638]
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x84]
cmp ecx, 0xf
jbe 0x100530e2
mov edx, dword [ebp - 0x98]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100530d8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10053247
push ecx
push edx
call fcn.100641c5
add esp, 8
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x6c]
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x84], 0xf
mov byte [ebp - 0x98], 0
cmp ecx, 0xf
jbe 0x10053135
mov edx, dword [ebp - 0x80]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1005312b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10053247
push ecx
push edx
call fcn.100641c5
add esp, 8
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 0xf
mov byte [ebp - 0x80], 0
cmp ecx, 0xf
jbe 0x1005317f
mov edx, dword [ebp - 0x38]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10053175
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10053247
push ecx
push edx
call fcn.100641c5
add esp, 8
mov edi, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x44]
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0xf
mov byte [ebp - 0x38], 0
mov esi, dword [edi + edx*4 + 0x1d0]
test esi, esi
je 0x100531da
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x100531d7
push 1
jmp 0x100531cf
mov edx, dword [ebp - 0x44]
mov esi, dword [edi + edx*4 + 0x1d0]
test esi, esi
je 0x100531da
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x100531d7
push eax
mov ecx, esi
call dword [0x100735d4]
mov edx, dword [ebp - 0x44]
mov ecx, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
mov esi, dword [ebp - 0xa4]
inc esi
mov dword [ebp - 0xa4], esi
cmp esi, dword [ebp - 0x9c]
jl 0x100528c1
mov eax, dword [ebp - 0x3c]
mov edi, dword [edi + 0x188]
mov esi, dword [eax + 0x204]
test esi, esi
je 0x1005321e
push 4
push esi
call ecx
test eax, eax
jne 0x1005321e
push edi
mov ecx, esi
call dword [0x1007363c]
mov edx, dword [ebp - 0x20]
test edx, edx
je 0x10053257
mov ecx, dword [ebp - 0x18]
mov eax, edx
sub ecx, edx
and ecx, 0xffffffe0
cmp ecx, 0x1000
jb 0x1005324d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1005324d
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.100641c5
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.10064164
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
call fcn.100105e0
int3