Function at 0x1002e4f0
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 0x101aa5da
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x70
mov eax, dword [0x10249010]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x58], 0
mov ecx, 0x1039ea84
mov dword [ebp - 4], 0
call fcn.100203b0
mov al, byte [eax]
test al, al
je 0x1002e7dd
mov eax, dword [0x1039dd24]
mov ecx, dword [0x1039dd28]
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x6c], ecx
cmp eax, ecx
je 0x1002e7dd
mov esi, dword [ebp - 0x58]
nop dword [eax]
cmp dword [eax + 0x14], 0x10
mov edx, eax
jb 0x1002e57a
mov edx, dword [eax]
mov eax, edx
lea edi, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1002e580
sub eax, edi
mov edi, 0x4fa38bcd
lea ecx, [eax + 1]
test ecx, ecx
je 0x1002e5a8
movsx eax, byte [edx]
lea edx, [edx + 1]
xor eax, edi
imul edi, eax, 0xf1546419
sub ecx, 1
jne 0x1002e595
lea eax, [ebp - 0x60]
mov dword [ebp - 0x60], edi
push eax
call fcn.1002e850
push 0x20
mov dword [ebp - 0x68], eax
call fcn.1015165a
add esp, 4
mov dword [ebp - 0x64], eax
mov byte [ebp - 4], 1
xorps xmm0, xmm0
push 0x20
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
call fcn.1015165a
movups xmm0, xmmword [str.C:Weave_assets.png]
mov dword [ebp - 0x2c], eax
add esp, 4
mov dword [ebp - 0x1c], 0x16
mov dword [ebp - 0x18], 0x1f
movups xmmword [eax], xmm0
mov ecx, dword [0x101fe0e0]
mov dword [eax + 0x10], ecx
mov cx, word [0x101fe0e4]
mov word [eax + 0x14], cx
mov byte [eax + 0x16], 0
mov edx, dword [ebp - 0x5c]
lea edi, [ebp - 0x2c]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x50]
or esi, 1
cmp dword [ebp - 0x18], 0x10
mov dword [ebp - 0x54], esi
cmovae edi, dword [ebp - 0x2c]
mov dword [ebp - 0x58], esi
mov esi, dword [ebp - 0x1c]
call fcn.1002e820
sub esp, 8
mov ecx, esp
push esi
mov dword [ecx], 1
mov dword [ecx + 4], eax
lea ecx, [ebp - 0x44]
push edi
call fcn.100202f0
add esp, 0x10
mov dword [ebp - 4], 3
lea ecx, [ebp - 0x78]
mov esi, dword [ebp - 0x54]
mov edx, eax
or esi, 2
mov dword [ebp - 0x58], esi
call fcn.100fbc00
mov dword [ebp - 4], 4
or esi, 4
mov ecx, dword [ebp - 0x64]
push eax
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x58], esi
call fcn.100fa620
mov ecx, dword [ebp - 0x68]
mov dword [ebp - 4], 6
mov dword [ecx], eax
mov eax, esi
test al, 4
je 0x1002e6f2
mov ecx, dword [ebp - 0x78]
and eax, 0xfffffffb
mov dword [ebp - 0x54], eax
test ecx, ecx
je 0x1002e6f2
mov edx, dword [ebp - 0x70]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x1002e6d0
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002e79f
push edx
push ecx
call fcn.101519a9
mov eax, dword [ebp - 0x54]
add esp, 8
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x70], 0
mov dword [ebp - 4], 5
test al, 2
je 0x1002e748
mov ecx, dword [ebp - 0x30]
and eax, 0xfffffffd
mov dword [ebp - 0x54], eax
cmp ecx, 0x10
jb 0x1002e736
mov edx, dword [ebp - 0x44]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1002e729
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002e79f
push ecx
push edx
call fcn.101519a9
mov eax, dword [ebp - 0x54]
add esp, 8
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
mov dword [ebp - 4], 0
test al, 1
je 0x1002e789
mov ecx, dword [ebp - 0x18]
and eax, 0xfffffffe
mov dword [ebp - 0x54], eax
cmp ecx, 0x10
jb 0x1002e789
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1002e77f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002e79f
push ecx
push edx
call fcn.101519a9
add esp, 8
mov eax, dword [ebp - 0x5c]
add eax, 0x18
mov dword [ebp - 0x5c], eax
cmp eax, dword [ebp - 0x6c]
je 0x1002e7a5
mov esi, dword [ebp - 0x54]
jmp 0x1002e570
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
mov ecx, dword [0x1039dd28]
mov eax, dword [0x1039dd24]
cmp eax, ecx
je 0x1002e7dd
push ecx
mov edx, ecx
mov ecx, eax
call fcn.10018690
mov ecx, dword [ebx + 0x2c]
add esp, 4
mov eax, dword [0x1039dd24]
mov dword [0x1039dd28], eax
test ecx, ecx
jne 0x1002e7d8
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xbad_function_call_void_]
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, dword [ebx + 0x2c]
test ecx, ecx
je 0x1002e7f5
mov edx, dword [ecx]
lea eax, [ebx + 8]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
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.1015164c
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret