Function at 0x1004ddd0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100976d3
mov eax, dword fs:[0]
push eax
sub esp, 0x9c
mov eax, dword [0x100be084]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x50], edi
mov dword [ebp - 4], 0
call fcn.1004da20
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
xor eax, eax
movq qword [ebp - 0x1c], xmm0
xor ebx, ebx
mov dword [ebp - 0x64], eax
xor edx, edx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x68], eax
mov byte [ebp - 4], 1
mov eax, dword [edi + 0xd4]
sub eax, dword [edi + 0xd0]
sar eax, 6
test eax, eax
je 0x1004decf
mov ebx, dword [ebp + 0xc]
xor esi, esi
test ebx, ebx
jle 0x1004df6b
cmp dword [ebp + 0x24], 0x10
lea eax, [ebp - 0x5f]
mov edx, dword [ebp + 0x20]
lea ecx, [ebp + 0x10]
cmovae ecx, dword [ebp + 0x10]
push 0
mov word [ebp - 0x60], 0xf
push eax
mov byte [ebp - 0x5f], 0
call fcn.10014160
add esp, 8
test eax, eax
jne 0x1004df69
mov eax, dword [edi + 0xd0]
cmp dword [esi + eax + 0x3c], ebx
jne 0x1004dea6
mov eax, dword [edi + 0xd0]
lea ecx, [ebp - 0x1c]
add eax, esi
push eax
call fcn.10051ab0
mov eax, dword [edi + 0xd4]
add esi, 0x40
mov ecx, dword [ebp - 0x68]
sub eax, dword [edi + 0xd0]
inc ecx
sar eax, 6
mov dword [ebp - 0x68], ecx
cmp ecx, eax
jb 0x1004de53
mov eax, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x64], eax
mov esi, edx
sub esi, ebx
cmp esi, 0x40
jae 0x1004e29e
mov eax, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
lea ebx, [edi + 0x80]
mov edi, 0xc
nop dword [eax]
mov esi, dword [ebx]
test esi, esi
je 0x1004df0d
push 4
push esi
call eax
test eax, eax
jne 0x1004df08
push eax
mov ecx, esi
call dword [0x100b08d4]
mov eax, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
add ebx, 4
sub edi, 1
jne 0x1004def0
mov edi, dword [ebp - 0x50]
mov esi, dword [edi + 0xbc]
mov ebx, dword [edi + 0x14]
test esi, esi
je 0x1004df37
push 4
push esi
call eax
test eax, eax
jne 0x1004df37
push ebx
mov ecx, esi
call dword [0x100b093c]
mov ebx, dword [ebp - 0x1c]
mov dword [edi + 0x18], 1
test ebx, ebx
je 0x1004eccd
mov edi, dword [ebp - 0x18]
mov esi, ebx
cmp ebx, edi
je 0x1004ecbe
mov ecx, esi
call fcn.10053e50
add esi, 0x40
cmp esi, edi
jne 0x1004df56
jmp 0x1004ecbe
test ebx, ebx
jne 0x1004e0ef
cmp dword [ebp + 0x24], 0x10
lea eax, [ebp - 0x5b]
mov edx, dword [ebp + 0x20]
lea ecx, [ebp + 0x10]
cmovae ecx, dword [ebp + 0x10]
push 0
mov word [ebp - 0x5c], 0x75
push eax
mov byte [ebp - 0x5b], 0
call fcn.10014160
add esp, 8
test eax, eax
je 0x1004de95
mov eax, dword [edi + 0xd0]
mov ecx, dword [eax + esi + 0x1c]
test ecx, ecx
jne 0x1004dfb1
xor ebx, ebx
jmp 0x1004dfca
mov eax, 0x10624dd3
mul ecx
shr edx, 6
imul eax, edx, 0x3e8
push eax
call dword [0x100b0888]
mov ebx, eax
mov edx, dword [edi + 0xd0]
mov ecx, ebx
mov edx, dword [edx + esi + 0x1c]
call fcn.100100a0
mov ecx, dword [edi + 0xd0]
mov dword [ebp - 0x64], eax
cmp dword [esi + ecx + 0x1c], 0
jbe 0x1004e09b
cmp dword [esi + ecx + 0x1c], 0x5f5e100
jae 0x1004e09b
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x84], esp
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x14], 0xf
cmp dword [ecx + 0x14], 0x10
mov dword [ecx + 0x10], 0
jb 0x1004e02e
mov eax, dword [ecx]
jmp 0x1004e030
mov eax, ecx
push 0xffffffffffffffff
mov byte [eax], 0
lea eax, [ebp + 0x10]
push 0
push eax
call fcn.10005160
sub esp, 0x18
mov byte [ebp - 4], 2
mov eax, dword [edi + 0xd0]
mov ecx, esp
add eax, esi
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x14], 0xf
cmp dword [ecx + 0x14], 0x10
mov dword [ecx + 0x10], 0
jb 0x1004e087
mov edx, dword [ecx]
push 0xffffffffffffffff
push 0
push eax
mov byte [edx], 0
call fcn.10005160
jmp 0x1004e275
push 0xffffffffffffffff
mov edx, ecx
push 0
push eax
mov byte [edx], 0
call fcn.10005160
jmp 0x1004e275
test ebx, ebx
je 0x1004e296
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x84], esp
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x14], 0xf
cmp dword [ecx + 0x14], 0x10
mov dword [ecx + 0x10], 0
jb 0x1004e0d4
mov eax, dword [ecx]
jmp 0x1004e0d6
mov eax, ecx
push 0xffffffffffffffff
mov byte [eax], 0
lea eax, [ebp + 0x10]
push 0
push eax
call fcn.10005160
mov byte [ebp - 4], 3
jmp 0x1004e263
test ebx, ebx
jle 0x1004de95
cmp dword [ebp + 0x24], 0x10
lea eax, [ebp - 0x57]
mov edx, dword [ebp + 0x20]
lea ecx, [ebp + 0x10]
cmovae ecx, dword [ebp + 0x10]
push 0
mov word [ebp - 0x58], 0x72
push eax
mov byte [ebp - 0x57], 0
call fcn.10014160
add esp, 8
test eax, eax
je 0x1004de95
mov eax, dword [edi + 0xd0]
cmp dword [esi + eax + 0x3c], ebx
jne 0x1004dea6
mov ecx, dword [eax + esi + 0x1c]
test ecx, ecx
jne 0x1004e141
xor ebx, ebx
jmp 0x1004e15a
mov eax, 0x10624dd3
mul ecx
shr edx, 6
imul eax, edx, 0x3e8
push eax
call dword [0x100b0888]
mov ebx, eax
mov edx, dword [edi + 0xd0]
mov ecx, ebx
mov edx, dword [edx + esi + 0x1c]
call fcn.100100a0
mov ecx, dword [edi + 0xd0]
mov dword [ebp - 0x64], eax
cmp dword [esi + ecx + 0x1c], 0
jbe 0x1004e218
cmp dword [esi + ecx + 0x1c], 0x5f5e100
jae 0x1004e218
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x84], esp
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x14], 0xf
cmp dword [ecx + 0x14], 0x10
mov dword [ecx + 0x10], 0
jb 0x1004e1be
mov eax, dword [ecx]
jmp 0x1004e1c0
mov eax, ecx
push 0xffffffffffffffff
mov byte [eax], 0
lea eax, [ebp + 0x10]
push 0
push eax
call fcn.10005160
sub esp, 0x18
mov byte [ebp - 4], 4
mov eax, dword [edi + 0xd0]
mov ecx, esp
add eax, esi
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x14], 0xf
cmp dword [ecx + 0x14], 0x10
mov dword [ecx + 0x10], 0
jb 0x1004e087
mov edx, dword [ecx]
push 0xffffffffffffffff
push 0
push eax
mov byte [edx], 0
call fcn.10005160
jmp 0x1004e275
test ebx, ebx
je 0x1004e296
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x84], esp
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x14], 0xf
cmp dword [ecx + 0x14], 0x10
mov dword [ecx + 0x10], 0
jb 0x1004e24d
mov eax, dword [ecx]
jmp 0x1004e24f
mov eax, ecx
push 0xffffffffffffffff
mov byte [eax], 0
lea eax, [ebp + 0x10]
push 0
push eax
call fcn.10005160
mov byte [ebp - 4], 5
sub esp, 0x18
mov edx, ebx
mov ecx, esp
push dword [ebp - 0x64]
call fcn.10010540
add esp, 4
mov byte [ebp - 4], 1
call fcn.10013dd0
add esp, 0x30
test al, al
je 0x1004e296
mov eax, dword [edi + 0xd0]
lea ecx, [ebp - 0x1c]
add eax, esi
push eax
call fcn.10051ab0
mov ebx, dword [ebp + 0xc]
jmp 0x1004dea6
lea eax, [ebp - 0x50]
sar esi, 6
push eax
push esi
mov ecx, ebx
mov dword [ebp - 0x50], 0x100473d0
mov dword [ebp - 0xa4], esi
call fcn.100522a0
movd xmm0, esi
mov eax, esi
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x100b28d0]
divsd xmm0, qword [0x100b1ed0]
movsd qword [ebp - 0x88], xmm0
fld qword [ebp - 0x88]
fstp qword [esp]
call fcn.100920c0
fstp qword [ebp - 0x88]
movsd xmm0, qword [ebp - 0x88]
movsd qword [esp], xmm0
call fcn.10039f00
add esp, 8
call fcn.10093420
mov esi, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
or ecx, 0xffffffff
mov dword [edi + 0x18], eax
mov eax, dword [ebp + 8]
lea eax, [eax + eax*2]
shl eax, 2
mov dword [ebp - 0x84], eax
lea edx, [eax - 0xc]
mov dword [ebp - 0x68], edx
cmp edx, eax
jge 0x1004ec7c
jmp 0x1004e343
mov ebx, dword [ebp - 0x1c]
inc ecx
mov dword [ebp - 0x58], ecx
cmp ecx, 0xb
jg 0x1004ec7c
mov eax, dword [ebp - 0xa4]
dec eax
cmp edx, eax
jle 0x1004e37d
mov ebx, dword [edi + ecx*4 + 0x80]
test ebx, ebx
je 0x1004ec67
push 4
push ebx
call esi
test eax, eax
jne 0x1004ec64
push eax
jmp 0x1004ec5c
shl edx, 6
add ebx, edx
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x5c], ebx
mov ecx, dword [ebx + 0x1c]
test ecx, ecx
jne 0x1004e393
xor esi, esi
jmp 0x1004e3af
mov eax, 0x10624dd3
mul ecx
shr edx, 6
imul eax, edx, 0x3e8
push eax
call dword [0x100b0888]
mov edx, dword [ebp - 0x50]
mov esi, eax
mov eax, dword [ebx + 0x1c]
test eax, eax
je 0x1004e5d6
cmp eax, 0x5f5e100
jae 0x1004e5d6
mov ecx, dword [edi + 0xc4]
mov ebx, dword [ebp - 0x58]
mov esi, dword [ebp - 0x5c]
shl ebx, 6
mov eax, dword [esi + 0x18]
mov dword [ebx + ecx], eax
mov ecx, dword [edi + 0xc4]
mov eax, dword [ebp - 0x1c]
mov eax, dword [edx + eax + 0x1c]
mov dword [ebx + ecx + 4], eax
mov eax, dword [ebp - 0x1c]
mov ecx, dword [edi + 0xc4]
add eax, 0x30
add eax, edx
add ecx, 8
push eax
add ecx, ebx
call fcn.10053970
mov eax, dword [edi + 0xc4]
mov eax, dword [ebx + eax + 0x20]
mov dword [ebp - 0x50], eax
test eax, eax
je 0x1004e42c
push 4
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1004e42c
mov ecx, dword [ebp - 0x50]
push esi
call dword [0x100b0938]
mov eax, dword [edi + 0xc4]
mov esi, eax
mov edx, dword [eax + ebx + 0xc]
sub edx, dword [eax + ebx + 8]
sar edx, 2
call fcn.100139f0
mov ecx, dword [esi + ebx + 8]
mov ecx, dword [ecx + eax*4 - 4]
mov dword [ebp - 0x60], ecx
test ecx, ecx
je 0x1004e7e5
mov eax, 0x10624dd3
mul ecx
shr edx, 6
imul eax, edx, 0x3e8
push eax
call dword [0x100b0888]
mov esi, eax
test esi, esi
je 0x1004e7e5
mov dword [ebp - 0x20], 0xf
mov dword [ebp - 0x24], 0
mov byte [ebp - 0x34], 0
mov byte [ebp - 4], 6
mov ecx, esi
mov edx, dword [ebp - 0x60]
call fcn.100100a0
mov dword [ebp - 0x54], eax
test eax, eax
je 0x1004e4c9
cmp dword [eax + 0x3c], 0
je 0x1004e4c9
push dword [ebp - 0x60]
xor edx, edx
lea ecx, [ebp - 0x80]
push eax
call fcn.100101f0
add esp, 8
lea ecx, [ebp - 0x34]
push eax
call fcn.10010a20
lea ecx, [ebp - 0x80]
call fcn.10005060
jmp 0x1004e4f9
push dword [ebp - 0x60]
mov edx, esi
lea ecx, [ebp - 0x80]
push 0
call fcn.100101f0
add esp, 8
lea ecx, [ebp - 0x34]
push eax
call fcn.10010a20
mov eax, dword [ebp - 0x6c]
cmp eax, 0x10
jb 0x1004e4f9
inc eax
lea ecx, [ebp - 0x80]
push eax
push dword [ebp - 0x80]
call fcn.10005480
mov eax, dword [edi + 0xc4]
cmp dword [ebx + eax + 0x38], 0
je 0x1004e592
mov eax, dword [ebx + eax + 0x38]
add eax, 4
mov dword [ebp - 0x50], eax
je 0x1004e530
push 4
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1004e530
mov ecx, dword [ebp - 0x50]
lea eax, [ebp - 0x34]
push eax
call dword [0x100b089c]
mov eax, dword [edi + 0xc4]
mov ecx, dword [ebp - 0x54]
mov eax, dword [ebx + eax + 0x38]
mov dword [eax + 0x60], esi
mov eax, dword [edi + 0xc4]
mov eax, dword [ebx + eax + 0x38]
mov dword [eax + 0x64], ecx
mov eax, dword [edi + 0xc4]
mov eax, dword [ebx + eax + 0x38]
mov dword [eax + 0x68], 0
test ecx, ecx
je 0x1004e56e
movsx ecx, word [ecx + 0x4e]
movsx eax, word [esi + 0x5e]
add ecx, eax
jmp 0x1004e572
movsx ecx, word [esi + 0x5e]
mov eax, dword [edi + 0xc4]
mov eax, dword [eax + ebx + 0x38]
mov dword [eax + 0x6c], ecx
mov eax, dword [edi + 0xc4]
mov ecx, dword [ebx + eax + 0x38]
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax + 0x2c]
mov dword [ecx + 0x44], eax
mov eax, dword [edi + 0xc4]
mov esi, dword [ebx + eax + 0x34]
test esi, esi
je 0x1004e5b9
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1004e5b9
lea eax, [ebp - 0x34]
mov ecx, esi
push eax
call dword [0x100b0908]
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x20]
cmp eax, 0x10
jb 0x1004e7e5
inc eax
lea ecx, [ebp - 0x34]
push eax
push dword [ebp - 0x34]
jmp 0x1004e7e0
test esi, esi
jne 0x1004e5e8
mov ecx, dword [ebp - 0x58]
mov esi, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
jmp 0x1004e35b
mov dword [ebp - 0x38], 0xf
mov dword [ebp - 0x3c], 0
mov byte [ebp - 0x4c], 0
mov edx, eax
mov byte [ebp - 4], 7
mov ecx, esi
call fcn.100100a0
mov dword [ebp - 0x60], eax
test eax, eax
je 0x1004e630
cmp dword [eax + 0x3c], 0
je 0x1004e630
push dword [ebx + 0x1c]
xor edx, edx
lea ecx, [ebp - 0x80]
push eax
call fcn.100101f0
add esp, 8
lea ecx, [ebp - 0x4c]
push eax
call fcn.10010a20
jmp 0x1004e67f
push dword [ebx + 0x1c]
mov edx, esi
lea ecx, [ebp - 0x80]
push 0
call fcn.100101f0
add esp, 8
mov ebx, eax
lea eax, [ebp - 0x4c]
cmp eax, ebx
je 0x1004e67b
mov eax, dword [ebp - 0x38]
cmp eax, 0x10
jb 0x1004e660
inc eax
lea ecx, [ebp - 0x4c]
push eax
push dword [ebp - 0x4c]
call fcn.10005480
push ebx
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x38], 0xf
mov dword [ebp - 0x3c], 0
mov byte [ebp - 0x4c], 0
call fcn.10004e50
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x6c]
cmp eax, 0x10
jb 0x1004e694
inc eax
lea ecx, [ebp - 0x80]
push eax
push dword [ebp - 0x80]
call fcn.10005480
mov ebx, dword [ebp - 0x58]
mov ecx, dword [edi + 0xc4]
mov edx, dword [ebp - 0x5c]
shl ebx, 6
mov eax, dword [edx + 0x18]
mov dword [ebx + ecx], eax
mov ecx, dword [edi + 0xc4]
mov eax, dword [edx + 0x1c]
mov dword [ebx + ecx + 4], eax
mov eax, dword [edi + 0xc4]
cmp dword [ebx + eax + 0x38], 0
je 0x1004e74f
mov eax, dword [ebx + eax + 0x38]
add eax, 4
mov dword [ebp - 0x54], eax
je 0x1004e6f0
push 4
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1004e6ed
mov ecx, dword [ebp - 0x54]
lea eax, [ebp - 0x4c]
push eax
call dword [0x100b089c]
mov edx, dword [ebp - 0x5c]
mov eax, dword [edi + 0xc4]
mov ecx, dword [ebp - 0x60]
mov eax, dword [eax + ebx + 0x38]
mov dword [eax + 0x60], esi
mov eax, dword [edi + 0xc4]
mov eax, dword [ebx + eax + 0x38]
mov dword [eax + 0x64], ecx
mov eax, dword [edi + 0xc4]
mov eax, dword [ebx + eax + 0x38]
mov dword [eax + 0x68], 0
test ecx, ecx
je 0x1004e72e
movsx ecx, word [ecx + 0x4e]
movsx eax, word [esi + 0x5e]
add ecx, eax
jmp 0x1004e732
movsx ecx, word [esi + 0x5e]
mov eax, dword [edi + 0xc4]
mov eax, dword [ebx + eax + 0x38]
mov dword [eax + 0x6c], ecx
mov eax, dword [edi + 0xc4]
mov ecx, dword [ebx + eax + 0x38]
mov eax, dword [edx + 0x2c]
mov dword [ecx + 0x44], eax
mov eax, dword [edi + 0xc4]
mov eax, dword [ebx + eax + 0x34]
mov dword [ebp - 0x54], eax
test eax, eax
je 0x1004e77a
push 4
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1004e77a
mov ecx, dword [ebp - 0x54]
lea eax, [ebp - 0x4c]
push eax
call dword [0x100b0908]
push dword [ebp - 0x60]
mov edx, esi
lea ecx, [ebp - 0x80]
call fcn.10010540
add esp, 4
mov dword [ebp - 0x54], eax
mov byte [ebp - 4], 9
mov ecx, dword [edi + 0xc4]
mov esi, dword [ebx + ecx + 0x20]
test esi, esi
je 0x1004e7b7
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1004e7b7
push dword [ebp - 0x54]
mov ecx, esi
call dword [0x100b0938]
mov eax, dword [ebp - 0x6c]
cmp eax, 0x10
jb 0x1004e7cc
inc eax
lea ecx, [ebp - 0x80]
push eax
push dword [ebp - 0x80]
call fcn.10005480
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x38]
cmp eax, 0x10
jb 0x1004e7e5
inc eax
lea ecx, [ebp - 0x4c]
push eax
push dword [ebp - 0x4c]
call fcn.10005480
mov esi, dword [ebp - 0x5c]
mov eax, dword [esi + 0x28]
cmp eax, 1
jne 0x1004e8b0
mov edx, dword [esi + 0x24]
push ecx
lea ecx, [ebp - 0x80]
call fcn.10013f20
add esp, 4
mov byte [ebp - 4], 0xa
cmp dword [eax + 0x14], 0x10
jb 0x1004e80f
mov eax, dword [eax]
movaps xmm0, xmmword [0x100b2680]
xor ecx, ecx
push eax
movups xmmword [ebp - 0x30], xmm0
mov byte [ebp - 0x20], 0
mov al, byte [ebp - 0x30]
xor byte [ebp + ecx - 0x2f], al
inc ecx
cmp ecx, 0xf
jb 0x1004e821
sub esp, 0x18
mov byte [ebp - 0x20], 0
mov edx, esp
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
mov dword [edx + 0x14], 0xf
cmp dword [edx + 0x14], 0x10
mov dword [edx + 0x10], 0
jb 0x1004e85d
mov eax, dword [edx]
jmp 0x1004e85f
mov eax, edx
mov byte [eax], 0
cmp byte [ebp - 0x2f], 0
jne 0x1004e86c
xor ecx, ecx
jmp 0x1004e87f
lea ecx, [ebp - 0x2f]
lea eax, [ecx + 1]
mov dword [ebp - 0x54], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1004e875
sub ecx, dword [ebp - 0x54]
push ecx
lea eax, [ebp - 0x2f]
mov ecx, edx
push eax
call fcn.100055d0
lea eax, [ebp - 0xa0]
push eax
call fcn.10004f40
add esp, 0x20
mov dword [ebp - 0x54], eax
mov byte [ebp - 4], 0xb
mov ecx, dword [edi + 0xc4]
mov eax, dword [ebx + ecx + 0x24]
jmp 0x1004e976
cmp eax, 2
jne 0x1004e9e8
mov edx, dword [esi + 0x24]
push ecx
lea ecx, [ebp - 0x80]
call fcn.10013f20
add esp, 4
mov byte [ebp - 4], 0xc
cmp dword [eax + 0x14], 0x10
jb 0x1004e8d4
mov eax, dword [eax]
movaps xmm0, xmmword [0x100b28a0]
xor ecx, ecx
push eax
movups xmmword [ebp - 0x30], xmm0
mov byte [ebp - 0x20], 0
mov al, byte [ebp - 0x30]
xor byte [ebp + ecx - 0x2f], al
inc ecx
cmp ecx, 0xf
jb 0x1004e8e6
sub esp, 0x18
mov byte [ebp - 0x20], 0
mov edx, esp
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
mov dword [edx + 0x14], 0xf
cmp dword [edx + 0x14], 0x10
mov dword [edx + 0x10], 0
jb 0x1004e922
mov eax, dword [edx]
jmp 0x1004e924
mov eax, edx
mov byte [eax], 0
cmp byte [ebp - 0x2f], 0
jne 0x1004e931
xor ecx, ecx
jmp 0x1004e94a
lea ecx, [ebp - 0x2f]
lea eax, [ecx + 1]
mov dword [ebp - 0x54], eax
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1004e940
sub ecx, dword [ebp - 0x54]
push ecx
lea eax, [ebp - 0x2f]
mov ecx, edx
push eax
call fcn.100055d0
lea eax, [ebp - 0xa0]
push eax
call fcn.10004f40
add esp, 0x20
mov dword [ebp - 0x54], eax
mov byte [ebp - 4], 0xd
mov ecx, dword [edi + 0xc4]
mov eax, dword [ecx + ebx + 0x24]
mov dword [ebp - 0x50], eax
test eax, eax
je 0x1004e996
push 4
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1004e996
push dword [ebp - 0x54]
mov ecx, dword [ebp - 0x50]
call dword [0x100b0938]
mov eax, dword [ebp - 0x8c]
cmp eax, 0x10
jb 0x1004e9b4
inc eax
lea ecx, [ebp - 0xa0]
push eax
push dword [ebp - 0xa0]
call fcn.10005480
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x6c]
mov byte [ebp - 0xa0], 0
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x8c], 0xf
cmp eax, 0x10
jb 0x1004e9e8
inc eax
lea ecx, [ebp - 0x80]
push eax
push dword [ebp - 0x80]
call fcn.10005480
mov edx, dword [esi + 0x20]
push ecx
lea ecx, [ebp - 0x80]
call fcn.10013f20
add esp, 4
mov byte [ebp - 4], 0xe
cmp dword [eax + 0x14], 0x10
jb 0x1004ea03
mov eax, dword [eax]
movaps xmm0, xmmword [0x100b3000]
xor ecx, ecx
push eax
movups xmmword [ebp - 0x30], xmm0
mov word [ebp - 0x20], 0x2f
mov al, byte [ebp - 0x30]
xor byte [ebp + ecx - 0x2f], al
inc ecx
cmp ecx, 0x10
jb 0x1004ea17
sub esp, 0x18
mov byte [ebp - 0x1f], 0
mov edx, esp
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
mov dword [edx + 0x14], 0xf
cmp dword [edx + 0x14], 0x10
mov dword [edx + 0x10], 0
jb 0x1004ea53
mov eax, dword [edx]
jmp 0x1004ea55
mov eax, edx
mov byte [eax], 0
cmp byte [ebp - 0x2f], 0
jne 0x1004ea62
xor ecx, ecx
jmp 0x1004ea71
lea ecx, [ebp - 0x2f]
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1004ea68
sub ecx, esi
push ecx
lea eax, [ebp - 0x2f]
mov ecx, edx
push eax
call fcn.100055d0
lea eax, [ebp - 0xa0]
push eax
call fcn.10004f40
add esp, 0x20
mov dword [ebp - 0x54], eax
mov byte [ebp - 4], 0xf
mov ecx, dword [edi + 0xc4]
mov esi, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
mov eax, dword [ebx + ecx + 0x28]
mov dword [ebp - 0x50], eax
test eax, eax
je 0x1004eabf
push 4
push eax
call esi
test eax, eax
jne 0x1004eabf
push dword [ebp - 0x54]
mov ecx, dword [ebp - 0x50]
call dword [0x100b0938]
mov eax, dword [ebp - 0x8c]
cmp eax, 0x10
jb 0x1004eadd
inc eax
lea ecx, [ebp - 0xa0]
push eax
push dword [ebp - 0xa0]
call fcn.10005480
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x8c], 0xf
mov dword [ebp - 0x90], 0
mov byte [ebp - 0xa0], 0
cmp eax, 0x10
jb 0x1004eb11
inc eax
lea ecx, [ebp - 0x80]
push eax
push dword [ebp - 0x80]
call fcn.10005480
mov edx, dword [0x100c2f6c]
mov dword [ebp - 0x6c], 0xf
mov dword [ebp - 0x70], 0
mov byte [ebp - 0x80], 0
test edx, edx
je 0x1004ebcd
mov ecx, dword [ebp - 0x5c]
mov eax, dword [ecx + 0x28]
cmp eax, 1
jne 0x1004eb47
mov eax, dword [edx + 0x4c]
cmp eax, dword [ecx + 0x24]
jb 0x1004eb58
mov eax, dword [ecx + 0x28]
cmp eax, 2
jne 0x1004ebcd
mov eax, dword [edx + 0x50]
cmp eax, dword [ecx + 0x24]
jae 0x1004ebcd
mov eax, dword [edi + 0xc4]
mov eax, dword [ebx + eax + 0x24]
mov dword [ebp - 0x54], eax
test eax, eax
je 0x1004eb80
push 4
push eax
call esi
test eax, eax
jne 0x1004eb80
mov ecx, dword [ebp - 0x54]
push 0xfff78dad
call dword [0x100b0940]
mov eax, dword [edi + 0xc4]
mov eax, dword [ebx + eax + 0x2c]
mov dword [ebp - 0x54], eax
test eax, eax
je 0x1004ebaa
push 4
push eax
call esi
test eax, eax
jne 0x1004ebaa
mov ecx, dword [ebp - 0x54]
mov dl, 7
add ecx, 0xb8
call fcn.10016230
mov eax, dword [edi + 0xc4]
mov ebx, dword [ebx + eax + 0x30]
test ebx, ebx
je 0x1004ec43
push 4
push ebx
call esi
test eax, eax
jne 0x1004ec43
mov dl, 7
jmp 0x1004ec38
mov eax, dword [edi + 0xc4]
mov eax, dword [ebx + eax + 0x24]
mov dword [ebp - 0x54], eax
test eax, eax
je 0x1004ebf5
push 4
push eax
call esi
test eax, eax
jne 0x1004ebf5
mov ecx, dword [ebp - 0x54]
push 0xff92fcaf
call dword [0x100b0940]
mov eax, dword [edi + 0xc4]
mov eax, dword [ebx + eax + 0x2c]
mov dword [ebp - 0x54], eax
test eax, eax
je 0x1004ec1f
push 4
push eax
call esi
test eax, eax
jne 0x1004ec1f
mov ecx, dword [ebp - 0x54]
mov dl, 2
add ecx, 0xb8
call fcn.10016230
mov eax, dword [edi + 0xc4]
mov ebx, dword [ebx + eax + 0x30]
test ebx, ebx
je 0x1004ec43
push 4
push ebx
call esi
test eax, eax
jne 0x1004ec43
mov dl, 2
lea ecx, [ebx + 0xb8]
call fcn.10016230
mov ecx, dword [ebp - 0x58]
mov ebx, dword [edi + ecx*4 + 0x80]
test ebx, ebx
je 0x1004ec67
push 4
push ebx
call esi
test eax, eax
jne 0x1004ec64
push 1
mov ecx, ebx
call dword [0x100b08d4]
mov ecx, dword [ebp - 0x58]
mov eax, dword [ebp - 0x68]
inc eax
mov edx, eax
mov dword [ebp - 0x68], eax
cmp eax, dword [ebp - 0x84]
jl 0x1004e340
mov ebx, dword [edi + 0x14]
mov edi, dword [edi + 0xbc]
test edi, edi
je 0x1004ec9b
push 4
push edi
call esi
test eax, eax
jne 0x1004ec9b
push ebx
mov ecx, edi
call dword [0x100b093c]
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x1004eccd
mov edi, dword [ebp - 0x18]
mov esi, ebx
cmp ebx, edi
je 0x1004ecbe
nop dword [eax + eax]
mov ecx, esi
call fcn.10053e50
add esi, 0x40
cmp esi, edi
jne 0x1004ecb0
mov eax, dword [ebp - 0x64]
sub eax, ebx
sar eax, 6
push eax
push ebx
call fcn.10053d20
mov eax, dword [ebp + 0x24]
cmp eax, 0x10
jb 0x1004ece2
inc eax
lea ecx, [ebp + 0x10]
push eax
push dword [ebp + 0x10]
call fcn.10005480
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1005cea0
mov esp, ebp
pop ebp
ret 0x20