Function at 0x1003cac0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10070bfd
mov eax, dword fs:[0]
push eax
sub esp, 0x94
mov eax, dword [0x10083040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x4c], 0
call fcn.1003c580
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
xor edx, edx
movq qword [ebp - 0x1c], xmm0
xor esi, esi
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x38]
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 0x1003cb91
mov eax, dword [ecx + esi + 0x18]
add ecx, esi
or eax, dword [ecx + 0x1c]
je 0x1003cb72
cmp dword [ecx], 0
je 0x1003cb72
cmp edx, dword [ebp - 0x14]
je 0x1003cb65
movups xmm0, xmmword [ecx]
movups xmmword [edx], xmm0
movups xmm0, xmmword [ecx + 0x10]
movups xmmword [edx + 0x10], xmm0
mov edx, dword [ebp - 0x18]
add edx, 0x20
mov dword [ebp - 0x18], edx
jmp 0x1003cb72
push ecx
push edx
lea ecx, [ebp - 0x1c]
call fcn.1003e540
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x38]
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 0x1003cb37
mov esi, dword [ebp - 0x1c]
mov eax, edx
sub eax, esi
sar eax, 5
test eax, eax
jne 0x1003cc0e
mov edi, dword [ebp - 0x38]
mov eax, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
add edi, 0x1d0
mov dword [ebp - 0x4c], 0xc
mov esi, dword [edi]
test esi, esi
je 0x1003cbce
push 4
push esi
call eax
test eax, eax
jne 0x1003cbc9
push eax
mov ecx, esi
call dword [0x1007ac58]
mov eax, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
add edi, 4
sub dword [ebp - 0x4c], 1
jne 0x1003cbb1
mov esi, dword [ebp - 0x38]
mov edi, dword [esi + 0x188]
mov esi, dword [esi + 0x204]
test esi, esi
je 0x1003cbfc
push 4
push esi
call eax
test eax, eax
jne 0x1003cbfc
push edi
mov ecx, esi
call dword [0x1007acc0]
mov eax, dword [ebp - 0x38]
mov dword [eax + 0x18c], 1
jmp 0x1003d5e8
push 0x10030380
push eax
mov ecx, esi
call fcn.1003e2b0
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x1c]
sar eax, 5
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x1007c320]
divsd xmm0, qword [0x1007bca0]
movsd qword [ebp - 0x9c], xmm0
fld qword [ebp - 0x9c]
fstp qword [esp]
call fcn.1006bca0
add esp, 8
fstp qword [ebp - 0x9c]
movsd xmm0, qword [ebp - 0x9c]
call fcn.10027460
mov edi, dword [ebp - 0x38]
or edx, 0xffffffff
mov ecx, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
cvttsd2si eax, xmm0
mov dword [edi + 0x18c], eax
mov eax, dword [ebp + 8]
lea eax, [eax + eax*2]
shl eax, 2
mov dword [ebp - 0x98], eax
lea esi, [eax - 0xc]
mov dword [ebp - 0xa0], esi
cmp esi, eax
jge 0x1003d5c3
inc edx
mov dword [ebp - 0x40], edx
cmp edx, 0xb
jg 0x1003d5c3
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x1c]
sar eax, 5
dec eax
cmp esi, eax
jle 0x1003ccd6
mov esi, dword [edi + edx*4 + 0x1d0]
test esi, esi
je 0x1003d5aa
push 4
push esi
call ecx
jmp 0x1003d594
mov eax, dword [ebp - 0x1c]
mov ecx, esi
shl ecx, 5
mov dword [ebp - 0x48], ecx
mov edx, dword [eax + ecx]
test edx, edx
je 0x1003d57d
mov ecx, dword [0x1007ac0c]
mov eax, 0x10624dd3
mul edx
shr edx, 6
imul eax, edx, 0x3e8
push eax
call ecx
mov esi, eax
mov dword [ebp - 0x44], esi
test esi, esi
je 0x1003d57d
xorps xmm0, xmm0
mov dword [ebp - 0x24], 0
movups xmmword [ebp - 0x34], xmm0
mov dword [ebp - 0x20], 0xf
mov byte [ebp - 0x34], 0
mov ecx, dword [ebp - 0x48]
mov byte [ebp - 4], 1
cmp dword [esi], 0
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ecx + eax]
mov dword [ebp - 0x3c], ecx
je 0x1003cdb9
test ecx, ecx
je 0x1003cdb9
mov eax, 0x12e0be83
mov edi, ecx
mul ecx
sub edi, edx
shr edi, 1
add edi, edx
shr edi, 0x1d
cmp edi, 4
jae 0x1003cdb9
cmp byte [esi + 4], 0x2d
jae 0x1003cdb9
push 4
push 0x10b8050
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1003cdb9
mov esi, dword [0x1007ac10]
mov eax, 0x10624dd3
mul dword [ebp - 0x3c]
shr edx, 6
sub edi, edx
imul eax, edi, 0x3e8
mov edi, dword [ebp - 0x44]
movzx ecx, byte [edi + 4]
add eax, dword [ebp - 0x3c]
push eax
mov ecx, dword [ecx*4 + 0x10b8050]
call esi
mov esi, eax
test esi, esi
je 0x1003cdbe
cmp dword [esi + 0x3c], 0
je 0x1003cdbe
mov ecx, dword [ebp - 0x1c]
xor edx, edx
mov eax, dword [ebp - 0x48]
push dword [eax + ecx]
push esi
jmp 0x1003cdcb
mov edi, dword [ebp - 0x44]
xor esi, esi
mov eax, dword [ebp - 0x1c]
mov edx, edi
mov ecx, dword [ebp - 0x48]
push dword [ecx + eax]
push 0
lea ecx, [ebp - 0x94]
call fcn.1000af80
add esp, 8
lea ecx, [ebp - 0x34]
push eax
call fcn.10007470
mov ecx, dword [ebp - 0x80]
cmp ecx, 0xf
jbe 0x1003ce19
mov edx, dword [ebp - 0x94]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1003ce0f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003d638
push ecx
push edx
call fcn.1004d526
add esp, 8
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x48]
mov ecx, dword [edx + eax + 0x18]
mov edx, dword [edx + eax + 0x1c]
mov eax, dword [ebp - 0x40]
lea eax, [eax + eax*4]
shl eax, 3
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x38]
mov edi, dword [ebp - 0x3c]
mov eax, dword [eax + 0x20c]
mov dword [edi + eax + 0x20], ecx
mov ecx, edi
mov dword [ecx + eax + 0x24], edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x48]
mov edx, dword [ebp - 0x38]
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 - 0x44]
mov eax, dword [ecx + eax + 0x18]
mov dword [ebp - 0x50], eax
test eax, eax
je 0x1003cf0d
add eax, 4
je 0x1003cea1
push 4
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1003ce9b
mov ecx, dword [ebp - 0x50]
lea eax, [ebp - 0x34]
push eax
lea ecx, [ecx + 4]
call dword [0x1007ac20]
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x38]
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 0x1003cedc
movsx ecx, word [esi + 0x4e]
movsx eax, word [edi + 0x5e]
add ecx, eax
jmp 0x1003cee0
movsx ecx, word [edi + 0x5e]
mov eax, dword [edx + 0x20c]
mov edi, dword [ebp - 0x3c]
mov eax, dword [edi + eax + 0x18]
mov dword [eax + 0x6c], ecx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x48]
mov ecx, dword [ecx + eax + 0x10]
mov eax, dword [edx + 0x20c]
mov eax, dword [edi + eax + 0x18]
mov edi, dword [ebp - 0x44]
mov dword [eax + 0x44], ecx
mov ecx, dword [ebp - 0x3c]
mov eax, dword [edx + 0x20c]
mov eax, dword [ecx + eax + 0x14]
mov dword [ebp - 0x50], eax
test eax, eax
je 0x1003cf38
push 4
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1003cf38
mov ecx, dword [ebp - 0x50]
lea eax, [ebp - 0x34]
push eax
call dword [0x1007ac8c]
push esi
mov edx, edi
lea ecx, [ebp - 0x94]
call fcn.1000b330
add esp, 4
mov edi, eax
mov eax, dword [ebp - 0x38]
mov byte [ebp - 4], 2
mov ecx, dword [eax + 0x20c]
mov eax, dword [ebp - 0x3c]
mov esi, dword [eax + ecx]
test esi, esi
je 0x1003cf78
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1003cf78
push edi
mov ecx, esi
call dword [0x1007acbc]
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x80]
cmp ecx, 0xf
jbe 0x1003cfb3
mov edx, dword [ebp - 0x94]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1003cfa9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003d638
push ecx
push edx
call fcn.1004d526
add esp, 8
mov edx, dword [ebp - 0x1c]
lea ecx, [ebp - 0x94]
mov edi, dword [ebp - 0x48]
mov edx, dword [edi + edx + 0x10]
call fcn.1000b7d0
mov edx, eax
mov byte [ebp - 4], 3
cmp dword [edx + 0x14], 0xf
jbe 0x1003cfd6
mov edx, dword [edx]
mov ecx, edx
mov dword [ebp - 0x6c], 0
xorps xmm0, xmm0
mov dword [ebp - 0x68], 0
movups xmmword [ebp - 0x7c], xmm0
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003cff0
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x7c]
call fcn.10002130
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x3c]
mov byte [ebp - 4], 4
mov eax, dword [eax + 0x20c]
mov esi, dword [ecx + eax + 4]
test esi, esi
je 0x1003d034
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1003d034
lea eax, [ebp - 0x7c]
mov ecx, esi
push eax
call dword [0x1007acbc]
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x68]
cmp ecx, 0xf
jbe 0x1003d06c
mov edx, dword [ebp - 0x7c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1003d062
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003d638
push ecx
push edx
call fcn.1004d526
add esp, 8
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x80]
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x68], 0xf
mov byte [ebp - 0x7c], 0
cmp ecx, 0xf
jbe 0x1003d0b9
mov edx, dword [ebp - 0x94]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1003d0af
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003d638
push ecx
push edx
call fcn.1004d526
add esp, 8
mov edx, dword [ebp - 0x1c]
mov eax, dword [edi + edx + 0xc]
cmp eax, 1
jne 0x1003d1e6
mov edx, dword [edi + edx + 8]
push ecx
lea ecx, [ebp - 0x94]
call fcn.1000f230
add esp, 4
mov byte [ebp - 4], 5
cmp dword [eax + 0x14], 0xf
jbe 0x1003d0e8
mov eax, dword [eax]
movaps xmm0, xmmword [0x1007c120]
xor ecx, ecx
push eax
movups xmmword [ebp - 0x64], xmm0
mov word [ebp - 0x54], 0x7721
mov byte [ebp - 0x52], 0
mov al, byte [ebp - 0x64]
xor byte [ebp + ecx - 0x63], al
inc ecx
cmp ecx, 0x11
jb 0x1003d100
sub esp, 0x18
mov byte [ebp - 0x52], 0
mov edx, esp
lea ecx, [ebp - 0x63]
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 0x1003d130
sub ecx, esi
lea eax, [ebp - 0x63]
push ecx
push eax
mov ecx, edx
call fcn.10002130
lea eax, [ebp - 0x7c]
push eax
call fcn.1000bae0
add esp, 0x20
mov edi, eax
mov eax, dword [ebp - 0x38]
mov byte [ebp - 4], 6
mov ecx, dword [eax + 0x20c]
mov eax, dword [ebp - 0x3c]
mov esi, dword [eax + ecx + 8]
test esi, esi
je 0x1003d181
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1003d181
push edi
mov ecx, esi
call dword [0x1007acbc]
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x68]
cmp ecx, 0xf
jbe 0x1003d1b9
mov edx, dword [ebp - 0x7c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1003d1af
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003d638
push ecx
push edx
call fcn.1004d526
add esp, 8
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x80]
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x68], 0xf
mov byte [ebp - 0x7c], 0
cmp ecx, 0xf
jbe 0x1003d3b3
mov edx, dword [ebp - 0x94]
jmp 0x1003d38a
cmp eax, 2
jne 0x1003d3b3
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x7c]
mov edx, dword [edi + edx + 8]
call fcn.1000f7b0
or dword [ebp - 0x4c], 1
mov eax, 3
mov ecx, dword [ebp - 0x6c]
mov edi, ecx
mov dword [ebp - 0x44], eax
cmp edi, eax
jle 0x1003d27d
mov edx, edi
sub edx, eax
cmp ecx, edx
jb 0x1003d63d
mov esi, dword [ebp - 0x68]
mov eax, esi
sub eax, ecx
cmp eax, 1
jb 0x1003d255
lea eax, [ecx + 1]
cmp esi, 0xf
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x7c]
cmova eax, dword [ebp - 0x7c]
sub ecx, edx
inc ecx
push ecx
lea esi, [eax + edx]
lea eax, [esi + 1]
push esi
push eax
call fcn.1004f0c0
add esp, 0xc
mov byte [esi], 0x2e
jmp 0x1003d26a
push 0x2e
push 1
push edx
push dword [ebp - 0x98]
lea ecx, [ebp - 0x7c]
push 1
call fcn.100083b0
mov eax, dword [ebp - 0x44]
inc edi
add eax, 4
mov dword [ebp - 0x44], eax
cmp edi, eax
jle 0x1003d27d
mov ecx, dword [ebp - 0x6c]
jmp 0x1003d214
cmp dword [ebp - 0x68], 0xf
lea eax, [ebp - 0x7c]
movaps xmm0, xmmword [0x1007c610]
cmova eax, dword [ebp - 0x7c]
xor ecx, ecx
push eax
movups xmmword [ebp - 0x64], xmm0
mov word [ebp - 0x54], 0x3761
mov byte [ebp - 0x52], 0
mov al, byte [ebp - 0x64]
xor byte [ebp + ecx - 0x63], al
inc ecx
cmp ecx, 0x11
jb 0x1003d2a0
sub esp, 0x18
mov byte [ebp - 0x52], 0
mov edx, esp
lea ecx, [ebp - 0x63]
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 0x1003d2d0
sub ecx, esi
lea eax, [ebp - 0x63]
push ecx
push eax
mov ecx, edx
call fcn.10002130
lea eax, [ebp - 0x94]
push eax
call fcn.1000bae0
add esp, 0x20
mov edi, eax
mov eax, dword [ebp - 0x38]
mov byte [ebp - 4], 8
mov ecx, dword [eax + 0x20c]
mov eax, dword [ebp - 0x3c]
mov esi, dword [eax + ecx + 8]
test esi, esi
je 0x1003d324
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1003d324
push edi
mov ecx, esi
call dword [0x1007acbc]
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x80]
cmp ecx, 0xf
jbe 0x1003d35f
mov edx, dword [ebp - 0x94]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1003d355
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003d638
push ecx
push edx
call fcn.1004d526
add esp, 8
and dword [ebp - 0x4c], 0xfffffffe
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x68]
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x80], 0xf
mov byte [ebp - 0x94], 0
cmp ecx, 0xf
jbe 0x1003d3b3
mov edx, dword [ebp - 0x7c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1003d3a9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003d638
push ecx
push edx
call fcn.1004d526
add esp, 8
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x7c]
mov edx, dword [eax + edx + 4]
call fcn.1000f230
add esp, 4
mov byte [ebp - 4], 9
cmp dword [eax + 0x14], 0xf
jbe 0x1003d3d5
mov eax, dword [eax]
movaps xmm0, xmmword [0x1007c6a0]
xor ecx, ecx
push eax
movups xmmword [ebp - 0x64], xmm0
mov dword [ebp - 0x54], 0x237570
nop word [eax + eax]
mov al, byte [ebp - 0x64]
xor byte [ebp + ecx - 0x63], al
inc ecx
cmp ecx, 0x12
jb 0x1003d3f0
sub esp, 0x18
mov byte [ebp - 0x51], 0
mov edx, esp
lea ecx, [ebp - 0x63]
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 0x1003d420
sub ecx, esi
lea eax, [ebp - 0x63]
push ecx
push eax
mov ecx, edx
call fcn.10002130
lea eax, [ebp - 0x94]
push eax
call fcn.1000bae0
add esp, 0x20
mov edi, eax
mov eax, dword [ebp - 0x38]
mov byte [ebp - 4], 0xa
mov ecx, dword [eax + 0x20c]
mov eax, dword [ebp - 0x3c]
mov esi, dword [eax + ecx + 0xc]
test esi, esi
je 0x1003d474
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1003d474
push edi
mov ecx, esi
call dword [0x1007acbc]
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x80]
cmp ecx, 0xf
jbe 0x1003d4af
mov edx, dword [ebp - 0x94]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1003d4a5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003d638
push ecx
push edx
call fcn.1004d526
add esp, 8
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x68]
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x80], 0xf
mov byte [ebp - 0x94], 0
cmp ecx, 0xf
jbe 0x1003d4ff
mov edx, dword [ebp - 0x7c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1003d4f5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003d638
push ecx
push edx
call fcn.1004d526
add esp, 8
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x68], 0xf
mov byte [ebp - 0x7c], 0
cmp ecx, 0xf
jbe 0x1003d549
mov edx, dword [ebp - 0x34]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1003d53f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003d638
push ecx
push edx
call fcn.1004d526
add esp, 8
mov edi, dword [ebp - 0x38]
mov edx, dword [ebp - 0x40]
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0xf
mov byte [ebp - 0x34], 0
mov esi, dword [edi + edx*4 + 0x1d0]
test esi, esi
je 0x1003d5a4
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1003d5a1
push 1
jmp 0x1003d599
mov edx, dword [ebp - 0x40]
mov esi, dword [edi + edx*4 + 0x1d0]
test esi, esi
je 0x1003d5a4
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1003d5a1
push eax
mov ecx, esi
call dword [0x1007ac58]
mov edx, dword [ebp - 0x40]
mov ecx, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
mov esi, dword [ebp - 0xa0]
inc esi
mov dword [ebp - 0xa0], esi
cmp esi, dword [ebp - 0x98]
jl 0x1003cca2
mov eax, dword [ebp - 0x38]
mov edi, dword [edi + 0x188]
mov esi, dword [eax + 0x204]
test esi, esi
je 0x1003d5e8
push 4
push esi
call ecx
test eax, eax
jne 0x1003d5e8
push edi
mov ecx, esi
call dword [0x1007acc0]
mov edx, dword [ebp - 0x1c]
test edx, edx
je 0x1003d61b
mov ecx, dword [ebp - 0x14]
mov eax, edx
sub ecx, edx
and ecx, 0xffffffe0
cmp ecx, 0x1000
jb 0x1003d611
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003d638
push ecx
push edx
call fcn.1004d526
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1004d4c5
mov esp, ebp
pop ebp
ret 4
call fcn.100527f4
call fcn.100074f0
int3