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

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r15
mov rbp, rsp
sub rsp, 0x60
mov rax, qword [0x1401750a0]
xor rax, rsp
mov qword [rbp - 0x10], rax
xor r15d, r15d
mov rbx, rcx
mov edi, r15d
cmp qword [rcx + 0x118], rdi
jne 0x140043444
cmp byte [rcx + 0x15], dil
jne 0x140043444
mov esi, 1
mov dword [rbp - 0x30], esi
nop dword [rax + rax]
movzx eax, byte [rbx + 0x16]
mov edi, r15d
cmp al, sil
jb 0x1400430d0
cmp al, 5
jne 0x140043108
cmp byte [rbx + 0x12], dil
jne 0x1400430e8
mov rcx, qword [rbx + 0x48]
mov edx, esi
mov rax, qword [rcx]
call qword [rax + 0x38]
mov edi, eax
test eax, eax
jne 0x1400430f2
cmp byte [rbx + 0x16], 5
je 0x1400430f2
mov byte [rbx + 0x16], sil
cmp edi, 5
jne 0x140043108
mov rcx, qword [rbx + 0xe8]
call qword [rbx + 0xe0]
test eax, eax
jne 0x1400430c0
test edi, edi
jne 0x14004328a
cmp byte [rbx + 0x16], sil
ja 0x140043127
lea rdx, [rbp - 0x30]
mov rcx, rbx
call fcn.140042e60
mov esi, dword [rbp - 0x30]
mov edi, eax
test edi, edi
jne 0x14004328a
test esi, esi
je 0x140043297
cmp byte [rbx + 0x13], r15b
je 0x14004314f
mov rcx, rbx
mov edi, 0x308
call fcn.1400408d0
jmp 0x14004354c
movzx eax, byte [rbx + 0x16]
mov edi, r15d
cmp al, 4
jb 0x14004315e
cmp al, 5
jne 0x14004317d
cmp byte [rbx + 0x12], dil
jne 0x140043179
mov rcx, qword [rbx + 0x48]
mov edx, 4
mov rax, qword [rcx]
call qword [rax + 0x38]
mov edi, eax
test eax, eax
jne 0x14004317d
mov byte [rbx + 0x16], 4
test edi, edi
jne 0x14004328a
mov rax, qword [rbx + 0x50]
cmp qword [rax], r15
jne 0x140043226
mov rsi, qword [rbx]
lea r9, [rbp - 0x28]
mov rdx, qword [rbx + 0xd8]
xor r8d, r8d
mov rcx, rsi
call qword [rsi + 0x38]
mov edi, eax
test eax, eax
jne 0x140043226
cmp dword [rbp - 0x28], r15d
je 0x140043226
mov r8, qword [rbx + 0x50]
lea rax, [rbp - 0x30]
mov rdx, qword [rbx + 0xd8]
mov r9d, 0x802
mov rcx, rsi
mov qword [rsp + 0x20], rax
mov dword [rbp - 0x30], r15d
call qword [rsi + 0x28]
mov edi, eax
test eax, eax
jne 0x140043226
test byte [rbp - 0x30], 1
je 0x140043226
lea rax, [0x140147114]
mov edi, 0xe
mov ecx, edi
mov qword [rsp + 0x20], rax
mov r9d, 0xc91b
lea r8, str.cannot_open_file
lea rdx, str._s_at_line__d_of___.10s_
call fcn.140037580
mov rsi, qword [rbx + 0x50]
mov rax, qword [rsi]
test rax, rax
je 0x140043226
mov rcx, rsi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov qword [rsi], r15
mov rax, qword [rbx + 0x50]
cmp qword [rax], r15
je 0x140043256
mov rcx, rbx
call fcn.1400420d0
mov edi, eax
test eax, eax
jne 0x14004326d
mov edx, r15d
mov rcx, rbx
cmp byte [rbx + 0x11], dl
sete dl
call fcn.140041560
mov edi, eax
mov byte [rbx + 0x15], r15b
jmp 0x140043269
cmp byte [rbx + 8], r15b
jne 0x140043269
mov edx, 1
mov rcx, rbx
call fcn.14003feb0
test edi, edi
je 0x140043297
movzx eax, dil
cmp eax, 0xd
je 0x14004327b
cmp eax, 0xa
jne 0x140043282
mov dword [rbx + 0x30], edi
mov byte [rbx + 0x15], 6
test edi, edi
je 0x140043544
mov rcx, rbx
call fcn.1400408d0
jmp 0x14004354c
cmp byte [rbx + 0x11], r15b
jne 0x14004337f
cmp byte [rbx + 0x1c], r15b
je 0x14004337f
mov rax, qword [rbx + 0x118]
test rax, rax
je 0x1400432c7
cmp word [rax + 0x3c], r15w
jl 0x1400432c7
mov eax, dword [rax + 0x5c]
test eax, eax
jne 0x1400432fe
jmp 0x1400432ca
mov eax, r15d
mov rcx, qword [rbx + 0x48]
mov r8, qword [rcx]
test r8, r8
je 0x1400432fe
lea rdx, [rbp - 0x28]
mov qword [rbp - 0x28], r15
call qword [r8 + 0x30]
mov edi, eax
test eax, eax
jne 0x14004328a
movsxd rcx, dword [rbx + 0xbc]
mov rax, qword [rbp - 0x28]
dec rax
add rax, rcx
cqo
idiv rcx
cmp eax, dword [rbx + 0xc0]
jbe 0x14004330c
mov dword [rbx + 0xc0], eax
test eax, eax
je 0x14004333b
mov rcx, qword [rbx + 0x48]
lea rdx, [rbp - 0x20]
mov r9d, 0x18
mov rax, qword [rcx]
lea r8d, [r9 - 8]
call qword [rax + 0x10]
mov edi, eax
test eax, eax
je 0x140043345
cmp eax, 0x20a
jne 0x140043282
jmp 0x140043345
xor eax, eax
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], rax
mov rax, qword [rbx + 0x88]
cmp rax, qword [rbp - 0x20]
jne 0x14004335f
mov rax, qword [rbx + 0x90]
cmp rax, qword [rbp - 0x18]
je 0x14004337f
mov rcx, rbx
call fcn.140040650
cmp byte [rbx + 0x1b], r15b
je 0x14004337f
mov rcx, qword [rbx + 0x48]
xor r8d, r8d
xor edx, edx
mov rax, qword [rcx]
call qword [rax + 0x90]
mov edi, r15d
cmp byte [rbx + 0x11], dil
jne 0x140043444
mov rax, qword [rbx + 0x118]
test rax, rax
je 0x1400433a7
cmp word [rax + 0x3c], di
jl 0x1400433a7
mov eax, dword [rax + 0x5c]
test eax, eax
jne 0x1400433de
jmp 0x1400433aa
mov eax, r15d
mov rcx, qword [rbx + 0x48]
mov r8, qword [rcx]
test r8, r8
je 0x1400433de
lea rdx, [rbp - 0x28]
mov qword [rbp - 0x28], r15
call qword [r8 + 0x30]
mov edi, eax
test eax, eax
jne 0x140043444
movsxd rcx, dword [rbx + 0xbc]
mov rax, qword [rbp - 0x28]
dec rax
add rax, rcx
cqo
idiv rcx
cmp eax, dword [rbx + 0xc0]
jbe 0x1400433ec
mov dword [rbx + 0xc0], eax
mov r10, qword [rbx]
xor r8d, r8d
mov rdx, qword [rbx + 0x120]
mov rcx, r10
test eax, eax
jne 0x140043417
call qword [r10 + 0x30]
mov edi, eax
cmp eax, 0x170a
mov eax, r15d
cmove edi, r15d
mov dword [rbp - 0x30], eax
jmp 0x140043424
lea r9, [rbp - 0x30]
call qword [r10 + 0x38]
mov edi, eax
mov eax, dword [rbp - 0x30]
test edi, edi
jne 0x140043444
test eax, eax
je 0x14004343a
xor edx, edx
mov rcx, rbx
call fcn.140045030
mov edi, eax
jmp 0x140043444
cmp byte [rbx + 9], 5
jne 0x140043444
mov byte [rbx + 9], r15b
mov rcx, qword [rbx + 0x118]
test rcx, rcx
je 0x1400434bd
mov qword [rsp + 0x88], r14
mov dword [rbp - 0x30], r15d
call fcn.140046e40
mov r14, qword [rbx + 0x118]
mov esi, r15d
nop dword [rax + rax]
inc esi
lea rdx, [rbp - 0x30]
mov r9d, esi
xor r8d, r8d
mov rcx, r14
call fcn.140046b30
mov edi, eax
cmp eax, 0xffffffff
je 0x140043470
mov r14, qword [rsp + 0x88]
test eax, eax
jne 0x14004349d
cmp dword [rbp - 0x30], r15d
je 0x1400434bd
mov rcx, rbx
call fcn.140040650
cmp byte [rbx + 0x1b], r15b
je 0x1400434bd
mov rcx, qword [rbx + 0x48]
xor r8d, r8d
xor edx, edx
mov rax, qword [rcx]
call qword [rax + 0x90]
cmp byte [rbx + 0x11], r15b
jne 0x140043282
cmp byte [rbx + 0x15], r15b
jne 0x140043282
test edi, edi
jne 0x14004328a
mov rax, qword [rbx + 0x118]
test rax, rax
je 0x1400434f5
cmp word [rax + 0x3c], r15w
jl 0x1400434f5
mov eax, dword [rax + 0x5c]
test eax, eax
jne 0x140043530
jmp 0x1400434f8
mov eax, r15d
mov rcx, qword [rbx + 0x48]
mov r8, qword [rcx]
test r8, r8
je 0x140043530
lea rdx, [rbp - 0x28]
mov qword [rbp - 0x28], r15
call qword [r8 + 0x30]
mov edi, eax
test eax, eax
jne 0x140043282
movsxd rcx, dword [rbx + 0xbc]
mov rax, qword [rbp - 0x28]
dec rax
add rax, rcx
cqo
idiv rcx
cmp eax, dword [rbx + 0xc0]
jbe 0x14004353e
mov dword [rbx + 0xc0], eax
mov dword [rbx + 0x20], eax
mov edi, r15d
mov byte [rbx + 0x15], 1
mov byte [rbx + 0x1c], 1
mov eax, edi
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1400dd420
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop rdi
pop rbp
ret