Function at 0x10031340
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 0x1003e537
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xa0
mov eax, dword [0x10051014]
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.10030fb0
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 0x10031780
mov al, byte [ebx + 0xc]
test al, al
je 0x10031429
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.10002920
add esp, 8
test eax, eax
jne 0x1003141e
mov ecx, dword [edi + 0xe8]
movzx eax, byte [ebx + 0xc]
cmp dword [ecx + esi + 0x30], eax
jne 0x10031753
add ecx, esi
push ecx
jmp 0x1003174b
mov al, byte [ebx + 0xc]
test al, al
jne 0x100315a9
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.10002920
add esp, 8
test eax, eax
je 0x10031742
mov eax, dword [edi + 0xe8]
mov ecx, dword [eax + esi + 0x1c]
test ecx, ecx
jne 0x10031469
xor eax, eax
jmp 0x1003148c
mov eax, 0x10624dd3
mul ecx
mov ecx, 0xd78ae8
shr edx, 6
imul eax, edx, 0x3e8
push eax
call fcn.10012630
mov ecx, eax
call dword [0x100474fc]
mov ecx, dword [edi + 0xe8]
mov dword [ebp - 0x6c], eax
cmp dword [esi + ecx + 0x1c], 0
jbe 0x10031549
cmp dword [esi + ecx + 0x1c], 0x5f5e100
jae 0x10031549
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 0x100314dc
mov eax, dword [ecx]
jmp 0x100314de
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 0x10031535
mov edx, dword [ecx]
push 0xffffffffffffffff
push 0
push eax
mov byte [edx], 0
call fcn.100023b0
jmp 0x10031732
push 0xffffffffffffffff
mov edx, ecx
push 0
push eax
mov byte [edx], 0
call fcn.100023b0
jmp 0x10031732
test eax, eax
je 0x10031753
mov edx, dword [ecx + esi + 0x1c]
mov cl, byte [eax + 4]
call fcn.1000e7d0
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 0x1003158e
mov eax, dword [ecx]
jmp 0x10031590
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 0x1003171f
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.10002920
add esp, 8
test eax, eax
je 0x10031742
mov ecx, dword [edi + 0xe8]
movzx eax, byte [ebx + 0xc]
cmp dword [ecx + esi + 0x30], eax
jne 0x10031753
mov ecx, dword [ecx + esi + 0x1c]
test ecx, ecx
jne 0x100315f7
xor eax, eax
jmp 0x1003161a
mov eax, 0x10624dd3
mul ecx
mov ecx, 0xd78ae8
shr edx, 6
imul eax, edx, 0x3e8
push eax
call fcn.10012630
mov ecx, eax
call dword [0x100474fc]
mov ecx, dword [edi + 0xe8]
mov dword [ebp - 0x6c], eax
cmp dword [ecx + esi + 0x1c], 0
jbe 0x100316c4
cmp dword [ecx + esi + 0x1c], 0x5f5e100
jae 0x100316c4
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 0x1003166a
mov eax, dword [ecx]
jmp 0x1003166c
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 0x10031535
mov edx, dword [ecx]
push 0xffffffffffffffff
push 0
push eax
mov byte [edx], 0
call fcn.100023b0
jmp 0x10031732
test eax, eax
je 0x10031753
mov edx, dword [ecx + esi + 0x1c]
mov cl, byte [eax + 4]
call fcn.1000e7d0
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 0x10031709
mov eax, dword [ecx]
jmp 0x1003170b
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.1000ec00
add esp, 4
mov byte [ebp - 4], 1
call fcn.10010930
add esp, 0x30
test al, al
je 0x10031753
mov eax, dword [edi + 0xe8]
add eax, esi
push eax
lea ecx, [ebp - 0x20]
call fcn.10032a20
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 0x100313d1
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 0x1003182b
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 0x100317c2
push 4
push esi
call eax
test eax, eax
jne 0x100317bd
push eax
mov ecx, esi
call dword [0x10047538]
mov eax, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
add edi, 4
sub dword [ebp - 0x54], 1
jne 0x100317a5
mov edi, dword [ebp - 0x70]
mov esi, dword [edi + 0x194]
mov ecx, dword [edi + 0x19c]
mov dword [ebp - 0x68], ecx
test esi, esi
je 0x100317f5
push 4
push esi
call eax
test eax, eax
jne 0x100317f5
push dword [ebp - 0x68]
mov ecx, esi
call dword [0x10047568]
mov dword [edi + 0x1a0], 1
mov edi, dword [ebp - 0x20]
test edi, edi
je 0x10031960
mov esi, edi
cmp edi, dword [ebp - 0x1c]
je 0x10031951
mov edi, dword [ebp - 0x1c]
mov ecx, esi
call fcn.10033eb0
add esi, 0x40
cmp esi, edi
jne 0x10031818
jmp 0x1003194e
lea edx, [ebp - 0x54]
sar eax, 6
push edx
mov edx, ecx
mov dword [ebp - 0x54], 0x10030d30
push eax
mov ecx, esi
mov dword [ebp - 0x68], eax
call fcn.10032d00
mov eax, dword [ebp - 0x68]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x10049240]
divsd xmm0, qword [0x10048b78]
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 [0x100496c0]
call fcn.1003b831
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 0x10031903
jmp 0x100318b6
mov esi, dword [ebp - 0x20]
inc edx
mov dword [ebp - 0x64], edx
cmp edx, 0xe
jg 0x10031903
mov eax, dword [ebp - 0x68]
dec eax
cmp dword [ebp - 0x7c], eax
jle 0x10031992
mov esi, dword [edi + edx*4 + 0xac]
test esi, esi
je 0x100318f2
push 4
push esi
call ecx
test eax, eax
jne 0x100318e9
push eax
mov ecx, esi
call dword [0x10047538]
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 0x100318b3
mov esi, dword [edi + 0x194]
mov eax, dword [edi + 0x19c]
mov dword [ebp - 0x74], eax
test esi, esi
je 0x1003192a
push 4
push esi
call ecx
test eax, eax
jne 0x1003192a
push dword [ebp - 0x74]
mov ecx, esi
call dword [0x10047568]
mov edi, dword [ebp - 0x20]
test edi, edi
je 0x10031960
mov esi, edi
cmp edi, dword [ebp - 0x1c]
je 0x10031951
mov edi, dword [ebp - 0x1c]
nop dword [eax + eax]
mov ecx, esi
call fcn.10033eb0
add esi, 0x40
cmp esi, edi
jne 0x10031940
mov edi, dword [ebp - 0x20]
mov eax, dword [ebp - 0x6c]
sub eax, edi
sar eax, 6
push eax
push edi
call fcn.10033e00
mov eax, dword [ebx + 0x24]
cmp eax, 0x10
jb 0x10031972
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.10038745
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 0x100319a8
xor eax, eax
jmp 0x100319ce
mov eax, 0x10624dd3
mul ecx
mov ecx, 0xd78ae8
shr edx, 6
imul eax, edx, 0x3e8
push eax
call fcn.10012630
mov ecx, eax
call dword [0x100474fc]
mov edx, dword [ebp - 0x5c]
mov ecx, dword [esi + 0x1c]
mov dword [ebp - 0x60], eax
test ecx, ecx
je 0x10031c24
cmp ecx, 0x5f5e100
jae 0x10031c24
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.10033ce0
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.100123c0
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.100105c0
mov ecx, dword [esi + 0x24]
mov ecx, dword [ecx + eax*4 - 4]
mov dword [ebp - 0x54], ecx
test ecx, ecx
je 0x10031e8b
mov eax, 0x10624dd3
mul ecx
mov ecx, 0xd78ae8
shr edx, 6
imul eax, edx, 0x3e8
push eax
call fcn.10012630
mov ecx, eax
call dword [0x100474fc]
mov esi, eax
mov dword [ebp - 0xb0], esi
test esi, esi
je 0x10031e8b
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.1000e7d0
mov dword [ebp - 0x58], eax
test eax, eax
je 0x10031b0a
cmp dword [eax + 0x48], 0
je 0x10031b0a
push dword [ebp - 0x54]
xor edx, edx
lea ecx, [ebp - 0x94]
push eax
call fcn.1000e880
add esp, 8
lea ecx, [ebp - 0x38]
push eax
call fcn.10006540
lea ecx, [ebp - 0x94]
call fcn.100022a0
jmp 0x10031b3d
push dword [ebp - 0x54]
mov edx, esi
lea ecx, [ebp - 0x94]
push 0
call fcn.1000e880
add esp, 8
lea ecx, [ebp - 0x38]
push eax
call fcn.10006540
mov eax, dword [ebp - 0x80]
cmp eax, 0x10
jb 0x10031b3d
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 0x10031c05
mov ecx, dword [esi + eax + 0x18]
lea edx, [ebp - 0x38]
add ecx, 4
call fcn.100102d0
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 0x10031ba4
movsx ecx, word [ecx + 0x56]
movsx eax, word [edx + 0x66]
add ecx, eax
jmp 0x10031ba8
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 0x10031c05
mov eax, dword [edi + 0xdc]
lea edx, [ebp - 0x38]
mov ecx, dword [esi + eax + 0x18]
mov ecx, dword [ecx]
call fcn.10012280
mov eax, dword [edi + 0xdc]
mov dl, 1
mov ecx, dword [esi + eax + 0x18]
mov ecx, dword [ecx]
call fcn.10012210
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x24]
cmp eax, 0x10
jb 0x10031e8e
inc eax
push eax
push dword [ebp - 0x38]
call fcn.100026c0
jmp 0x10031e8e
test eax, eax
jne 0x10031c49
mov edx, dword [ebp - 0x64]
mov esi, dword [edi + edx*4 + 0xac]
test esi, esi
je 0x100318ec
mov eax, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
push 4
push esi
call eax
jmp 0x100318dc
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.1000e7d0
mov dword [ebp - 0x54], eax
test eax, eax
je 0x10031d86
cmp dword [eax + 0x48], 0
je 0x10031d86
push dword [esi + 0x1c]
xor edx, edx
lea ecx, [ebp - 0x94]
push eax
call fcn.1000e880
add esp, 8
lea ecx, [ebp - 0x50]
push eax
call fcn.10006540
mov eax, dword [ebp - 0x80]
cmp eax, 0x10
jb 0x10031cb0
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.1000ec00
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.100123c0
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x80]
cmp eax, 0x10
jb 0x10031d02
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 0x10031e73
mov ecx, dword [esi + eax + 0x18]
lea edx, [ebp - 0x50]
add ecx, 4
call fcn.100102d0
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 0x10031df9
movsx edx, word [edx + 0x56]
movsx eax, word [ecx + 0x66]
add edx, eax
jmp 0x10031dfd
push dword [esi + 0x1c]
mov esi, dword [ebp - 0x60]
lea ecx, [ebp - 0x94]
push 0
mov edx, esi
call fcn.1000e880
add esp, 8
mov dword [ebp - 0x58], eax
lea ecx, [ebp - 0x50]
cmp ecx, eax
je 0x10031dd7
mov eax, dword [ebp - 0x3c]
cmp eax, 0x10
jb 0x10031dba
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.10005710
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x80]
cmp eax, 0x10
jb 0x10031cb3
inc eax
push eax
push dword [ebp - 0x94]
call fcn.100026c0
jmp 0x10031cb3
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 0x10031e73
mov eax, dword [edi + 0xdc]
lea edx, [ebp - 0x50]
mov ecx, dword [esi + eax + 0x18]
mov ecx, dword [ecx]
call fcn.10012280
mov eax, dword [edi + 0xdc]
mov eax, dword [esi + eax + 0x18]
mov eax, dword [eax]
mov dword [ebp - 0x58], eax
test eax, eax
je 0x10031e73
push 4
push eax
mov eax, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
call eax
test eax, eax
jne 0x10031e73
mov ecx, dword [ebp - 0x58]
push 1
call dword [0x10047538]
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x3c]
cmp eax, 0x10
jb 0x10031e8e
inc eax
push eax
push dword [ebp - 0x50]
call fcn.100026c0
jmp 0x10031e8e
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 0x10031f54
mov edx, dword [eax + edx + 0x20]
push ecx
lea ecx, [ebp - 0x94]
call fcn.10010ad0
add esp, 4
mov byte [ebp - 4], 0xa
cmp dword [eax + 0x14], 0x10
jb 0x10031ec0
mov eax, dword [eax]
movaps xmm0, xmmword [0x10049100]
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 0x10031ed2
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 0x10031f0e
mov eax, dword [edx]
jmp 0x10031f10
mov eax, edx
mov byte [eax], 0
cmp byte [ebp - 0x33], 0
jne 0x10031f1d
xor ecx, ecx
jmp 0x10031f30
lea ecx, [ebp - 0x33]
lea eax, [ecx + 1]
mov dword [ebp - 0x58], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10031f26
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.10005800
add esp, 0x20
mov byte [ebp - 4], 0xb
jmp 0x1003200d
cmp ecx, 2
jne 0x1003206d
mov edx, dword [eax + edx + 0x20]
push ecx
lea ecx, [ebp - 0x94]
call fcn.10010ad0
add esp, 4
mov byte [ebp - 4], 0xc
cmp dword [eax + 0x14], 0x10
jb 0x10031f7c
mov eax, dword [eax]
movaps xmm0, xmmword [0x10049440]
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 0x10031f90
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 0x10031fcc
mov eax, dword [edx]
jmp 0x10031fce
mov eax, edx
mov byte [eax], 0
cmp byte [ebp - 0x33], 0
jne 0x10031fdb
xor ecx, ecx
jmp 0x10031fee
lea ecx, [ebp - 0x33]
lea eax, [ecx + 1]
mov dword [ebp - 0x58], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10031fe4
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.10005800
add esp, 0x20
mov byte [ebp - 4], 0xd
mov ecx, dword [edi + 0xdc]
mov edx, eax
mov ecx, dword [esi + ecx + 4]
call fcn.100123c0
mov eax, dword [ebp - 0x98]
cmp eax, 0x10
jb 0x10032036
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 0x1003206a
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.10010ad0
add esp, 4
mov byte [ebp - 4], 0xe
cmp dword [eax + 0x14], 0x10
jb 0x1003208f
mov eax, dword [eax]
movaps xmm0, xmmword [0x10049030]
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 0x100320a3
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 0x100320df
mov eax, dword [edx]
jmp 0x100320e1
mov eax, edx
mov byte [eax], 0
cmp byte [ebp - 0x33], 0
jne 0x100320ee
xor ecx, ecx
jmp 0x10032101
lea ecx, [ebp - 0x33]
lea eax, [ecx + 1]
mov dword [ebp - 0x58], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100320f7
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.10005800
add esp, 0x20
mov byte [ebp - 4], 0xf
mov edx, eax
mov ecx, dword [edi + 0xdc]
mov ecx, dword [esi + ecx + 8]
call fcn.100123c0
mov eax, dword [ebp - 0x98]
cmp eax, 0x10
jb 0x10032149
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 0x1003217d
inc eax
push eax
push dword [ebp - 0x94]
call fcn.100026c0
mov edx, dword [0x100536fc]
mov dword [ebp - 0x80], 0xf
mov dword [ebp - 0x84], 0
mov byte [ebp - 0x94], 0
test edx, edx
je 0x10032253
mov ecx, dword [ebp - 0x5c]
add ecx, dword [ebp - 0x20]
mov edi, dword [ebp - 0x70]
mov eax, dword [ecx + 0x24]
cmp eax, 1
jne 0x100321bf
mov eax, dword [edx + 0x44]
cmp eax, dword [ecx + 0x20]
jb 0x100321d4
mov eax, dword [ecx + 0x24]
cmp eax, 2
jne 0x10032253
mov eax, dword [edx + 0x48]
cmp eax, dword [ecx + 0x20]
jae 0x10032253
mov eax, dword [edi + 0xdc]
mov eax, dword [esi + eax + 4]
mov dword [ebp - 0x58], eax
test eax, eax
je 0x10032200
push 4
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10032200
mov ecx, dword [ebp - 0x58]
push 0xffff0000
call dword [0x1004756c]
mov eax, dword [edi + 0xdc]
mov eax, dword [esi + eax + 0xc]
mov dword [ebp - 0x58], eax
test eax, eax
je 0x10032229
push 4
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10032229
mov ecx, dword [ebp - 0x58]
push 7
call dword [0x1004753c]
mov eax, dword [edi + 0xdc]
mov esi, dword [esi + eax + 0x10]
test esi, esi
je 0x100322cd
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x100322cd
push 7
jmp 0x100322c5
mov eax, dword [edi + 0xdc]
mov eax, dword [esi + eax + 4]
mov dword [ebp - 0x58], eax
test eax, eax
je 0x1003227f
push 4
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1003227f
mov ecx, dword [ebp - 0x58]
push 0xfffff3ae
call dword [0x1004756c]
mov eax, dword [edi + 0xdc]
mov eax, dword [esi + eax + 0xc]
mov dword [ebp - 0x58], eax
test eax, eax
je 0x100322a8
push 4
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x100322a8
mov ecx, dword [ebp - 0x58]
push 2
call dword [0x1004753c]
mov eax, dword [edi + 0xdc]
mov esi, dword [esi + eax + 0x10]
test esi, esi
je 0x100322cd
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x100322cd
push 2
mov ecx, esi
call dword [0x1004753c]
mov edx, dword [ebp - 0x64]
mov esi, dword [edi + edx*4 + 0xac]
test esi, esi
je 0x100318ec
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x100318e9
push 1
jmp 0x100318e1