Function at 0x10039610
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006d56d
mov eax, dword fs:[0]
push eax
sub esp, 0x94
mov eax, dword [0x10080040]
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.100390d0
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 0x100396e1
mov eax, dword [ecx + esi + 0x18]
add ecx, esi
or eax, dword [ecx + 0x1c]
je 0x100396c2
cmp dword [ecx], 0
je 0x100396c2
cmp edx, dword [ebp - 0x14]
je 0x100396b5
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 0x100396c2
push ecx
push edx
lea ecx, [ebp - 0x1c]
call fcn.1003b090
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 0x10039687
mov esi, dword [ebp - 0x1c]
mov eax, edx
sub eax, esi
sar eax, 5
test eax, eax
jne 0x1003975e
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 0x1003971e
push 4
push esi
call eax
test eax, eax
jne 0x10039719
push eax
mov ecx, esi
call dword [0x10077c24]
mov eax, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
add edi, 4
sub dword [ebp - 0x4c], 1
jne 0x10039701
mov esi, dword [ebp - 0x38]
mov edi, dword [esi + 0x188]
mov esi, dword [esi + 0x204]
test esi, esi
je 0x1003974c
push 4
push esi
call eax
test eax, eax
jne 0x1003974c
push edi
mov ecx, esi
call dword [0x10077c8c]
mov eax, dword [ebp - 0x38]
mov dword [eax + 0x18c], 1
jmp 0x1003a138
push 0x1002ced0
push eax
mov ecx, esi
call fcn.1003ae00
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 + 0x10079240]
divsd xmm0, qword [0x10078c68]
movsd qword [ebp - 0x9c], xmm0
fld qword [ebp - 0x9c]
fstp qword [esp]
call fcn.10068750
add esp, 8
fstp qword [ebp - 0x9c]
movsd xmm0, qword [ebp - 0x9c]
call fcn.100241c0
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 0x1003a113
inc edx
mov dword [ebp - 0x40], edx
cmp edx, 0xb
jg 0x1003a113
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x1c]
sar eax, 5
dec eax
cmp esi, eax
jle 0x10039826
mov esi, dword [edi + edx*4 + 0x1d0]
test esi, esi
je 0x1003a0fa
push 4
push esi
call ecx
jmp 0x1003a0e4
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 0x1003a0cd
mov ecx, dword [0x10077bec]
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 0x1003a0cd
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 0x10039909
test ecx, ecx
je 0x10039909
mov eax, 0x12e0be83
mov edi, ecx
mul ecx
sub edi, edx
shr edi, 1
add edi, edx
shr edi, 0x1d
cmp edi, 4
jae 0x10039909
cmp byte [esi + 4], 0x2d
jae 0x10039909
push 4
push 0x10b8050
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10039909
mov esi, dword [0x10077bf0]
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 0x1003990e
cmp dword [esi + 0x3c], 0
je 0x1003990e
mov ecx, dword [ebp - 0x1c]
xor edx, edx
mov eax, dword [ebp - 0x48]
push dword [eax + ecx]
push esi
jmp 0x1003991b
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.1000a860
add esp, 8
lea ecx, [ebp - 0x34]
push eax
call fcn.10007400
mov ecx, dword [ebp - 0x80]
cmp ecx, 0xf
jbe 0x10039969
mov edx, dword [ebp - 0x94]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1003995f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003a188
push ecx
push edx
call fcn.1004a076
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 0x10039a5d
add eax, 4
je 0x100399f1
push 4
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x100399eb
mov ecx, dword [ebp - 0x50]
lea eax, [ebp - 0x34]
push eax
lea ecx, [ecx + 4]
call dword [0x10077bfc]
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 0x10039a2c
movsx ecx, word [esi + 0x4e]
movsx eax, word [edi + 0x5e]
add ecx, eax
jmp 0x10039a30
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 0x10039a88
push 4
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10039a88
mov ecx, dword [ebp - 0x50]
lea eax, [ebp - 0x34]
push eax
call dword [0x10077c58]
push esi
mov edx, edi
lea ecx, [ebp - 0x94]
call fcn.1000ac10
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 0x10039ac8
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10039ac8
push edi
mov ecx, esi
call dword [0x10077c88]
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x80]
cmp ecx, 0xf
jbe 0x10039b03
mov edx, dword [ebp - 0x94]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10039af9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003a188
push ecx
push edx
call fcn.1004a076
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.1000b0b0
mov edx, eax
mov byte [ebp - 4], 3
cmp dword [edx + 0x14], 0xf
jbe 0x10039b26
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 0x10039b40
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 0x10039b84
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10039b84
lea eax, [ebp - 0x7c]
mov ecx, esi
push eax
call dword [0x10077c88]
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x68]
cmp ecx, 0xf
jbe 0x10039bbc
mov edx, dword [ebp - 0x7c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10039bb2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003a188
push ecx
push edx
call fcn.1004a076
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 0x10039c09
mov edx, dword [ebp - 0x94]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10039bff
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003a188
push ecx
push edx
call fcn.1004a076
add esp, 8
mov edx, dword [ebp - 0x1c]
mov eax, dword [edi + edx + 0xc]
cmp eax, 1
jne 0x10039d36
mov edx, dword [edi + edx + 8]
push ecx
lea ecx, [ebp - 0x94]
call fcn.1000eae0
add esp, 4
mov byte [ebp - 4], 5
cmp dword [eax + 0x14], 0xf
jbe 0x10039c38
mov eax, dword [eax]
movaps xmm0, xmmword [0x10079620]
xor ecx, ecx
push eax
movups xmmword [ebp - 0x64], xmm0
mov word [ebp - 0x54], 0x2771
mov byte [ebp - 0x52], 0
mov al, byte [ebp - 0x64]
xor byte [ebp + ecx - 0x63], al
inc ecx
cmp ecx, 0x11
jb 0x10039c50
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 0x10039c80
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.1000b3c0
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 0x10039cd1
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10039cd1
push edi
mov ecx, esi
call dword [0x10077c88]
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x68]
cmp ecx, 0xf
jbe 0x10039d09
mov edx, dword [ebp - 0x7c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10039cff
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003a188
push ecx
push edx
call fcn.1004a076
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 0x10039f03
mov edx, dword [ebp - 0x94]
jmp 0x10039eda
cmp eax, 2
jne 0x10039f03
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x7c]
mov edx, dword [edi + edx + 8]
call fcn.1000efc0
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 0x10039dcd
mov edx, edi
sub edx, eax
cmp ecx, edx
jb 0x1003a18d
mov esi, dword [ebp - 0x68]
mov eax, esi
sub eax, ecx
cmp eax, 1
jb 0x10039da5
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.1004bc10
add esp, 0xc
mov byte [esi], 0x2e
jmp 0x10039dba
push 0x2e
push 1
push edx
push dword [ebp - 0x98]
lea ecx, [ebp - 0x7c]
push 1
call fcn.10008340
mov eax, dword [ebp - 0x44]
inc edi
add eax, 4
mov dword [ebp - 0x44], eax
cmp edi, eax
jle 0x10039dcd
mov ecx, dword [ebp - 0x6c]
jmp 0x10039d64
cmp dword [ebp - 0x68], 0xf
lea eax, [ebp - 0x7c]
movaps xmm0, xmmword [0x10079410]
cmova eax, dword [ebp - 0x7c]
xor ecx, ecx
push eax
movups xmmword [ebp - 0x64], xmm0
mov word [ebp - 0x54], 0xb5d
mov byte [ebp - 0x52], 0
mov al, byte [ebp - 0x64]
xor byte [ebp + ecx - 0x63], al
inc ecx
cmp ecx, 0x11
jb 0x10039df0
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 0x10039e20
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.1000b3c0
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 0x10039e74
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10039e74
push edi
mov ecx, esi
call dword [0x10077c88]
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x80]
cmp ecx, 0xf
jbe 0x10039eaf
mov edx, dword [ebp - 0x94]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10039ea5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003a188
push ecx
push edx
call fcn.1004a076
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 0x10039f03
mov edx, dword [ebp - 0x7c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10039ef9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003a188
push ecx
push edx
call fcn.1004a076
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.1000eae0
add esp, 4
mov byte [ebp - 4], 9
cmp dword [eax + 0x14], 0xf
jbe 0x10039f25
mov eax, dword [eax]
movaps xmm0, xmmword [0x10079540]
xor ecx, ecx
push eax
movups xmmword [ebp - 0x64], xmm0
mov dword [ebp - 0x54], 0x257376
nop word [eax + eax]
mov al, byte [ebp - 0x64]
xor byte [ebp + ecx - 0x63], al
inc ecx
cmp ecx, 0x12
jb 0x10039f40
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 0x10039f70
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.1000b3c0
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 0x10039fc4
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10039fc4
push edi
mov ecx, esi
call dword [0x10077c88]
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x80]
cmp ecx, 0xf
jbe 0x10039fff
mov edx, dword [ebp - 0x94]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10039ff5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003a188
push ecx
push edx
call fcn.1004a076
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 0x1003a04f
mov edx, dword [ebp - 0x7c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1003a045
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003a188
push ecx
push edx
call fcn.1004a076
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 0x1003a099
mov edx, dword [ebp - 0x34]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1003a08f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003a188
push ecx
push edx
call fcn.1004a076
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 0x1003a0f4
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1003a0f1
push 1
jmp 0x1003a0e9
mov edx, dword [ebp - 0x40]
mov esi, dword [edi + edx*4 + 0x1d0]
test esi, esi
je 0x1003a0f4
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1003a0f1
push eax
mov ecx, esi
call dword [0x10077c24]
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 0x100397f2
mov eax, dword [ebp - 0x38]
mov edi, dword [edi + 0x188]
mov esi, dword [eax + 0x204]
test esi, esi
je 0x1003a138
push 4
push esi
call ecx
test eax, eax
jne 0x1003a138
push edi
mov ecx, esi
call dword [0x10077c8c]
mov edx, dword [ebp - 0x1c]
test edx, edx
je 0x1003a16b
mov ecx, dword [ebp - 0x14]
mov eax, edx
sub ecx, edx
and ecx, 0xffffffe0
cmp ecx, 0x1000
jb 0x1003a161
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003a188
push ecx
push edx
call fcn.1004a076
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.1004a015
mov esp, ebp
pop ebp
ret 4
call fcn.1004f344
call fcn.10007480
int3