Function at 0x100359d0
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 0x10043117
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xa0
mov eax, dword [0x10055014]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x70], edi
mov dword [ebp - 4], 0
call fcn.10035640
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
xor eax, eax
movq qword [ebp - 0x20], xmm0
xor esi, esi
mov dword [ebp - 0x6c], eax
xor ecx, ecx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 1
mov dword [ebp - 0x54], eax
mov eax, dword [edi + 0xec]
sub eax, dword [edi + 0xe8]
sar eax, 6
test eax, eax
je 0x10035e10
mov al, byte [ebx + 0xc]
test al, al
je 0x10035ab9
cmp dword [ebx + 0x24], 0x10
lea eax, [ebp - 0x5f]
mov edx, dword [ebx + 0x20]
lea ecx, [ebx + 0x10]
cmovae ecx, dword [ebx + 0x10]
push 0
mov word [ebp - 0x60], 0x5d
push eax
mov byte [ebp - 0x5f], 0
call fcn.10002d70
add esp, 8
test eax, eax
jne 0x10035aae
mov ecx, dword [edi + 0xe8]
movzx eax, byte [ebx + 0xc]
cmp dword [ecx + esi + 0x30], eax
jne 0x10035de3
add ecx, esi
push ecx
jmp 0x10035ddb
mov al, byte [ebx + 0xc]
test al, al
jne 0x10035c39
cmp dword [ebx + 0x24], 0x10
lea eax, [ebp - 0x63]
mov edx, dword [ebx + 0x20]
lea ecx, [ebx + 0x10]
cmovae ecx, dword [ebx + 0x10]
push 0
mov word [ebp - 0x64], 0x10
push eax
mov byte [ebp - 0x63], 0
call fcn.10002d70
add esp, 8
test eax, eax
je 0x10035dd2
mov eax, dword [edi + 0xe8]
mov ecx, dword [eax + esi + 0x1c]
test ecx, ecx
jne 0x10035af9
xor eax, eax
jmp 0x10035b1c
mov eax, 0x10624dd3
mul ecx
mov ecx, 0xd78ae8
shr edx, 6
imul eax, edx, 0x3e8
push eax
call fcn.100164e0
mov ecx, eax
call dword [0x1004b53c]
mov ecx, dword [edi + 0xe8]
mov dword [ebp - 0x6c], eax
cmp dword [esi + ecx + 0x1c], 0
jbe 0x10035bd9
cmp dword [esi + ecx + 0x1c], 0x5f5e100
jae 0x10035bd9
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x74], 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 0x10035b6c
mov eax, dword [ecx]
jmp 0x10035b6e
mov eax, ecx
push 0xffffffffffffffff
mov byte [eax], 0
lea eax, [ebx + 0x10]
push 0
push eax
call fcn.100023b0
sub esp, 0x18
mov byte [ebp - 4], 2
mov eax, dword [edi + 0xe8]
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 0x10035bc5
mov edx, dword [ecx]
push 0xffffffffffffffff
push 0
push eax
mov byte [edx], 0
call fcn.100023b0
jmp 0x10035dc2
push 0xffffffffffffffff
mov edx, ecx
push 0
push eax
mov byte [edx], 0
call fcn.100023b0
jmp 0x10035dc2
test eax, eax
je 0x10035de3
mov edx, dword [ecx + esi + 0x1c]
mov cl, byte [eax + 4]
call fcn.1000ec50
sub esp, 0x18
mov dword [ebp - 0x68], eax
mov ecx, esp
mov dword [ebp - 0x74], 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 0x10035c1e
mov eax, dword [ecx]
jmp 0x10035c20
mov eax, ecx
push 0xffffffffffffffff
mov byte [eax], 0
lea eax, [ebx + 0x10]
push 0
push eax
call fcn.100023b0
mov byte [ebp - 4], 3
jmp 0x10035daf
cmp dword [ebx + 0x24], 0x10
lea eax, [ebp - 0x5b]
mov edx, dword [ebx + 0x20]
lea ecx, [ebx + 0x10]
cmovae ecx, dword [ebx + 0x10]
push 0
mov word [ebp - 0x5c], 0x5d
push eax
mov byte [ebp - 0x5b], 0
call fcn.10002d70
add esp, 8
test eax, eax
je 0x10035dd2
mov ecx, dword [edi + 0xe8]
movzx eax, byte [ebx + 0xc]
cmp dword [ecx + esi + 0x30], eax
jne 0x10035de3
mov ecx, dword [ecx + esi + 0x1c]
test ecx, ecx
jne 0x10035c87
xor eax, eax
jmp 0x10035caa
mov eax, 0x10624dd3
mul ecx
mov ecx, 0xd78ae8
shr edx, 6
imul eax, edx, 0x3e8
push eax
call fcn.100164e0
mov ecx, eax
call dword [0x1004b53c]
mov ecx, dword [edi + 0xe8]
mov dword [ebp - 0x6c], eax
cmp dword [ecx + esi + 0x1c], 0
jbe 0x10035d54
cmp dword [ecx + esi + 0x1c], 0x5f5e100
jae 0x10035d54
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x74], 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 0x10035cfa
mov eax, dword [ecx]
jmp 0x10035cfc
mov eax, ecx
push 0xffffffffffffffff
mov byte [eax], 0
lea eax, [ebx + 0x10]
push 0
push eax
call fcn.100023b0
sub esp, 0x18
mov byte [ebp - 4], 4
mov eax, dword [edi + 0xe8]
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 0x10035bc5
mov edx, dword [ecx]
push 0xffffffffffffffff
push 0
push eax
mov byte [edx], 0
call fcn.100023b0
jmp 0x10035dc2
test eax, eax
je 0x10035de3
mov edx, dword [ecx + esi + 0x1c]
mov cl, byte [eax + 4]
call fcn.1000ec50
sub esp, 0x18
mov dword [ebp - 0x68], eax
mov ecx, esp
mov dword [ebp - 0x74], 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 0x10035d99
mov eax, dword [ecx]
jmp 0x10035d9b
mov eax, ecx
push 0xffffffffffffffff
mov byte [eax], 0
lea eax, [ebx + 0x10]
push 0
push eax
call fcn.100023b0
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x6c]
sub esp, 0x18
mov ecx, esp
push dword [ebp - 0x68]
call fcn.1000f260
add esp, 4
mov byte [ebp - 4], 1
call fcn.10014030
add esp, 0x30
test al, al
je 0x10035de3
mov eax, dword [edi + 0xe8]
add eax, esi
push eax
lea ecx, [ebp - 0x20]
call fcn.100370b0
mov eax, dword [edi + 0xec]
add esi, 0x40
mov ecx, dword [ebp - 0x54]
sub eax, dword [edi + 0xe8]
inc ecx
sar eax, 6
mov dword [ebp - 0x54], ecx
cmp ecx, eax
jb 0x10035a61
mov eax, dword [ebp - 0x18]
mov esi, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x6c], eax
mov eax, ecx
sub eax, esi
cmp eax, 0x40
jae 0x10035ebb
lea eax, [edi + 0xac]
mov dword [ebp - 0x54], 0xc
mov dword [ebp - 0x68], eax
mov eax, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
mov edi, dword [ebp - 0x68]
mov esi, dword [edi]
test esi, esi
je 0x10035e52
push 4
push esi
call eax
test eax, eax
jne 0x10035e4d
push eax
mov ecx, esi
call dword [0x1004b578]
mov eax, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
add edi, 4
sub dword [ebp - 0x54], 1
jne 0x10035e35
mov edi, dword [ebp - 0x70]
mov esi, dword [edi + 0x194]
mov ecx, dword [edi + 0x19c]
mov dword [ebp - 0x68], ecx
test esi, esi
je 0x10035e85
push 4
push esi
call eax
test eax, eax
jne 0x10035e85
push dword [ebp - 0x68]
mov ecx, esi
call dword [0x1004b5a8]
mov dword [edi + 0x1a0], 1
mov edi, dword [ebp - 0x20]
test edi, edi
je 0x10035ff0
mov esi, edi
cmp edi, dword [ebp - 0x1c]
je 0x10035fe1
mov edi, dword [ebp - 0x1c]
mov ecx, esi
call fcn.10038540
add esi, 0x40
cmp esi, edi
jne 0x10035ea8
jmp 0x10035fde
lea edx, [ebp - 0x54]
sar eax, 6
push edx
mov edx, ecx
mov dword [ebp - 0x54], 0x100353c0
push eax
mov ecx, esi
mov dword [ebp - 0x68], eax
call fcn.10037390
mov eax, dword [ebp - 0x68]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x1004d5b0]
divsd xmm0, qword [0x1004cd48]
movsd qword [ebp - 0x78], xmm0
fld qword [ebp - 0x78]
fstp qword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_ceil
fstp qword [ebp - 0x78]
movsd xmm0, qword [ebp - 0x78]
add esp, 8
andps xmm0, xmmword [0x1004dae0]
call fcn.1003ff11
mov dword [edi + 0x1a0], eax
or edx, 0xffffffff
mov eax, dword [ebx + 8]
lea eax, [eax + eax*2]
shl eax, 2
lea ecx, [eax - 0xc]
mov dword [ebp - 0x74], ecx
cmp ecx, eax
mov dword [ebp - 0x7c], ecx
mov ecx, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
jge 0x10035f93
jmp 0x10035f46
mov esi, dword [ebp - 0x20]
inc edx
mov dword [ebp - 0x64], edx
cmp edx, 0xe
jg 0x10035f93
mov eax, dword [ebp - 0x68]
dec eax
cmp dword [ebp - 0x7c], eax
jle 0x10036022
mov esi, dword [edi + edx*4 + 0xac]
test esi, esi
je 0x10035f82
push 4
push esi
call ecx
test eax, eax
jne 0x10035f79
push eax
mov ecx, esi
call dword [0x1004b578]
mov edx, dword [ebp - 0x64]
mov ecx, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
mov esi, dword [ebp - 0x7c]
mov eax, dword [ebp - 0x74]
inc esi
add eax, 0xc
mov dword [ebp - 0x7c], esi
cmp esi, eax
jl 0x10035f43
mov esi, dword [edi + 0x194]
mov eax, dword [edi + 0x19c]
mov dword [ebp - 0x74], eax
test esi, esi
je 0x10035fba
push 4
push esi
call ecx
test eax, eax
jne 0x10035fba
push dword [ebp - 0x74]
mov ecx, esi
call dword [0x1004b5a8]
mov edi, dword [ebp - 0x20]
test edi, edi
je 0x10035ff0
mov esi, edi
cmp edi, dword [ebp - 0x1c]
je 0x10035fe1
mov edi, dword [ebp - 0x1c]
nop dword [eax + eax]
mov ecx, esi
call fcn.10038540
add esi, 0x40
cmp esi, edi
jne 0x10035fd0
mov edi, dword [ebp - 0x20]
mov eax, dword [ebp - 0x6c]
sub eax, edi
sar eax, 6
push eax
push edi
call fcn.10038490
mov eax, dword [ebx + 0x24]
cmp eax, 0x10
jb 0x10036002
inc eax
push eax
push dword [ebx + 0x10]
call fcn.100026c0
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.1003ce35
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x20
mov edx, dword [ebp - 0x7c]
shl edx, 6
add esi, edx
mov dword [ebp - 0x5c], edx
mov ecx, dword [esi + 0x1c]
test ecx, ecx
jne 0x10036038
xor eax, eax
jmp 0x1003605e
mov eax, 0x10624dd3
mul ecx
mov ecx, 0xd78ae8
shr edx, 6
imul eax, edx, 0x3e8
push eax
call fcn.100164e0
mov ecx, eax
call dword [0x1004b53c]
mov edx, dword [ebp - 0x5c]
mov ecx, dword [esi + 0x1c]
mov dword [ebp - 0x60], eax
test ecx, ecx
je 0x100362b4
cmp ecx, 0x5f5e100
jae 0x100362b4
mov ecx, dword [ebp - 0x64]
mov eax, dword [ebp - 0x20]
lea esi, [ecx*8]
mov eax, dword [eax + edx + 0x18]
sub esi, ecx
mov ecx, dword [edi + 0xdc]
mov edi, dword [ebp - 0x70]
shl esi, 3
mov dword [ebp - 0x60], esi
mov dword [esi + ecx + 0x1c], eax
mov ecx, dword [edi + 0xdc]
mov eax, dword [ebp - 0x20]
mov eax, dword [edx + eax + 0x1c]
mov dword [esi + ecx + 0x20], eax
mov eax, dword [ebp - 0x20]
mov ecx, dword [edi + 0xdc]
add eax, 0x34
add eax, edx
add ecx, 0x24
push eax
add ecx, esi
call fcn.10038370
mov ecx, dword [edi + 0xdc]
mov edx, dword [ebp - 0x5c]
mov edi, dword [ebp - 0x20]
mov ecx, dword [esi + ecx]
lea edx, [edx + edi]
call fcn.10016270
mov edi, dword [ebp - 0x70]
mov eax, dword [edi + 0xdc]
mov edx, dword [eax + esi + 0x28]
sub edx, dword [eax + esi + 0x24]
mov esi, eax
add esi, dword [ebp - 0x60]
sar edx, 2
call fcn.10013c70
mov ecx, dword [esi + 0x24]
mov ecx, dword [ecx + eax*4 - 4]
mov dword [ebp - 0x54], ecx
test ecx, ecx
je 0x1003651b
mov eax, 0x10624dd3
mul ecx
mov ecx, 0xd78ae8
shr edx, 6
imul eax, edx, 0x3e8
push eax
call fcn.100164e0
mov ecx, eax
call dword [0x1004b53c]
mov esi, eax
mov dword [ebp - 0xb0], esi
test esi, esi
je 0x1003651b
mov dword [ebp - 0x24], 0xf
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x54]
mov cl, byte [esi + 4]
mov dword [ebp - 0x28], 0
mov byte [ebp - 0x38], 0
call fcn.1000ec50
mov dword [ebp - 0x58], eax
test eax, eax
je 0x1003619a
cmp dword [eax + 0x48], 0
je 0x1003619a
push dword [ebp - 0x54]
xor edx, edx
lea ecx, [ebp - 0x94]
push eax
call fcn.1000eee0
add esp, 8
lea ecx, [ebp - 0x38]
push eax
call fcn.100069c0
lea ecx, [ebp - 0x94]
call fcn.100022a0
jmp 0x100361cd
push dword [ebp - 0x54]
mov edx, esi
lea ecx, [ebp - 0x94]
push 0
call fcn.1000eee0
add esp, 8
lea ecx, [ebp - 0x38]
push eax
call fcn.100069c0
mov eax, dword [ebp - 0x80]
cmp eax, 0x10
jb 0x100361cd
inc eax
push eax
push dword [ebp - 0x94]
call fcn.100026c0
mov eax, dword [edi + 0xdc]
mov esi, dword [ebp - 0x60]
cmp dword [esi + eax + 0x18], 0
je 0x10036295
mov ecx, dword [esi + eax + 0x18]
lea edx, [ebp - 0x38]
add ecx, 4
call fcn.100133c0
mov eax, dword [edi + 0xdc]
mov edx, dword [ebp - 0xb0]
mov ecx, dword [ebp - 0x58]
mov eax, dword [esi + eax + 0x18]
mov dword [eax + 0x50], edx
mov eax, dword [edi + 0xdc]
mov eax, dword [esi + eax + 0x18]
mov dword [eax + 0x54], ecx
mov eax, dword [edi + 0xdc]
mov eax, dword [esi + eax + 0x18]
mov dword [eax + 0x58], 1
test ecx, ecx
je 0x10036234
movsx ecx, word [ecx + 0x56]
movsx eax, word [edx + 0x66]
add ecx, eax
jmp 0x10036238
movsx ecx, word [edx + 0x66]
mov eax, dword [edi + 0xdc]
mov eax, dword [esi + eax + 0x18]
mov dword [eax + 0x5c], ecx
mov eax, dword [edi + 0xdc]
mov edi, dword [ebp - 0x20]
mov ecx, dword [esi + eax + 0x18]
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax + edi + 0x2c]
mov edi, dword [ebp - 0x70]
mov dword [ecx + 0x4c], eax
mov eax, dword [edi + 0xdc]
mov eax, dword [esi + eax + 0x18]
cmp dword [eax], 0
je 0x10036295
mov eax, dword [edi + 0xdc]
lea edx, [ebp - 0x38]
mov ecx, dword [esi + eax + 0x18]
mov ecx, dword [ecx]
call fcn.10016130
mov eax, dword [edi + 0xdc]
mov dl, 1
mov ecx, dword [esi + eax + 0x18]
mov ecx, dword [ecx]
call fcn.100160c0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x24]
cmp eax, 0x10
jb 0x1003651e
inc eax
push eax
push dword [ebp - 0x38]
call fcn.100026c0
jmp 0x1003651e
test eax, eax
jne 0x100362d9
mov edx, dword [ebp - 0x64]
mov esi, dword [edi + edx*4 + 0xac]
test esi, esi
je 0x10035f7c
mov eax, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
push 4
push esi
call eax
jmp 0x10035f6c
mov dword [ebp - 0x3c], 0xf
mov byte [ebp - 4], 7
mov edx, ecx
mov cl, byte [eax + 4]
mov dword [ebp - 0x40], 0
mov byte [ebp - 0x50], 0
call fcn.1000ec50
mov dword [ebp - 0x54], eax
test eax, eax
je 0x10036416
cmp dword [eax + 0x48], 0
je 0x10036416
push dword [esi + 0x1c]
xor edx, edx
lea ecx, [ebp - 0x94]
push eax
call fcn.1000eee0
add esp, 8
lea ecx, [ebp - 0x50]
push eax
call fcn.100069c0
mov eax, dword [ebp - 0x80]
cmp eax, 0x10
jb 0x10036340
inc eax
push eax
push dword [ebp - 0x94]
call fcn.100026c0
mov esi, dword [ebp - 0x60]
push dword [ebp - 0x54]
mov edx, esi
lea ecx, [ebp - 0x94]
call fcn.1000f260
add esp, 4
mov byte [ebp - 4], 9
mov edx, eax
mov ecx, dword [ebp - 0x64]
lea esi, [ecx*8]
sub esi, ecx
mov ecx, dword [edi + 0xdc]
shl esi, 3
mov ecx, dword [esi + ecx]
call fcn.10016270
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x80]
cmp eax, 0x10
jb 0x10036392
inc eax
push eax
push dword [ebp - 0x94]
call fcn.100026c0
mov ecx, dword [edi + 0xdc]
mov edx, dword [ebp - 0x5c]
add edx, dword [ebp - 0x20]
mov edi, dword [ebp - 0x70]
mov eax, dword [edx + 0x18]
mov dword [esi + ecx + 0x1c], eax
mov ecx, dword [edi + 0xdc]
mov eax, dword [edx + 0x1c]
mov dword [esi + ecx + 0x20], eax
mov eax, dword [edi + 0xdc]
cmp dword [esi + eax + 0x18], 0
je 0x10036503
mov ecx, dword [esi + eax + 0x18]
lea edx, [ebp - 0x50]
add ecx, 4
call fcn.100133c0
mov eax, dword [edi + 0xdc]
mov ecx, dword [ebp - 0x60]
mov edx, dword [ebp - 0x54]
mov eax, dword [esi + eax + 0x18]
mov dword [eax + 0x50], ecx
mov eax, dword [edi + 0xdc]
mov eax, dword [esi + eax + 0x18]
mov dword [eax + 0x54], edx
mov eax, dword [edi + 0xdc]
mov eax, dword [esi + eax + 0x18]
mov dword [eax + 0x58], 1
test edx, edx
je 0x10036489
movsx edx, word [edx + 0x56]
movsx eax, word [ecx + 0x66]
add edx, eax
jmp 0x1003648d
push dword [esi + 0x1c]
mov esi, dword [ebp - 0x60]
lea ecx, [ebp - 0x94]
push 0
mov edx, esi
call fcn.1000eee0
add esp, 8
mov dword [ebp - 0x58], eax
lea ecx, [ebp - 0x50]
cmp ecx, eax
je 0x10036467
mov eax, dword [ebp - 0x3c]
cmp eax, 0x10
jb 0x1003644a
inc eax
push eax
push dword [ebp - 0x50]
call fcn.100026c0
push dword [ebp - 0x58]
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x3c], 0xf
mov dword [ebp - 0x40], 0
mov byte [ebp - 0x50], 0
call fcn.10005ba0
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x80]
cmp eax, 0x10
jb 0x10036343
inc eax
push eax
push dword [ebp - 0x94]
call fcn.100026c0
jmp 0x10036343
movsx edx, word [ecx + 0x66]
mov eax, dword [edi + 0xdc]
mov eax, dword [esi + eax + 0x18]
mov dword [eax + 0x5c], edx
mov eax, dword [edi + 0xdc]
mov edi, dword [ebp - 0x20]
mov ecx, dword [esi + eax + 0x18]
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax + edi + 0x2c]
mov edi, dword [ebp - 0x70]
mov dword [ecx + 0x4c], eax
mov eax, dword [edi + 0xdc]
mov eax, dword [esi + eax + 0x18]
cmp dword [eax], 0
je 0x10036503
mov eax, dword [edi + 0xdc]
lea edx, [ebp - 0x50]
mov ecx, dword [esi + eax + 0x18]
mov ecx, dword [ecx]
call fcn.10016130
mov eax, dword [edi + 0xdc]
mov eax, dword [esi + eax + 0x18]
mov eax, dword [eax]
mov dword [ebp - 0x58], eax
test eax, eax
je 0x10036503
push 4
push eax
mov eax, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
call eax
test eax, eax
jne 0x10036503
mov ecx, dword [ebp - 0x58]
push 1
call dword [0x1004b578]
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x3c]
cmp eax, 0x10
jb 0x1003651e
inc eax
push eax
push dword [ebp - 0x50]
call fcn.100026c0
jmp 0x1003651e
mov esi, dword [ebp - 0x60]
mov eax, dword [ebp - 0x5c]
mov edx, dword [ebp - 0x20]
mov ecx, dword [eax + edx + 0x24]
cmp ecx, 1
jne 0x100365e4
mov edx, dword [eax + edx + 0x20]
push ecx
lea ecx, [ebp - 0x94]
call fcn.10014170
add esp, 4
mov byte [ebp - 4], 0xa
cmp dword [eax + 0x14], 0x10
jb 0x10036550
mov eax, dword [eax]
movaps xmm0, xmmword [0x1004d440]
xor ecx, ecx
push eax
movups xmmword [ebp - 0x34], xmm0
mov byte [ebp - 0x24], 0
mov al, byte [ebp - 0x34]
xor byte [ebp + ecx - 0x33], al
inc ecx
cmp ecx, 0xf
jb 0x10036562
sub esp, 0x18
mov byte [ebp - 0x24], 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 0x1003659e
mov eax, dword [edx]
jmp 0x100365a0
mov eax, edx
mov byte [eax], 0
cmp byte [ebp - 0x33], 0
jne 0x100365ad
xor ecx, ecx
jmp 0x100365c0
lea ecx, [ebp - 0x33]
lea eax, [ecx + 1]
mov dword [ebp - 0x58], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100365b6
sub ecx, dword [ebp - 0x58]
push ecx
lea eax, [ebp - 0x33]
mov ecx, edx
push eax
call fcn.100027c0
lea eax, [ebp - 0xac]
push eax
call fcn.10005c90
add esp, 0x20
mov byte [ebp - 4], 0xb
jmp 0x1003669d
cmp ecx, 2
jne 0x100366fd
mov edx, dword [eax + edx + 0x20]
push ecx
lea ecx, [ebp - 0x94]
call fcn.10014170
add esp, 4
mov byte [ebp - 4], 0xc
cmp dword [eax + 0x14], 0x10
jb 0x1003660c
mov eax, dword [eax]
movaps xmm0, xmmword [0x1004d7f0]
xor ecx, ecx
push eax
movups xmmword [ebp - 0x34], xmm0
mov byte [ebp - 0x24], 0
nop
mov al, byte [ebp - 0x34]
xor byte [ebp + ecx - 0x33], al
inc ecx
cmp ecx, 0xf
jb 0x10036620
sub esp, 0x18
mov byte [ebp - 0x24], 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 0x1003665c
mov eax, dword [edx]
jmp 0x1003665e
mov eax, edx
mov byte [eax], 0
cmp byte [ebp - 0x33], 0
jne 0x1003666b
xor ecx, ecx
jmp 0x1003667e
lea ecx, [ebp - 0x33]
lea eax, [ecx + 1]
mov dword [ebp - 0x58], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10036674
sub ecx, dword [ebp - 0x58]
push ecx
lea eax, [ebp - 0x33]
mov ecx, edx
push eax
call fcn.100027c0
lea eax, [ebp - 0xac]
push eax
call fcn.10005c90
add esp, 0x20
mov byte [ebp - 4], 0xd
mov ecx, dword [edi + 0xdc]
mov edx, eax
mov ecx, dword [esi + ecx + 4]
call fcn.10016270
mov eax, dword [ebp - 0x98]
cmp eax, 0x10
jb 0x100366c6
inc eax
push eax
push dword [ebp - 0xac]
call fcn.100026c0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x80]
mov byte [ebp - 0xac], 0
mov dword [ebp - 0x9c], 0
mov dword [ebp - 0x98], 0xf
cmp eax, 0x10
jb 0x100366fa
inc eax
push eax
push dword [ebp - 0x94]
call fcn.100026c0
mov eax, dword [ebp - 0x5c]
push ecx
mov ecx, dword [ebp - 0x20]
mov edx, dword [eax + ecx + 0x28]
lea ecx, [ebp - 0x94]
call fcn.10014170
add esp, 4
mov byte [ebp - 4], 0xe
cmp dword [eax + 0x14], 0x10
jb 0x1003671f
mov eax, dword [eax]
movaps xmm0, xmmword [0x1004d350]
xor ecx, ecx
push eax
movups xmmword [ebp - 0x34], xmm0
mov word [ebp - 0x24], 0x72
mov al, byte [ebp - 0x34]
xor byte [ebp + ecx - 0x33], al
inc ecx
cmp ecx, 0x10
jb 0x10036733
sub esp, 0x18
mov byte [ebp - 0x23], 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 0x1003676f
mov eax, dword [edx]
jmp 0x10036771
mov eax, edx
mov byte [eax], 0
cmp byte [ebp - 0x33], 0
jne 0x1003677e
xor ecx, ecx
jmp 0x10036791
lea ecx, [ebp - 0x33]
lea eax, [ecx + 1]
mov dword [ebp - 0x58], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10036787
sub ecx, dword [ebp - 0x58]
push ecx
lea eax, [ebp - 0x33]
mov ecx, edx
push eax
call fcn.100027c0
lea eax, [ebp - 0xac]
push eax
call fcn.10005c90
add esp, 0x20
mov byte [ebp - 4], 0xf
mov edx, eax
mov ecx, dword [edi + 0xdc]
mov ecx, dword [esi + ecx + 8]
call fcn.10016270
mov eax, dword [ebp - 0x98]
cmp eax, 0x10
jb 0x100367d9
inc eax
push eax
push dword [ebp - 0xac]
call fcn.100026c0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x98], 0xf
mov dword [ebp - 0x9c], 0
mov byte [ebp - 0xac], 0
cmp eax, 0x10
jb 0x1003680d
inc eax
push eax
push dword [ebp - 0x94]
call fcn.100026c0
mov edx, dword [0x10057700]
mov dword [ebp - 0x80], 0xf
mov dword [ebp - 0x84], 0
mov byte [ebp - 0x94], 0
test edx, edx
je 0x100368e3
mov ecx, dword [ebp - 0x5c]
add ecx, dword [ebp - 0x20]
mov edi, dword [ebp - 0x70]
mov eax, dword [ecx + 0x24]
cmp eax, 1
jne 0x1003684f
mov eax, dword [edx + 0x44]
cmp eax, dword [ecx + 0x20]
jb 0x10036864
mov eax, dword [ecx + 0x24]
cmp eax, 2
jne 0x100368e3
mov eax, dword [edx + 0x48]
cmp eax, dword [ecx + 0x20]
jae 0x100368e3
mov eax, dword [edi + 0xdc]
mov eax, dword [esi + eax + 4]
mov dword [ebp - 0x58], eax
test eax, eax
je 0x10036890
push 4
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10036890
mov ecx, dword [ebp - 0x58]
push 0xffff0000
call dword [0x1004b5ac]
mov eax, dword [edi + 0xdc]
mov eax, dword [esi + eax + 0xc]
mov dword [ebp - 0x58], eax
test eax, eax
je 0x100368b9
push 4
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x100368b9
mov ecx, dword [ebp - 0x58]
push 7
call dword [0x1004b57c]
mov eax, dword [edi + 0xdc]
mov esi, dword [esi + eax + 0x10]
test esi, esi
je 0x1003695d
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1003695d
push 7
jmp 0x10036955
mov eax, dword [edi + 0xdc]
mov eax, dword [esi + eax + 4]
mov dword [ebp - 0x58], eax
test eax, eax
je 0x1003690f
push 4
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1003690f
mov ecx, dword [ebp - 0x58]
push 0xfffff3ae
call dword [0x1004b5ac]
mov eax, dword [edi + 0xdc]
mov eax, dword [esi + eax + 0xc]
mov dword [ebp - 0x58], eax
test eax, eax
je 0x10036938
push 4
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10036938
mov ecx, dword [ebp - 0x58]
push 2
call dword [0x1004b57c]
mov eax, dword [edi + 0xdc]
mov esi, dword [esi + eax + 0x10]
test esi, esi
je 0x1003695d
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1003695d
push 2
mov ecx, esi
call dword [0x1004b57c]
mov edx, dword [ebp - 0x64]
mov esi, dword [edi + edx*4 + 0xac]
test esi, esi
je 0x10035f7c
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10035f79
push 1
jmp 0x10035f71