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

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x290
mov qword [rsp + 0xa0], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x14014dcf0]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov edi, ecx
mov dword [rsp + 0x30], ecx
xor r12d, r12d
mov dword [rsp + 0x34], r12d
cmp byte [0x1401a6c88], r12b
jne 0x140046b9e
lea rax, [0x1400d4350]
mov qword [rsp + 0x70], rax
lea rdx, [0x140143678]
lea rcx, [rsp + 0x70]
call fcn.1400a5d24
int3
mov rcx, qword [0x1401a6ca8]
mov rax, qword [rcx + 8]
mov rdx, rcx
cmp byte [rax + 0x25], r12b
jne 0x140046bc9
cmp dword [rax + 0x18], edi
jae 0x140046bbd
mov rax, qword [rax + 0x10]
jmp 0x140046bc3
mov rdx, rax
mov rax, qword [rax]
cmp byte [rax + 0x25], r12b
je 0x140046bb2
mov qword [rsp + 0x20], rdx
cmp rdx, rcx
je 0x140046bdf
cmp edi, dword [rdx + 0x18]
jb 0x140046bdf
lea rax, [rsp + 0x20]
jmp 0x140046be9
mov qword [rsp + 0x48], rcx
lea rax, [rsp + 0x48]
cmp qword [rax], rcx
je 0x140046d33
mov rax, qword [rcx + 8]
mov rbx, rcx
cmp byte [rax + 0x25], r12b
jne 0x140046c17
nop
cmp dword [rax + 0x18], edi
jae 0x140046c0b
mov rax, qword [rax + 0x10]
jmp 0x140046c11
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x25], r12b
je 0x140046c00
cmp rbx, rcx
je 0x140046c21
cmp edi, dword [rbx + 0x18]
jae 0x140046c69
mov dword [rsp + 0x28], 0xffffffff
mov byte [rsp + 0x2c], r12b
mov dword [rsp + 0x38], edi
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x3c], rax
lea rdx, [rsp + 0x38]
lea rcx, [0x1401a6ca0]
call fcn.1400444e0
mov r9, rax
mov r8, rbx
lea rdx, [rsp + 0x20]
lea rcx, [0x1401a6ca0]
call fcn.1400428a0
mov rbx, qword [rsp + 0x20]
lea rdx, [rsp + 0x1d8]
mov ecx, dword [rbx + 0x1c]
mov rax, qword [0x1401a6c80]
call qword [rax + 0x7a]
test eax, eax
jne 0x140046d22
mov eax, dword [rsp + 0x1dc]
cmp eax, 1
je 0x140046c9a
cmp eax, 3
mov esi, r12d
jne 0x140046c9f
mov esi, 1
mov rcx, qword [0x1401a6ca8]
mov rax, qword [rcx + 8]
mov rbx, rcx
cmp byte [rax + 0x25], r12b
jne 0x140046cca
cmp dword [rax + 0x18], edi
jae 0x140046cbe
mov rax, qword [rax + 0x10]
jmp 0x140046cc4
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x25], r12b
je 0x140046cb3
cmp rbx, rcx
je 0x140046cd4
cmp edi, dword [rbx + 0x18]
jae 0x140046d1c
mov dword [rsp + 0x28], 0xffffffff
mov byte [rsp + 0x2c], r12b
mov dword [rsp + 0x38], edi
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x3c], rax
lea rdx, [rsp + 0x38]
lea rcx, [0x1401a6ca0]
call fcn.1400444e0
mov r9, rax
mov r8, rbx
lea rdx, [rsp + 0x20]
lea rcx, [0x1401a6ca0]
call fcn.1400428a0
mov rbx, qword [rsp + 0x20]
mov byte [rbx + 0x20], sil
jmp 0x140046d3a
mov ecx, edi
call fcn.1400455b0
nop
jmp 0x140046d33
mov ecx, edi
call fcn.140045d70
mov edx, edi
lea rcx, [rsp + 0x1f0]
call fcn.140045730
nop
lea r15, [0x1400d43a0]
lea r14, [0x1400d4a00]
lea r13, [0x1400cddf8]
or rsi, 0xffffffffffffffff
nop word [rax + rax]
mov rcx, qword [0x1401a6ca8]
mov rax, qword [rcx + 8]
mov rbx, rcx
cmp byte [rax + 0x25], 0
jne 0x140046d9b
cmp dword [rax + 0x18], edi
jae 0x140046d8f
mov rax, qword [rax + 0x10]
jmp 0x140046d95
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x25], 0
je 0x140046d84
cmp rbx, rcx
je 0x140046da5
cmp edi, dword [rbx + 0x18]
jae 0x140046df3
mov dword [rsp + 0x28], 0xffffffff
mov byte [rsp + 0x2c], 0
mov dword [rsp + 0x50], edi
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x54], rax
lea rdx, [rsp + 0x50]
lea rcx, [0x1401a6ca0]
call fcn.1400444e0
mov r9, rax
mov r8, rbx
lea rdx, [rsp + 0x80]
lea rcx, [0x1401a6ca0]
call fcn.1400428a0
mov rbx, qword [rsp + 0x80]
cmp byte [rbx + 0x20], 0
jne 0x1400472fe
test byte [rsp + 0x1f4], 4
je 0x1400472fe
test dword [rsp + 0x1f4], 0x100
je 0x140046ef7
mov rcx, qword [0x1401a6ca8]
mov rax, qword [rcx + 8]
mov rbx, rcx
nop word [rax + rax]
cmp byte [rax + 0x25], 0
jne 0x140046e49
cmp dword [rax + 0x18], edi
jae 0x140046e41
mov rax, qword [rax + 0x10]
jmp 0x140046e30
mov rbx, rax
mov rax, qword [rax]
jmp 0x140046e30
cmp rbx, rcx
je 0x140046e53
cmp edi, dword [rbx + 0x18]
jae 0x140046e9b
mov dword [rsp + 0x48], 0xffffffff
mov byte [rsp + 0x4c], 0
mov dword [rsp + 0x5c], edi
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x60], rax
lea rdx, [rsp + 0x5c]
lea rcx, [0x1401a6ca0]
call fcn.1400444e0
mov r9, rax
mov r8, rbx
lea rdx, [rsp + 0x68]
lea rcx, [0x1401a6ca0]
call fcn.1400428a0
mov rbx, qword [rsp + 0x68]
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
mov ecx, dword [rbx + 0x1c]
mov rax, qword [0x1401a6c80]
call qword [rax + SysAllocStringByteLen]
test eax, eax
je 0x140047260
lea rcx, [0x1400d42e8]
mov qword [rsp + 0x88], rcx
mov dword [rsp + 0x90], eax
mov byte [rsp + 0x94], 0
mov qword [rsp + 0x98], rsi
lea rdx, [0x1401436d8]
lea rcx, [rsp + 0x88]
call fcn.1400a5d24
mov r8d, 0xf
mov qword [rsp + 0x1c8], r8
mov qword [rsp + 0x1c0], r12
mov byte [rsp + 0x1b0], 0
mov rbx, qword [rsp + 0x230]
cmp rbx, 0xffffffffffffffff
cmova rbx, rsi
cmp rbx, 0xfffffffffffffffe
jbe 0x140046f37
lea rcx, str.string_too_long
call fcn.1400c33ac
cmp rbx, r8
jbe 0x140046f59
xor r8d, r8d
mov rdx, rbx
lea rcx, [rsp + 0x1b0]
call fcn.140007c00
mov r8, qword [rsp + 0x1c8]
jmp 0x140046f6d
test rbx, rbx
jne 0x140046f70
mov qword [rsp + 0x1c0], r12
mov byte [rsp + 0x1b0], bl
test rbx, rbx
setne al
test al, al
je 0x140046fd4
lea rdx, [rsp + 0x220]
cmp qword [rsp + 0x238], 0x10
cmovae rdx, qword [rsp + 0x220]
lea rcx, [rsp + 0x1b0]
cmp r8, 0x10
cmovae rcx, qword [rsp + 0x1b0]
mov r8, rbx
call fcn.1400a4990
mov qword [rsp + 0x1c0], rbx
lea rax, [rsp + 0x1b0]
cmp qword [rsp + 0x1c8], 0x10
cmovae rax, qword [rsp + 0x1b0]
mov byte [rax + rbx], 0
cmp qword [rsp + 0x208], 0
jne 0x1400471f9
mov qword [rsp + 0xb0], r13
mov qword [rsp + 0xc0], r14
or dword [rsp + 0x34], 1
mov qword [rsp + 0x148], r15
mov qword [rsp + 0xb8], r12
lea rcx, [rsp + 0x148]
call fcn.140008c90
lea rax, [rsp + 0xc8]
mov qword [rsp + 0x190], rax
mov qword [rsp + 0x198], r12
mov dl, 0x20
lea rcx, [rsp + 0x148]
call fcn.140041f40
mov byte [rsp + 0x1a0], al
cmp qword [rsp + 0x190], 0
jne 0x140047069
mov edx, dword [rsp + 0x158]
or edx, 4
xor r8d, r8d
lea rcx, [rsp + 0x148]
call fcn.140008b00
nop
mov rax, qword [rsp + 0xc0]
movsxd rcx, dword [rax + 4]
lea rax, [0x1400d4390]
mov qword [rsp + rcx + 0xc0], rax
mov rax, qword [rsp + 0xb0]
movsxd rcx, dword [rax + 4]
lea rax, [0x1400d43b0]
mov qword [rsp + rcx + 0xb0], rax
mov rax, qword [rsp + 0xb0]
movsxd rcx, dword [rax + 4]
lea rax, [0x1400d4638]
mov qword [rsp + rcx + 0xb0], rax
lea rcx, [rsp + 0xc8]
call fcn.140040ae0
nop
lea rax, [0x1400d4498]
mov qword [rsp + 0xc8], rax
mov qword [rsp + 0x138], r12
mov dword [rsp + 0x140], r12d
lea rdx, [0x1400d5b58]
lea rcx, [rsp + 0xc0]
call fcn.140042510
mov edx, edi
mov rcx, rax
call fcn.140042bb0
lea rdx, [rsp + 0x250]
lea rcx, [rsp + 0xb0]
call fcn.1400453e0
mov rbx, rax
lea rax, [rsp + 0x1b0]
cmp rax, rbx
je 0x1400471b7
cmp qword [rsp + 0x1c8], 0x10
jb 0x140047146
mov rcx, qword [rsp + 0x1b0]
call fcn.1400a58b8
mov qword [rsp + 0x1c8], 0xf
mov qword [rsp + 0x1c0], r12
mov byte [rsp + 0x1b0], 0
cmp qword [rbx + 0x18], 0x10
jae 0x140047182
mov r8, qword [rbx + 0x10]
inc r8
mov rdx, rbx
lea rcx, [rsp + 0x1b0]
call fcn.1400a4990
jmp 0x140047190
mov rax, qword [rbx]
mov qword [rsp + 0x1b0], rax
mov qword [rbx], r12
mov rax, qword [rbx + 0x10]
mov qword [rsp + 0x1c0], rax
mov rax, qword [rbx + 0x18]
mov qword [rsp + 0x1c8], rax
mov qword [rbx + 0x18], 0xf
mov qword [rbx + 0x10], r12
mov byte [rbx], 0
cmp qword [rsp + 0x268], 0x10
jb 0x1400471d0
mov rcx, qword [rsp + 0x250]
call fcn.1400a58b8
nop
lea rcx, [rsp + 0x148]
call fcn.140040f70
lea rax, [0x1400ccae8]
mov qword [rsp + 0x148], rax
lea rcx, [rsp + 0x148]
call fcn.1400c3e48
lea rax, [rsp + 0x1b0]
mov qword [rsp + 0x78], rax
mov rcx, qword [0x1401a6c98]
mov rax, qword [rcx]
lea rdx, [rsp + 0x1b0]
call qword [rax + VariantCopy]
lea rdx, [rsp + 0x1b0]
cmp qword [rsp + 0x1c8], 0x10
cmovae rdx, qword [rsp + 0x1b0]
mov ecx, edi
call fcn.140046930
nop
lea rcx, [rsp + 0x78]
call fcn.140040f20
nop
cmp qword [rsp + 0x1c8], 0x10
jb 0x140047260
mov rcx, qword [rsp + 0x1b0]
call fcn.1400a58b8
mov rcx, qword [0x1401a6ca8]
mov rax, qword [rcx + 8]
mov rbx, rcx
nop
cmp byte [rax + 0x25], 0
jne 0x140047289
cmp dword [rax + 0x18], edi
jae 0x140047281
mov rax, qword [rax + 0x10]
jmp 0x140047270
mov rbx, rax
mov rax, qword [rax]
jmp 0x140047270
cmp rbx, rcx
je 0x140047293
cmp edi, dword [rbx + 0x18]
jae 0x1400472e4
mov dword [rsp + 0x20], 0xffffffff
mov byte [rsp + 0x24], 0
mov dword [rsp + 0x1d8], edi
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x1dc], rax
lea rdx, [rsp + 0x1d8]
lea rcx, [0x1401a6ca0]
call fcn.1400444e0
mov r9, rax
mov r8, rbx
lea rdx, [rsp + 0x38]
lea rcx, [0x1401a6ca0]
call fcn.1400428a0
mov rbx, qword [rsp + 0x38]
mov byte [rbx + 0x20], 1
jmp 0x140046d70
cmp qword [rsp + 0x238], 0x10
jb 0x140047316
mov rcx, qword [rsp + 0x220]
call fcn.1400a58b8
mov qword [rsp + 0x238], 0xf
mov qword [rsp + 0x230], r12
mov byte [rsp + 0x220], 0
cmp qword [rsp + 0x210], 8
jb 0x14004734a
mov rcx, qword [rsp + 0x1f8]
call fcn.1400a58b8
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.1400a4e70
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret