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

Disassembly:
sub esp, 0x160
mov eax, dword [0x100a1040]
xor eax, esp
mov dword [esp + 0x15c], eax
mov eax, dword [esp + 0x16c]
push ebx
mov ebx, dword [esp + 0x174]
push ebp
mov ebp, dword [esp + 0x16c]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x170]
push esi
mov esi, dword [esp + 0x180]
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x14], ebp
mov dword [esp + 0xc], esi
mov dword [esp + 0x60], 0
mov dword [esp + 0x28], 0
push edi
test eax, eax
je 0x10013b69
cmp eax, 7
je 0x10013b69
cmp eax, 6
je 0x10013b69
cmp dword [ebp + 0x14], 0
jne 0x10013b69
mov eax, dword [ebp + 4]
xor edi, edi
jmp 0x10013b70
mov edi, 1
mov eax, ebx
push eax
push esi
push ebp
call fcn.10013560
add esp, 0xc
test eax, eax
jne 0x10014418
mov esi, dword [esi + 0xc]
xor ecx, ecx
test esi, esi
jle 0x10013bd9
mov edx, dword [esp + 0x10]
mov ebp, dword [esp + 0x24]
add edx, 0x10
nop word [eax + eax]
movq xmm0, qword [edx + 0x10]
mov eax, dword [edx]
movq qword [esp + 0x78], xmm0
test eax, eax
je 0x10013bc0
cmp eax, 1
je 0x10013bc0
cmp eax, 3
jne 0x10013bcd
nop dword [eax + eax]
mov eax, dword [ebp]
mov eax, dword [eax + ecx*4]
mov dword [esp + ecx*4 + 0x8c], eax
inc ecx
add edx, 0x18
cmp ecx, esi
jl 0x10013ba0
mov ebp, dword [esp + 0x18]
test edi, edi
jne 0x10013be0
mov ebx, dword [ebp + 4]
mov esi, dword [esp + 0x28]
lea eax, [esp + 0x64]
push eax
lea eax, [esp + 0x30]
push eax
push ebx
mov ebx, dword [esp + 0x30]
lea eax, [esp + 0x98]
push eax
push dword [esp + 0x20]
push ebx
push esi
push ebp
call fcn.10014d20
add esp, 0x20
test eax, eax
jne 0x10014418
push dword [esp + 0x10]
lea eax, [esp + 0x90]
push edi
push dword [esi]
mov edi, dword [esp + 0x24]
push dword [ebx]
push eax
push dword [edi + 0x58]
call fcn.10023ee0
mov ecx, dword [esp + 0x28]
xor ebp, ebp
add esp, 0x18
cmp dword [ecx + 0xc], ebp
jle 0x10013cfe
lea ebx, [ecx + 0x18]
nop dword [eax]
nop dword [eax + eax]
movups xmm1, xmmword [ebx - 8]
movq xmm0, qword [ebx + 8]
movd eax, xmm1
movups xmmword [esp + 0x68], xmm1
movq qword [esp + 0x78], xmm0
test eax, eax
je 0x10013c76
cmp eax, 1
je 0x10013c76
cmp eax, 3
jne 0x10013cf1
push dword [ebx]
mov eax, dword [esp + ebp*4 + 0x90]
push dword [edi + 0x5c]
add eax, 0x7d0
push dword [edi + 0x24]
push eax
mov eax, dword [esi]
push dword [eax + ebp*4]
call fcn.10029bd0
mov edx, dword [esp + 0x84]
add esp, 0x14
mov dword [esp + ebp*4 + 0xac], 1
mov dword [esp + ebp*4 + 0xcc], 0
test edx, edx
jle 0x10013ced
shl edx, 2
lea edi, [esp + 0x12c]
lea edi, [edi + ebp*8]
mov ecx, edx
shr ecx, 2
lea esi, [esp + 0xec]
mov eax, 1
shr edx, 2
rep stosd dword es:[edi], eax
lea esi, [esi + ebp*8]
mov ecx, edx
mov edi, esi
mov esi, dword [esp + 0x28]
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
inc ebp
add ebx, 0x18
cmp ebp, dword [ecx + 0xc]
jl 0x10013c50
mov edx, dword [esp + 0x24]
or ebp, 0xffffffff
mov dword [esp + 0x14], ebp
mov eax, dword [edx]
mov dword [eax + 0x94], 0xffffffff
nop word [eax + eax]
xor ebx, ebx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x40], ebx
cmp dword [ecx + 0xc], ebx
jle 0x10014211
xor edx, edx
lea esi, [esp + 0x8c]
mov ebp, 0x40
mov dword [esp + 0x20], edx
lea eax, [ecx + 0x10]
sub ebp, esi
mov dword [esp + 0x60], eax
mov dword [esp + 0x5c], ebp
nop word [eax + eax]
movups xmm1, xmmword [eax]
movq xmm0, qword [eax + 0x10]
movd eax, xmm1
movups xmmword [esp + 0x68], xmm1
movq qword [esp + 0x78], xmm0
test eax, eax
je 0x10013d90
cmp eax, 1
je 0x10013d90
cmp eax, 3
jne 0x100141e9
nop dword [eax]
mov eax, dword [esp + 0x70]
jmp 0x10013da4
mov edi, dword [esp + 0x18]
cmp dword [esp + ebx*4 + 0xac], 0
jne 0x10013ee6
lea ecx, [esp + 0x8c]
mov esi, dword [ecx + ebx*4]
lea ecx, [ecx + ebx*4]
lea eax, [ecx + ebp]
mov ebp, dword [eax + edi - 0xc]
mov eax, dword [esp + 0x28]
mov eax, dword [eax]
mov eax, dword [eax + ebx*4]
mov dword [esp + 0x30], eax
mov eax, dword [edi + 0x20]
cmp dword [esp + ebx*4 + 0xcc], eax
jge 0x10013e3b
mov ebp, dword [esp + 0x70]
xor eax, eax
test ebp, ebp
jle 0x10013edb
lea edi, [esi + 0x7d0]
lea esi, [esp + 0xec]
lea esi, [esi + ebx*8]
nop dword [eax]
cmp dword [esi], 0
jne 0x10013e2b
mov edx, dword [edi]
xor ecx, ecx
cmp dword [esp + 0x14], ecx
setne cl
lea ecx, [ecx*2 - 1]
add dword [edx + 0x19e0], ecx
lea ecx, [eax + ebx*2]
mov dword [esp + ecx*4 + 0x12c], 1
inc eax
add esi, 4
add edi, 4
cmp eax, ebp
jl 0x10013e00
jmp 0x10013ed7
jne 0x1001440f
mov edx, dword [esi + 4]
test edx, edx
je 0x1001440f
mov edi, edx
sub edx, dword [esi + 0x1c]
sub edi, dword [ebp + 4]
add edi, dword [esi]
sub edx, dword [ebp + 8]
mov ebp, dword [esp + 0x70]
lea eax, [edi + 8]
lea ecx, [edx + 8]
cmp ecx, eax
cmovg edi, edx
add edi, 8
test edi, edi
jle 0x10013e9b
push dword [esp + 0x190]
mov eax, dword [esp + 0x28]
push dword [esp + 0x190]
push dword [esp + 0x190]
push edi
push esi
push dword [eax]
push dword [esp + 0x48]
push ebp
call fcn.10014720
add esp, 0x20
jmp 0x10013ec0
test ebp, ebp
jle 0x10013ed7
lea ecx, [esi + 0x7d0]
mov edx, ebp
nop word [eax + eax]
mov eax, dword [ecx]
lea ecx, [ecx + 4]
inc dword [eax + 0x19e0]
sub edx, 1
jne 0x10013eb0
test ebp, ebp
jle 0x10013ed7
lea edi, [esp + 0x12c]
mov ecx, ebp
mov eax, 1
lea edi, [edi + ebx*8]
rep stosd dword es:[edi], eax
mov edx, dword [esp + 0x20]
inc dword [esp + ebx*4 + 0xcc]
mov eax, dword [esp + 0x70]
xor edi, edi
mov dword [esp + ebx*4 + 0xac], 1
test eax, eax
jle 0x100140d9
lea ecx, [esp + 0xec]
add ecx, edx
lea ebp, [esp + 0x12c]
add ebp, edx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], ebp
nop word [eax + eax]
cmp dword [ebp + edi*4], 0
mov dword [ecx + edi*4], 1
je 0x100140d0
mov eax, dword [esp + ebx*4 + 0x8c]
mov dword [ebp + edi*4], 0
mov edx, dword [eax + edi*4 + 0x7d0]
mov eax, dword [esp + 0x28]
mov dword [esp + 0x44], edx
mov eax, dword [eax]
mov eax, dword [eax + ebx*4]
mov esi, dword [eax + edi*4]
mov eax, dword [esp + 0x18]
lea ecx, [esi + 0x18]
push dword [eax + 0x5c]
lea eax, [edx + 0x1000]
mov dword [esp + 0x38], ecx
push eax
lea eax, [edx + 0x18f0]
push eax
push dword [edx + 0x19e0]
push edx
push ecx
push dword [esi + 4]
push dword [esi + 8]
push dword [esi]
call fcn.10023180
mov eax, dword [esi + 8]
xor edx, edx
mov ecx, dword [esi + 4]
add esp, 0x24
mov dword [esp + 0x54], eax
xor ebp, ebp
mov eax, dword [esi]
mov dword [esp + 0x84], ecx
mov dword [esp + 0x88], eax
mov dword [esp + 0x58], edx
test eax, eax
jle 0x100140c0
mov eax, dword [esp + 0x44]
lea ebx, [ecx*4]
mov ecx, dword [esp + 0x34]
add eax, 0x1800
mov esi, dword [esp + 0x54]
mov dword [esp + 0x80], ebx
mov dword [esp + 0x30], eax
nop dword [eax]
test esi, esi
jle 0x10014061
mov edx, eax
mov dword [esp + 0x50], esi
mov ebx, ecx
mov dword [esp + 0x4c], edx
mov esi, dword [ebx + 4]
xor ecx, ecx
mov eax, dword [ebx]
cmp eax, esi
jge 0x10014032
mov edx, dword [esp + 0x44]
lea edx, [edx + eax*2]
add edx, 0x1000
sub esi, eax
mov dword [esp + 0x48], edx
nop
movsx eax, word [edx]
cdq
xor eax, edx
sub eax, edx
mov edx, dword [esp + 0x48]
cwde
cmp eax, ecx
cmovg ecx, eax
add edx, 2
mov dword [esp + 0x48], edx
sub esi, 1
jne 0x10014010
mov edx, dword [esp + 0x4c]
cmp ecx, ebp
mov dword [edx], ecx
cmovg ebp, ecx
add edx, 4
add ebx, 4
mov dword [esp + 0x4c], edx
sub dword [esp + 0x50], 1
jne 0x10013ff0
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x58]
mov ebx, dword [esp + 0x80]
mov esi, dword [esp + 0x54]
add edx, dword [esp + 0x84]
add ecx, ebx
add eax, ebx
mov dword [esp + 0x58], edx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x30], eax
cmp edx, dword [esp + 0x88]
jl 0x10013fe0
mov edx, dword [esp + 0x20]
cmp ebp, 0x1fff
mov ebx, dword [esp + 0x40]
mov ecx, dword [esp + 0x38]
mov ebp, dword [esp + 0x3c]
jle 0x100140cc
lea eax, [edx + edi*4]
mov dword [esp + ebx*4 + 0xac], 0
mov dword [esp + eax + 0xec], 0
mov dword [esp + 0x14], 1
jmp 0x100140cc
mov ecx, dword [esp + 0x38]
mov ebp, dword [esp + 0x3c]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x70]
inc edi
cmp edi, eax
jl 0x10013f20
cmp dword [esp + ebx*4 + 0xac], 0
mov ebp, dword [esp + 0x5c]
je 0x10013da0
mov eax, dword [esp + ebx*4 + 0x8c]
xor esi, esi
mov edi, dword [esp + 0x70]
mov dword [eax + 4], 0
test edi, edi
jle 0x1001418f
nop word [eax + eax]
mov eax, dword [esp + ebx*4 + 0x8c]
push dword [esp + 0x18c]
mov edx, dword [eax + esi*4 + 0x7d0]
mov eax, dword [esp + 0x2c]
mov eax, dword [eax]
mov eax, dword [eax + ebx*4]
mov ecx, dword [eax + esi*4]
lea eax, [ecx + 0x740]
push eax
lea eax, [ecx + 0x650]
push eax
lea eax, [ecx + 0x560]
push eax
lea eax, [edx + 0x19e4]
push eax
lea eax, [ecx + 0x18]
push eax
push dword [ecx + 4]
lea eax, [edx + 0x18f0]
push dword [ecx + 8]
push dword [ecx]
push dword [ecx + 0xc]
push eax
lea eax, [edx + 0x1800]
push eax
lea eax, [edx + 0x1000]
push eax
mov eax, dword [esp + 0x4c]
push dword [eax + 0x54]
call fcn.10022310
mov ecx, dword [esp + ebx*4 + 0xc4]
inc esi
add esp, 0x38
add dword [ecx + 4], eax
cmp esi, edi
jl 0x10014110
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 0x58]
mov ecx, dword [eax + ebx*4 + 0x40]
cmp dword [ecx + 0x38], 0xffffffff
jne 0x100141ad
mov eax, dword [esp + ebx*4 + 0x8c]
mov eax, dword [eax + 4]
mov dword [ecx + 0x38], eax
mov ecx, dword [esp + ebx*4 + 0x8c]
imul eax, edi, 0x1800
sub eax, dword [ecx + 8]
sub eax, dword [ecx]
cmp dword [ecx + 4], eax
jle 0x100141cf
mov dword [esp + ebx*4 + 0xac], 0
cmp dword [esp + ebx*4 + 0xac], 0
mov edx, dword [esp + 0x20]
mov edi, dword [esp + 0x18]
je 0x10013d90
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x60]
inc ebx
add eax, 0x18
mov dword [esp + 0x40], ebx
add edx, 8
mov dword [esp + 0x60], eax
mov dword [esp + 0x20], edx
cmp ebx, dword [ecx + 0xc]
jl 0x10013d60
mov ebp, dword [esp + 0x14]
mov edx, dword [esp + 0x24]
mov esi, dword [edx]
xor ecx, ecx
mov ebx, dword [esp + 0x10]
mov dword [esi + 0x94], 0
cmp dword [ebx + 0xc], ecx
jle 0x10014268
lea edx, [ebx + 0x10]
nop dword [eax + eax]
movq xmm0, qword [edx + 0x10]
mov eax, dword [edx]
movq qword [esp + 0x78], xmm0
test eax, eax
je 0x1001424b
cmp eax, 1
je 0x1001424b
cmp eax, 3
jne 0x1001425b
mov eax, dword [esp + ecx*4 + 0x8c]
mov eax, dword [eax + 4]
add dword [esi + 0x94], eax
inc ecx
add edx, 0x18
cmp ecx, dword [ebx + 0xc]
jl 0x10014230
mov edx, dword [esp + 0x24]
xor esi, esi
xor ecx, ecx
nop dword [eax]
mov eax, dword [edx + ecx*4]
mov eax, dword [eax + 0x94]
cmp eax, 0xffffffff
je 0x100142dd
inc ecx
add esi, eax
cmp ecx, 1
jl 0x10014270
mov dword [esp + 0x14], esi
mov ebx, esi
cmp esi, 0xffffffff
je 0x100142e4
push 1
push dword [edi]
lea eax, [esp + 0x94]
push dword [esp + 0x18]
push eax
push edx
call fcn.10014c70
mov edx, dword [esp + 0x40]
add esp, 0x14
cmp eax, edx
jl 0x100142b6
test esi, esi
jne 0x100142c9
mov ecx, dword [esp + 0x1c]
cmp ebp, 1
mov ebx, 1
cmove ecx, ebx
mov dword [esp + 0x1c], ecx
mov ebx, esi
mov dword [esp + 0x14], ebx
cmp eax, edx
jle 0x100142ec
mov dword [esp + 0x14], ebx
test ebp, ebp
jne 0x100142ec
jmp 0x100142e0
or ebx, 0xffffffff
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], 0
mov eax, dword [esp + 0x10]
xor edx, edx
mov edi, 1
mov ebp, dword [eax + 0xc]
test ebp, ebp
jle 0x10014348
mov ebx, dword [esp + 0x18]
lea esi, [eax + 0x10]
nop word [eax + eax]
movq xmm0, qword [esi + 0x10]
mov eax, dword [esi]
movq qword [esp + 0x78], xmm0
test eax, eax
je 0x1001432b
cmp eax, 1
je 0x1001432b
cmp eax, 3
jne 0x1001433c
mov eax, dword [esp + edx*4 + 0xcc]
xor ecx, ecx
cmp eax, dword [ebx + 0x20]
setge cl
and edi, ecx
inc edx
add esi, 0x18
cmp edx, ebp
jl 0x10014310
mov ebx, dword [esp + 0x14]
cmp dword [esp + 0x1c], 0
mov ecx, dword [esp + 0x24]
mov eax, dword [ecx]
mov esi, dword [eax + 0x94]
mov ebp, dword [eax + 0x74]
je 0x10014366
cmp esi, ebp
jle 0x10014416
mov eax, dword [esp + 0x18]
push 1
push dword [eax]
lea eax, [esp + 0x94]
push dword [esp + 0x18]
push eax
push ecx
call fcn.10014c70
add esp, 0x14
cmp ebx, dword [esp + 0x64]
jge 0x1001438d
test ebx, ebx
jne 0x10014394
mov ecx, 1
jmp 0x10014398
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x2c]
test edi, edi
je 0x100143aa
cmp eax, edx
mov ebx, 1
cmovl ecx, ebx
xor edi, edi
cmp eax, edx
cmovg ecx, edi
xor ebx, ebx
cmp eax, edx
mov dword [esp + 0x1c], ecx
setge bl
mov dword [esp + 0x14], ebx
cmp esi, ebp
jle 0x100143d3
mov ebp, 1
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], ebp
jmp 0x100143d7
mov ebp, dword [esp + 0x14]
lea eax, [esp + 0xac]
push 0x20
push eax
call fcn.10005890
lea eax, [esp + 0xf4]
push 0x40
push eax
call fcn.10005890
add esp, 0x10
cmp dword [esp + 0x1c], edi
jne 0x10014416
mov edi, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x10]
jmp 0x10013d20
mov eax, 0x4020
jmp 0x10014418
xor eax, eax
mov ecx, dword [esp + 0x16c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1003b025
add esp, 0x160
ret