Function at 0x101eb500
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x54
mov eax, dword [0x10291440]
xor eax, esp
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x58]
push ebx
mov ebx, ecx
mov dword [esp + 0x28], eax
mov edx, dword [ebx + 0xd0]
mov ecx, edx
mov eax, dword [esp + 0x60]
push ebp
mov ebp, dword [esp + 0x68]
push esi
mov esi, dword [ebx + 0xcc]
sub ecx, esi
push edi
lea edi, [ebx + 0xcc]
sar ecx, 3
mov dword [esp + 0x14], ebx
mov dword [esp + 0x24], eax
cmp ecx, ebp
jae 0x101eb5db
mov eax, dword [edi + 8]
sub eax, esi
sar eax, 3
cmp ebp, eax
jbe 0x101eb568
lea eax, [esp + 0x2f]
mov ecx, edi
push eax
push ebp
call fcn.101eb370
jmp 0x101eb57a
mov eax, ebp
push edi
sub eax, ecx
push eax
push edx
call fcn.101eb4d0
add esp, 0xc
mov dword [edi + 4], eax
mov edi, dword [ebx + 0xd8]
lea ecx, [ebp*2]
add ecx, ebp
lea esi, [ebx + 0xd8]
mov ebp, dword [esi + 4]
add ecx, ecx
mov edx, ebp
sub edx, edi
sar edx, 3
cmp ecx, edx
jae 0x101eb5a4
lea eax, [edi + ecx*8]
jmp 0x101eb5ce
jbe 0x101eb5d1
mov eax, dword [esi + 8]
sub eax, edi
sar eax, 3
cmp ecx, eax
jbe 0x101eb5c1
lea eax, [esp + 0x2f]
push eax
push ecx
mov ecx, esi
call fcn.101eb240
jmp 0x101eb5d1
push esi
sub ecx, edx
push ecx
push ebp
call fcn.101eb4a0
add esp, 0xc
mov dword [esi + 4], eax
mov eax, dword [esp + 0x24]
lea edi, [ebx + 0xcc]
xor ebp, ebp
mov dword [esp + 0x10], 0
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x18], 1
cmp dword [esp + 0x70], ebp
jbe 0x101eb9b7
nop dword [eax + eax]
mov ecx, dword [eax + ebp*4]
mov eax, dword [ebx + 0x78]
mov eax, dword [eax + ecx*4]
mov dword [esp + 0x28], eax
test eax, eax
js 0x101eb625
mov ecx, dword [ebx + 0x84]
mov edx, eax
add edx, edx
cmp dword [ecx + edx*8], 0
jge 0x101eb6d9
mov ecx, dword [edi]
mov edx, eax
xor esi, esi
lea ecx, [ecx + ebp*8]
mov dword [esp + 0x20], ecx
test edx, edx
js 0x101eb676
cmp eax, edx
jne 0x101eb63e
test esi, esi
jne 0x101eb676
mov edi, dword [ebx + 0x84]
mov ecx, edx
mov eax, dword [esp + 0x18]
add ecx, ecx
mov ebp, dword [esp + 0x24]
mov ebx, dword [ebp + eax*4]
cmp dword [edi + ecx*8 + 4], ebx
mov eax, dword [esp + 0x28]
mov ebx, dword [esp + 0x14]
mov ebp, dword [esp + 0x1c]
je 0x101eb67c
xor edx, 1
add edx, edx
mov edx, dword [edi + edx*8 + 8]
cmp edx, eax
jne 0x101eb632
inc esi
jmp 0x101eb632
mov edx, dword [0x10291268]
mov eax, dword [esp + 0x20]
lea edi, [ebx + 0xcc]
mov dword [eax], edx
mov eax, dword [edi]
lea ecx, [eax + ebp*8]
mov eax, dword [ecx]
shr eax, 0x1f
mov byte [ecx + 4], al
mov eax, dword [edi]
mov byte [eax + ebp*8 + 5], 0
mov eax, dword [edi]
cmp byte [eax + ebp*8 + 4], 0
jne 0x101eb6b6
mov ecx, dword [eax + ebp*8]
mov eax, dword [ebx + 0x84]
add ecx, ecx
cmp dword [eax + ecx*8], 0
jge 0x101eb710
mov eax, dword [esp + 0x18]
xor edx, edx
inc eax
inc ebp
div dword [esp + 0x70]
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x18], edx
cmp ebp, dword [esp + 0x70]
jae 0x101eb72d
mov eax, dword [esp + 0x24]
jmp 0x101eb600
push str.PolyMeshT::add_face:_complex_vertex_n
call fcn.101eac20
push eax
call fcn.10007cd6
mov eax, dword [esp + 0x3c]
add esp, 8
mov ecx, dword [0x10291270]
pop edi
pop esi
mov dword [eax], ebx
pop ebp
mov dword [eax + 4], ecx
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.1021eb98
add esp, 0x54
ret 0xc
push str.PolyMeshT::add_face:_complex_edge_n
call fcn.101eac20
push eax
call fcn.10007cd6
mov eax, dword [0x10291270]
add esp, 8
jmp 0x101ebc66
mov esi, dword [esp + 0x70]
xor ebp, ebp
mov edi, 1
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x18], edi
mov eax, dword [ebx + 0xcc]
cmp byte [eax + ebp*8 + 4], 0
jne 0x101eb833
cmp byte [eax + edi*8 + 4], 0
jne 0x101eb833
mov edx, dword [eax + edi*8]
mov ecx, dword [eax + ebp*8]
mov eax, ecx
mov esi, dword [ebx + 0x84]
add eax, eax
mov dword [esp + 0x20], esi
cmp dword [esi + eax*8 + 8], edx
je 0x101eb82f
mov eax, edx
mov ebx, esi
xor eax, 1
add eax, eax
mov eax, dword [ebx + eax*8 + 8]
xor eax, 1
mov esi, eax
mov edi, eax
add esi, esi
sar edi, 1
mov ebp, eax
and ebp, 1
cmp dword [ebx + esi*8], 0
jge 0x101eb781
mov ebx, dword [esp + 0x14]
lea esi, [edi*2]
add esi, ebp
add esi, esi
mov ebp, dword [ebx + 0x84]
mov esi, dword [ebp + esi*8 + 8]
mov dword [esp + 0x20], esi
cmp eax, ecx
je 0x101eb8b7
mov edi, ecx
mov esi, ecx
and esi, 1
sar edi, 1
lea esi, [esi + edi*2]
add esi, esi
mov edi, dword [ebp + esi*8 + 8]
mov esi, edx
add esi, esi
mov ebp, dword [ebp + esi*8 + 0xc]
mov esi, dword [ebx + 0xd8]
mov ebx, dword [esp + 0x10]
mov dword [esi + ebx*8], eax
mov dword [esi + ebx*8 + 4], edi
mov edi, dword [esp + 0x20]
lea esi, [esi + ebx*8]
inc ebx
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
mov eax, dword [ebx + 0xd8]
mov dword [eax + esi*8], ebp
mov ebp, dword [esp + 0x1c]
mov dword [eax + esi*8 + 4], edi
mov edi, dword [esp + 0x18]
lea eax, [eax + esi*8]
mov eax, dword [ebx + 0xd8]
inc esi
mov dword [eax + esi*8], ecx
mov dword [eax + esi*8 + 4], edx
lea eax, [eax + esi*8]
inc esi
mov dword [esp + 0x10], esi
mov esi, dword [esp + 0x70]
lea eax, [edi + 1]
xor edx, edx
div esi
inc ebp
mov dword [esp + 0x1c], ebp
mov edi, edx
mov dword [esp + 0x18], edi
cmp ebp, esi
jb 0x101eb740
movups xmm0, xmmword [0x10275170]
mov edx, 1
xor ecx, ecx
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], ecx
nop dword [eax]
nop word [eax + eax]
mov eax, dword [ebx + 0xcc]
cmp byte [eax + ecx*8 + 4], 0
lea eax, [eax + ecx*8]
mov dword [esp + 0x30], eax
je 0x101eb99d
mov eax, dword [esp + 0x24]
movups xmmword [esp + 0x40], xmm0
movups xmmword [esp + 0x50], xmm0
mov edi, dword [eax + ecx*4]
lea ecx, [ebx + 0x84]
mov esi, dword [eax + edx*4]
mov eax, dword [ecx + 4]
cmp eax, dword [ecx + 8]
je 0x101eb8c1
movups xmmword [eax], xmm0
movups xmmword [eax + 0x10], xmm0
add dword [ecx + 4], 0x20
jmp 0x101eb8cc
push str.PolyMeshT::add_face:_patch_re_linking_failed_n
jmp 0x101eb715
lea edx, [esp + 0x40]
push edx
push eax
call fcn.101b2130
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0xc]
mov ebp, dword [ebx + 0x28]
mov dword [esp + 0x20], eax
mov eax, dword [ebx + 0x2c]
mov dword [esp + 0x28], eax
cmp ebp, eax
je 0x101eb90c
mov ebx, dword [esp + 0x20]
nop dword [eax]
mov ecx, dword [ebp]
test ecx, ecx
je 0x101eb901
mov eax, dword [ecx]
push ebx
call dword [eax + 8]
mov eax, dword [esp + 0x28]
add ebp, 4
cmp ebp, eax
jne 0x101eb8f0
mov ebx, dword [esp + 0x14]
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 8]
mov ebp, dword [ebx + 0x18]
mov dword [esp + 0x20], eax
mov eax, dword [ebx + 0x1c]
mov dword [esp + 0x28], eax
cmp ebp, eax
je 0x101eb94c
mov ebx, dword [esp + 0x20]
nop dword [eax]
mov ecx, dword [ebp]
test ecx, ecx
je 0x101eb941
mov eax, dword [ecx]
push ebx
call dword [eax + 8]
mov eax, dword [esp + 0x28]
add ebp, 4
cmp ebp, eax
jne 0x101eb930
mov ebx, dword [esp + 0x14]
mov eax, dword [ebx + 0x88]
mov ecx, ebx
sub eax, 0x20
push eax
lea eax, [esp + 0x40]
push eax
call fcn.101b20d0
mov ecx, dword [esp + 0x3c]
mov edx, dword [ebx + 0x84]
movups xmm0, xmmword [0x10275170]
lea eax, [ecx + ecx]
mov ebp, eax
add ebp, ebp
shl ecx, 5
mov dword [edx + ebp*8 + 4], esi
mov edx, dword [ebx + 0x84]
mov esi, dword [esp + 0x70]
mov dword [ecx + edx + 0x14], edi
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x18]
mov dword [ecx], eax
mov ecx, dword [esp + 0x1c]
lea eax, [edx + 1]
inc ecx
xor edx, edx
mov dword [esp + 0x1c], ecx
div esi
mov dword [esp + 0x18], edx
cmp ecx, esi
jb 0x101eb870
jmp 0x101eb9bb
mov esi, dword [esp + 0x70]
lea eax, [esp + 0x38]
mov ecx, ebx
push eax
call fcn.101b22f0
mov eax, dword [ebx + 0xcc]
mov edx, dword [ebx + 0x90]
mov ecx, dword [eax + esi*8 - 8]
mov eax, dword [esp + 0x38]
mov dword [edx + eax*4], ecx
xor ecx, ecx
mov dword [esp + 0x18], ecx
mov edx, 1
mov dword [esp + 0x28], edx
test esi, esi
je 0x101ebbb8
nop word [eax + eax]
mov eax, dword [esp + 0x24]
lea ebp, [ecx*8]
mov dword [esp + 0x20], ebp
mov esi, dword [eax + edx*4]
mov eax, dword [ebx + 0xcc]
mov edi, dword [eax + ebp]
lea ecx, [eax + edx*8]
mov edx, dword [ecx]
mov dword [esp + 0x1c], ecx
xor ecx, ecx
cmp byte [eax + ebp + 4], cl
mov eax, dword [esp + 0x1c]
setne cl
mov ebp, ecx
or ebp, 2
cmp byte [eax + 4], 0
cmove ebp, ecx
test ebp, ebp
je 0x101ebb6a
mov ecx, edx
mov eax, edi
xor ecx, 1
xor eax, 1
sub ebp, 1
je 0x101ebb11
sub ebp, 1
je 0x101ebaea
sub ebp, 1
jne 0x101ebb4f
mov ebp, dword [ebx + 0x78]
lea ebp, [ebp + esi*4]
mov esi, dword [ebp]
test esi, esi
jns 0x101eba95
mov dword [ebp], eax
mov esi, dword [ebx + 0xd8]
mov ebp, dword [esp + 0x10]
mov dword [esi + ebp*8], ecx
mov dword [esi + ebp*8 + 4], eax
lea esi, [esi + ebp*8]
inc ebp
jmp 0x101ebb53
mov ebp, dword [ebx + 0xd8]
mov ebx, dword [esp + 0x10]
inc dword [esp + 0x10]
lea ebp, [ebp + ebx*8]
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x3c], ebp
mov ebp, esi
shl ebp, 4
mov dword [esp + 0x30], ebp
mov ebp, dword [ebx + 0x84]
mov ebx, dword [esp + 0x30]
mov ebp, dword [ebx + ebp + 0xc]
mov ebx, dword [esp + 0x3c]
mov dword [ebx], ebp
mov ebp, dword [esp + 0x10]
mov dword [ebx + 4], eax
mov ebx, dword [esp + 0x14]
mov eax, dword [ebx + 0xd8]
mov dword [eax + ebp*8], ecx
mov dword [eax + ebp*8 + 4], esi
lea eax, [eax + ebp*8]
inc ebp
jmp 0x101ebb53
mov eax, dword [ebx + 0x84]
mov ebp, edi
add ebp, ebp
mov eax, dword [eax + ebp*8 + 8]
mov ebp, dword [ebx + 0xd8]
mov ebx, dword [esp + 0x10]
lea ebp, [ebp + ebx*8]
inc ebx
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x14]
jmp 0x101ebb43
mov ebp, dword [esp + 0x10]
mov ecx, dword [ebx + 0xd8]
lea ecx, [ecx + ebp*8]
inc ebp
mov dword [esp + 0x30], ecx
mov ecx, edx
mov dword [esp + 0x10], ebp
and ecx, 1
mov ebp, edx
sar ebp, 1
lea ebp, [ecx + ebp*2]
mov ecx, dword [ebx + 0x84]
add ebp, ebp
mov ecx, dword [ecx + ebp*8 + 0xc]
mov ebp, dword [esp + 0x30]
mov dword [ebp], ecx
mov dword [ebp + 4], eax
mov ecx, dword [ebx + 0x78]
mov dword [ecx + esi*4], eax
mov ebp, dword [esp + 0x10]
mov eax, dword [ebx + 0xd8]
mov dword [eax + ebp*8], edi
mov dword [eax + ebp*8 + 4], edx
lea eax, [eax + ebp*8]
inc ebp
mov dword [esp + 0x10], ebp
jmp 0x101ebb7a
mov eax, dword [ebx + 0x78]
mov ecx, dword [esp + 0x1c]
cmp dword [eax + esi*4], edx
sete al
mov byte [ecx + 5], al
mov eax, dword [ebx + 0xcc]
mov edx, dword [esp + 0x20]
mov ecx, dword [ebx + 0x84]
mov edx, dword [edx + eax]
mov eax, dword [esp + 0x38]
add edx, edx
mov dword [ecx + edx*8], eax
xor edx, edx
mov eax, dword [esp + 0x28]
inc eax
mov ecx, dword [esp + 0x18]
div dword [esp + 0x70]
inc ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x28], edx
cmp ecx, dword [esp + 0x70]
jb 0x101eba00
mov ebp, dword [esp + 0x10]
xor edi, edi
test ebp, ebp
je 0x101ebbee
mov eax, dword [ebx + 0xd8]
mov edx, dword [eax + edi*8]
mov ecx, edx
mov esi, dword [eax + edi*8 + 4]
add ecx, ecx
mov eax, dword [ebx + 0x84]
inc edi
mov dword [eax + ecx*8 + 8], esi
add esi, esi
mov eax, dword [ebx + 0x84]
mov dword [eax + esi*8 + 0xc], edx
cmp edi, ebp
jb 0x101ebbc2
xor ebp, ebp
mov dword [esp + 0x14], ebp
cmp dword [esp + 0x70], ebp
jbe 0x101ebc62
nop word [eax + eax]
mov eax, dword [ebx + 0xcc]
cmp byte [eax + ebp*8 + 5], 0
je 0x101ebc57
mov eax, dword [esp + 0x24]
xor edi, edi
mov ecx, dword [ebx + 0x78]
mov edx, dword [eax + ebp*4]
mov ecx, dword [ecx + edx*4]
mov eax, ecx
nop
test eax, eax
js 0x101ebc53
cmp ecx, eax
jne 0x101ebc2c
test edi, edi
jne 0x101ebc53
mov ebp, dword [ebx + 0x84]
mov esi, eax
add esi, esi
cmp dword [ebp + esi*8], 0
jl 0x101ebc4d
xor eax, 1
add eax, eax
mov eax, dword [ebp + eax*8 + 8]
cmp eax, ecx
jne 0x101ebc20
inc edi
jmp 0x101ebc20
mov ecx, dword [ebx + 0x78]
mov dword [ecx + edx*4], eax
mov ebp, dword [esp + 0x14]
inc ebp
mov dword [esp + 0x14], ebp
cmp ebp, dword [esp + 0x70]
jb 0x101ebc00
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
pop edi
pop esi
pop ebp
mov dword [ecx], ebx
mov dword [ecx + 4], eax
mov eax, ecx
mov ecx, dword [esp + 0x54]
pop ebx
xor ecx, esp
call fcn.1021eb98
add esp, 0x54
ret 0xc