Function at 0x1013bef0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x260
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
cmp esi, eax
jae 0x1013bf22
mov byte [ecx + 8], 0x13
mov dword [ecx + 0x10], edx
mov dword [ecx + 0x14], 0
mov dword [ecx], 0
jmp 0x1013c92f
add edx, eax
sub esi, eax
mov dword [esp + 0x34], 8
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x30], ecx
mov dword [esp + 0x48], 0
mov dword [esp + 0xc], edx
je 0x1013c6b8
pxor xmm0, xmm0
mov dword [esp + 0x14], eax
mov edi, dword [esp + 0xc]
mov dword [esp + 0x10], esi
xor eax, eax
xor ebx, ebx
xor esi, esi
xor ecx, ecx
nop word cs:[eax + eax]
nop
movzx edx, byte [edi + eax]
cmp ecx, 0x3f
mov dword [esp + 4], esi
mov dword [esp + 8], eax
jne 0x1013bf9a
cmp dl, 2
jae 0x1013c6ba
mov dh, dl
mov dword [esp + 0x24], ebx
xor ebx, ebx
mov esi, 0
and dh, 0x7f
movzx edi, dh
shld ebx, edi, cl
shl edi, cl
test cl, 0x20
cmovne ebx, edi
cmovne edi, esi
mov esi, dword [esp + 4]
or esi, ebx
mov ebx, dword [esp + 0x24]
or ebx, edi
test dl, dl
jns 0x1013bfe4
mov eax, dword [esp + 8]
add ecx, 7
mov edi, dword [esp + 0xc]
mov dh, dl
inc eax
cmp dword [esp + 0x10], eax
jne 0x1013bf80
jmp 0x1013c6cb
mov edx, dword [esp + 0x10]
mov ecx, ebx
or ecx, esi
je 0x1013c748
mov eax, dword [esp + 8]
lea ecx, [edx - 1]
cmp ecx, eax
je 0x1013c771
mov edi, dword [esp + 0xc]
mov dword [esp + 4], esi
mov esi, edx
mov dword [esp + 0x24], ebx
add esi, 0xfffffffe
movzx ecx, byte [edi + eax + 1]
mov edx, ecx
and edx, 0x7f
test cl, cl
js 0x1013c028
sub esi, eax
lea edi, [edi + eax + 2]
jmp 0x1013c096
cmp esi, eax
je 0x1013c937
mov ebx, dword [esp + 0xc]
mov eax, dword [esp + 8]
mov edi, edx
mov esi, dword [esp + 0x10]
movzx edi, di
movzx ecx, byte [ebx + eax + 2]
mov eax, dword [esp + 8]
add esi, 0xfffffffd
mov edx, ecx
and edx, 0x7f
shl edx, 7
or edi, edx
test cl, cl
mov edx, edi
lea edi, [ebx + eax + 3]
js 0x1013c065
sub esi, eax
jmp 0x1013c096
cmp esi, eax
je 0x1013c954
movzx ecx, byte [edi]
cmp cx, 3
ja 0x1013c961
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0xc]
movzx ebx, cx
movzx edx, dx
shl ebx, 0xe
or edx, ebx
sub esi, eax
lea edi, [edi + eax + 4]
add esi, 0xfffffffc
test dx, dx
je 0x1013c794
test esi, esi
je 0x1013c93f
movzx eax, byte [edi]
cmp al, 2
jae 0x1013c798
inc edi
dec esi
mov dword [esp + 0x6c], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x8c], 0
mov dword [esp + 0x88], 0
mov dword [esp + 0x90], 0
mov dword [esp + 0x9c], 0
mov dword [esp + 0x98], 0
mov dword [esp + 0xa0], 0
movdqa xmmword [esp + 0x50], xmm0
mov dword [esp + 0x60], 0
je 0x1013c79f
mov byte [esp + 0x2b], al
mov dword [esp + 8], eax
mov dword [esp + 0x4c], edx
movzx eax, byte [edi]
lea edx, [esi - 1]
lea ecx, [edi + 1]
mov ebx, eax
and ebx, 0x7f
test al, al
jns 0x1013c1b0
test edx, edx
je 0x1013c724
movzx eax, byte [edi + 1]
movzx ebx, bx
lea edx, [esi - 2]
mov ecx, eax
and ecx, 0x7f
shl ecx, 7
or ebx, ecx
test al, al
lea ecx, [edi + 2]
jns 0x1013c1b0
test edx, edx
je 0x1013c724
movzx eax, byte [ecx]
cmp ax, 3
ja 0x1013c7be
movzx eax, ax
add edi, 3
add esi, 0xfffffffd
movzx ebx, bx
shl eax, 0xe
mov ecx, edi
mov edx, esi
or ebx, eax
nop dword [eax + eax]
test bx, bx
je 0x1013c3ec
test edx, edx
je 0x1013c724
mov dword [esp + 0x20], ebx
movzx ebx, byte [ecx]
lea esi, [edx - 1]
lea edi, [ecx + 1]
mov eax, ebx
and eax, 0x7f
test bl, bl
jns 0x1013c1fa
test esi, esi
je 0x1013c7a3
movzx ebx, byte [ecx + 1]
movzx eax, ax
lea esi, [edx - 2]
mov edi, ebx
and edi, 0x7f
shl edi, 7
or eax, edi
test bl, bl
lea edi, [ecx + 2]
js 0x1013c23d
mov ebx, dword [esp + 0x20]
cmp ax, 0x21
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], edi
je 0x1013c279
movzx esi, ax
test esi, esi
je 0x1013c78b
movzx eax, bx
mov ebx, dword [esp + 0x2c]
shl esi, 0x10
mov ecx, 0xffffffff
xor edx, edx
xor edi, edi
mov dword [esp + 0xc], 0
or esi, eax
and ebx, ecx
xor ecx, ecx
jmp 0x1013c378
mov ebx, dword [esp + 0x20]
test esi, esi
je 0x1013c7a3
movzx edi, byte [edi]
cmp di, 3
ja 0x1013c7be
movzx edi, di
add edx, 0xfffffffd
add ecx, 3
movzx eax, ax
shl edi, 0xe
mov esi, edx
or eax, edi
mov edi, ecx
cmp ax, 0x21
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], edi
jne 0x1013c20c
test esi, esi
je 0x1013c78f
xor eax, eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
xor ecx, ecx
nop word cs:[eax + eax]
nop
mov bh, byte [edi + eax]
cmp ecx, 0x3f
jne 0x1013c2b8
movzx edx, bh
test edx, edx
je 0x1013c2b8
cmp edx, 0x7f
jne 0x1013c708
mov dl, bh
xor esi, esi
mov edi, ebx
mov ebx, 0
and dl, 0x7f
movzx edx, dl
shld esi, edx, cl
shl edx, cl
test cl, 0x20
cmovne esi, edx
cmovne edx, ebx
mov ebx, edi
mov edi, dword [esp + 8]
or dword [esp + 0xc], edx
or edi, esi
test bh, bh
jns 0x1013c300
mov edx, dword [esp + 0x14]
mov dword [esp + 8], edi
mov edi, dword [esp + 0x10]
inc eax
add ecx, 7
cmp edx, eax
jne 0x1013c2a0
jmp 0x1013c6ea
add ecx, 7
mov edx, 0xffffffff
mov esi, 0
cmp ecx, 0x40
setl byte [esp + 8]
and bh, 0x40
shl edx, cl
shr bh, 6
test cl, 0x20
mov ecx, 0xffffffff
cmovne ecx, edx
cmovne edx, esi
test byte [esp + 8], bh
mov ebx, dword [esp + 0x2c]
cmove ecx, esi
cmove edx, esi
movzx esi, word [esp + 0x20]
or edi, ecx
mov ecx, dword [esp + 0xc]
or esi, 0x210000
or ecx, edx
mov edx, ecx
mov dword [esp + 0xc], ecx
mov ecx, 0xffffffff
and ebx, ecx
mov ecx, dword [esp + 0x10]
shrd edx, edi, 0x10
shr edi, 0x10
lea ecx, [ecx + eax + 1]
not eax
add dword [esp + 0x14], eax
mov eax, dword [esp + 0xc]
mov dword [esp + 0x10], ecx
mov cl, ah
mov eax, edx
mov dword [esp + 8], ecx
movzx ecx, cl
mov dword [esp + 0x18], edi
mov edi, edi
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], esi
mov dword [esp + 0x2c], ebx
shl eax, 0x10
shl ecx, 8
shld edi, edx, 0x10
or ecx, eax
movzx eax, byte [esp + 0xc]
mov dword [esp + 0xfc], edi
or eax, ecx
mov dword [esp + 0xf8], eax
mov dword [esp + 0x100], esi
mov dword [esp + 0x104], ebx
lea eax, [esp + 0xf8]
push eax
lea eax, [esp + 0x54]
push eax
call fcn.1005bee0
add esp, 8
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
test esi, esi
jne 0x1013c149
jmp 0x1013c7a3
test edx, edx
je 0x1013c724
movzx ebx, byte [ecx]
lea edi, [ecx + 1]
lea esi, [edx - 1]
mov dword [esp + 0xc], edi
mov eax, ebx
and eax, 0x7f
test bl, bl
jns 0x1013c435
test esi, esi
je 0x1013c9f4
movzx ebx, byte [ecx + 1]
movzx eax, ax
lea esi, [edx - 2]
mov edi, ebx
and edi, 0x7f
shl edi, 7
or eax, edi
test bl, bl
lea ebx, [ecx + 2]
mov dword [esp + 0xc], ebx
js 0x1013c681
mov dword [esp + 0x10], esi
test ax, ax
mov edi, dword [esp + 0x24]
mov edx, dword [esp + 0x4c]
mov esi, dword [esp + 0x2c]
mov eax, dword [esp + 8]
jne 0x1013c96b
lea ecx, [esp + 0x68]
movq xmm1, qword [esp + 0x50]
movdqu xmm0, xmmword [esp + 0x58]
movsd xmm3, qword [ecx + 8]
movsd xmm4, qword [ecx + 0x10]
movsd xmm2, qword [ecx]
movd eax, xmm1
movsd qword [esp + 0xc0], xmm3
movsd xmm3, qword [ecx + 0x18]
movsd qword [esp + 0xc8], xmm4
movsd xmm4, qword [ecx + 0x20]
cmp eax, 2
movsd qword [esp + 0xb8], xmm2
movsd qword [esp + 0xd0], xmm3
movsd xmm3, qword [ecx + 0x28]
movsd qword [esp + 0xd8], xmm4
movsd xmm4, qword [ecx + 0x30]
movsd qword [esp + 0xe0], xmm3
movsd xmm3, qword [ecx + 0x38]
movsd qword [esp + 0xe8], xmm4
movsd qword [esp + 0xf0], xmm3
je 0x1013c98b
movsd xmm3, qword [esp + 0xe8]
lea eax, [esp + 0x110]
movsd xmm4, qword [esp + 0xe0]
movq xmm2, qword [esp + 0xf0]
movsd qword [eax + 0x30], xmm3
movsd xmm3, qword [esp + 0xd8]
movsd qword [eax + 0x28], xmm4
movsd xmm4, qword [esp + 0xd0]
movq qword [eax + 0x38], xmm2
movsd qword [eax + 0x20], xmm3
movsd xmm3, qword [esp + 0xc8]
movsd qword [eax + 0x18], xmm4
movsd xmm4, qword [esp + 0xb8]
movsd qword [eax + 0x10], xmm3
movq xmm3, qword [esp + 0xc0]
movsd qword [eax], xmm4
movq qword [eax + 8], xmm3
movq qword [esp + 0xf8], xmm1
movdqu xmmword [esp + 0x100], xmm0
movzx eax, byte [esp + 0x2b]
lea ecx, [esp + 0xf8]
push ecx
push eax
push edx
push dword [esp + 0x10]
push edi
lea eax, [esp + 0x64]
push eax
call fcn.1005bde0
add esp, 0x18
mov edi, dword [esp + 0x5c]
mov esi, dword [esp + 0x58]
mov edx, dword [esp + 0x50]
lea ebx, [esp + 0x208]
mov ecx, edi
mov eax, esi
mov eax, dword [esp + 0x54]
mov dword [esp + 0x14], esi
mov dword [esp + 4], edi
shld ecx, esi, 0x10
mov esi, dword [esp + 0x64]
mov dword [esp + 0x1c], ecx
mov ecx, edi
mov edi, ebx
shr ecx, 0x10
cmp edx, 3
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], esi
lea esi, [esp + 0x68]
mov dword [esp + 8], ecx
mov ecx, 0x14
rep movsd dword es:[edi], dword [esi]
je 0x1013c9c0
lea eax, [esp + 0x1b8]
mov ecx, 0x14
mov esi, ebx
cmp edx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
je 0x1013c748
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x150], edx
lea edi, [esp + 0x168]
mov esi, eax
mov dword [esp + 0x154], ecx
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x158], ecx
mov ecx, dword [esp + 4]
mov dword [esp + 0x15c], ecx
mov ecx, dword [esp + 8]
mov dword [esp + 0x160], ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x164], ecx
mov ecx, 0x14
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x150]
push eax
lea eax, [esp + 0x38]
push eax
call fcn.1005b030
add esp, 8
test al, al
mov eax, dword [esp + 0x30]
pxor xmm0, xmm0
jne 0x1013c9eb
mov esi, dword [esp + 0x10]
test esi, esi
jne 0x1013bf64
jmp 0x1013c6d3
test esi, esi
je 0x1013c9f4
mov edi, dword [esp + 0xc]
movzx edi, byte [edi]
cmp di, 3
ja 0x1013c7be
movzx edi, di
movzx eax, ax
add ecx, 3
add edx, 0xfffffffd
shl edi, 0xe
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], edx
or eax, edi
jmp 0x1013c439
jmp 0x1013c6d3
mov dword [esp + 0x14], eax
mov al, 6
xor esi, esi
mov dword [esp + 4], eax
jmp 0x1013c7f7
add edi, dword [esp + 0x10]
mov dword [esp + 0xc], edi
mov edi, dword [esp + 0xc]
mov al, 0x13
xor esi, esi
mov dword [esp + 4], eax
mov ah, dh
mov dword [esp + 0x14], eax
jmp 0x1013c7f7
add edi, edx
mov al, 0x13
xor esi, esi
mov dword [esp + 4], eax
cmp dword [esp + 0x50], 0
mov dword [esp + 0x14], ebx
jne 0x1013c7d7
jmp 0x1013c7ef
mov al, 7
xor esi, esi
mov dword [esp + 4], eax
cmp dword [esp + 0x50], 0
mov dword [esp + 0x14], ebx
jne 0x1013c7d7
jmp 0x1013c7ef
mov al, 0x13
xor esi, esi
mov edi, ecx
mov dword [esp + 4], eax
mov eax, dword [esp + 8]
mov bh, al
cmp dword [esp + 0x50], 0
mov dword [esp + 0x14], ebx
jne 0x1013c7d7
jmp 0x1013c7ef
movq xmm0, qword [esp + 0x44]
mov ebx, dword [esp + 0x30]
movq xmm2, qword [esp + 0x34]
movq xmm1, qword [esp + 0x3c]
movq qword [ebx + 0x10], xmm0
movq qword [ebx + 8], xmm1
movq qword [ebx], xmm2
jmp 0x1013c92f
mov edi, dword [esp + 0xc]
lea edi, [edi + eax + 1]
mov ecx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x18]
mov al, 0x13
xor esi, esi
mov dword [esp + 4], eax
jmp 0x1013c7f7
mov al, 9
jmp 0x1013c7c2
jmp 0x1013c6ec
mov al, 8
jmp 0x1013c79a
mov al, 0xa
jmp 0x1013c941
mov dword [esp + 8], eax
mov al, 0x13
xor esi, esi
mov dword [esp + 4], eax
mov eax, dword [esp + 8]
mov bh, al
cmp dword [esp + 0x50], 0
mov dword [esp + 0x14], ebx
jne 0x1013c7d7
jmp 0x1013c7ef
xor esi, esi
mov al, 6
mov dword [esp + 4], eax
mov eax, dword [esp + 8]
mov bh, al
cmp dword [esp + 0x50], 0
mov dword [esp + 0x14], ebx
je 0x1013c7ef
cmp dword [esp + 0x58], 0
je 0x1013c7ef
push dword [esp + 0x54]
push 0
push dword [0x1038a110]
call sub.KERNEL32.dll_HeapFree
mov ecx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
movzx edx, byte [esp + 4]
shld ebx, ecx, 0x10
shl ecx, 0x10
movzx eax, ah
shl eax, 8
or eax, ecx
or edx, eax
mov eax, dword [esp + 0x30]
mov dword [eax + 8], edx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x14], esi
mov dword [eax + 0x10], edi
mov edi, dword [esp + 0x3c]
mov esi, dword [esp + 0x34]
mov dword [eax], 0
test edi, edi
je 0x1013c863
lea ebx, [esi + 8]
jmp 0x1013c846
add ebx, 0x68
dec edi
je 0x1013c863
cmp dword [ebx - 8], 0
je 0x1013c840
cmp dword [ebx], 0
je 0x1013c840
push dword [ebx - 4]
push 0
push dword [0x1038a110]
call sub.KERNEL32.dll_HeapFree
jmp 0x1013c840
cmp dword [esp + 0x38], 0
je 0x1013c878
push esi
push 0
push dword [0x1038a110]
call sub.KERNEL32.dll_HeapFree
mov ecx, dword [esp + 0x40]
test ecx, ecx
je 0x1013c8af
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x48]
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], edx
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], ecx
mov ecx, 1
mov dword [esp + 0x6c], edx
jmp 0x1013c8b3
xor ecx, ecx
xor eax, eax
mov dword [esp + 0x50], ecx
mov dword [esp + 0x60], ecx
mov dword [esp + 0x70], eax
lea ecx, [esp + 0xf8]
lea edx, [esp + 0x50]
call fcn.10131e80
mov eax, dword [esp + 0xf8]
test eax, eax
je 0x1013c92f
lea esi, [esp + 0xf8]
lea edi, [esp + 0x50]
jmp 0x1013c904
mov ecx, esi
mov edx, edi
call fcn.10131e80
mov eax, dword [esp + 0xf8]
test eax, eax
je 0x1013c92f
imul ecx, dword [esp + 0x100], 0x68
cmp dword [eax + ecx + 0x58], 0
je 0x1013c8f0
lea eax, [eax + ecx + 0x58]
cmp dword [eax + 8], 0
je 0x1013c8f0
push dword [eax + 4]
push 0
push dword [0x1038a110]
call sub.KERNEL32.dll_HeapFree
jmp 0x1013c8f0
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov edi, dword [esp + 0xc]
lea edi, [edi + eax + 2]
mov al, 0x13
mov dword [esp + 4], eax
xor esi, esi
mov ebx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
jmp 0x1013c7f7
mov edi, dword [esp + 0xc]
lea edi, [edi + eax + 3]
jmp 0x1013c779
mov al, 6
xor esi, esi
mov dword [esp + 4], eax
jmp 0x1013c947
mov edi, dword [esp + 0x20]
mov cl, 0xd
mov bh, al
mov dword [esp + 4], ecx
cmp dword [esp + 0x50], 0
mov dword [esp + 0x14], ebx
jne 0x1013c7d7
jmp 0x1013c7ef
movd eax, xmm0
pshufd xmm2, xmm0, 0x55
pshufd xmm1, xmm0, 0xee
pshufd xmm3, xmm0, 0xff
movd ebx, xmm2
mov ecx, eax
mov dword [esp + 4], eax
movd edi, xmm1
movd esi, xmm3
mov dword [esp + 0x14], eax
shrd ecx, ebx, 0x10
shr ebx, 0x10
jmp 0x1013c7f7
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 4]
mov edi, dword [esp + 8]
mov ebx, dword [esp + 0x18]
mov esi, dword [esp + 0x20]
shld ecx, eax, 0x18
mov dword [esp + 4], eax
mov ah, cl
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x14], eax
jmp 0x1013c7f7
mov byte [eax + 8], 0xe
jmp 0x1013c821
mov al, 0x13
mov edi, dword [esp + 0xc]
jmp 0x1013c7a5