Function at 0x140198bc0
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x360
mov rax, qword [0x14034e010]
xor rax, rsp
mov qword [rsp + 0x350], rax
mov qword [rsp + 0xa8], 0
cmp qword [rsp + 0x370], 0
jne 0x140198c02
xor eax, eax
jmp 0x140199428
mov rax, qword [rsp + 0x370]
mov qword [rsp + 0xe8], rax
mov rax, qword [rsp + 0xe8]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140198c2b
xor eax, eax
jmp 0x140199428
mov rax, qword [rsp + 0xe8]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x370]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0xb0]
cmp dword [rax], 0x4550
je 0x140198c64
xor eax, eax
jmp 0x140199428
mov rax, qword [rsp + 0xb0]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
jne 0x140198cbd
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0xb0]
mov eax, dword [rcx + rax + 0x88]
add rax, qword [rsp + 0x370]
mov qword [rsp + 0x38], rax
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0xb0]
mov eax, dword [rcx + rax + 0x8c]
mov dword [rsp + 0xb8], eax
jmp 0x140198cfb
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0xb0]
mov eax, dword [rcx + rax + 0x78]
add rax, qword [rsp + 0x370]
mov qword [rsp + 0x38], rax
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0xb0]
mov eax, dword [rcx + rax + 0x7c]
mov dword [rsp + 0xb8], eax
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 0x24]
mov rcx, qword [rsp + 0x370]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x100], rax
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 0x20]
mov rcx, qword [rsp + 0x370]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0xf8], rax
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 0x1c]
mov rcx, qword [rsp + 0x370]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x108], rax
mov dword [rsp + 0x30], 0
jmp 0x140198d69
mov eax, dword [rsp + 0x30]
inc eax
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 0x14]
cmp dword [rsp + 0x30], eax
jae 0x140199420
mov eax, 0xffff
mov word [rsp + 0x20], ax
mov qword [rsp + 0xf0], 0
cmp qword [rsp + 0x378], 0xffff
ja 0x140198dab
movzx eax, word [rsp + 0x30]
mov word [rsp + 0x20], ax
jmp 0x140198e0a
cmp qword [rsp + 0x378], 0xffff
jbe 0x140198e03
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 0x18]
cmp dword [rsp + 0x30], eax
jae 0x140198e03
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0xf8]
mov eax, dword [rcx + rax*4]
mov rcx, qword [rsp + 0x370]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0xf0], rax
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x100]
movzx eax, word [rcx + rax*2]
mov word [rsp + 0x20], ax
jmp 0x140198e0a
xor eax, eax
jmp 0x140199428
cmp qword [rsp + 0x378], 0xffff
ja 0x140198e31
movzx eax, word [rsp + 0x378]
movzx ecx, word [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
add ecx, dword [rdx + 0x10]
cmp eax, ecx
je 0x140198e76
cmp qword [rsp + 0x378], 0xffff
jbe 0x14019941b
mov rax, qword [rsp + 0xf0]
mov rcx, qword [rsp + 0x378]
sub rcx, rax
movzx edx, byte [rax]
cmp dl, byte [rax + rcx]
jne 0x140198e69
inc rax
test dl, dl
jne 0x140198e56
xor eax, eax
jmp 0x140198e6e
sbb eax, eax
or eax, 1
test eax, eax
jne 0x14019941b
movzx eax, word [rsp + 0x20]
mov rcx, qword [rsp + 0x108]
mov eax, dword [rcx + rax*4]
mov rcx, qword [rsp + 0x370]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0xa8], rax
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0xa8], rax
jb 0x140199419
mov eax, dword [rsp + 0xb8]
mov rcx, qword [rsp + 0x38]
add rcx, rax
mov rax, rcx
cmp qword [rsp + 0xa8], rax
ja 0x140199419
mov qword [rsp + 0xc0], 0
mov qword [rsp + 0xa0], 0
lea rax, [rsp + 0x250]
mov rdi, rax
xor eax, eax
mov ecx, 0x100
rep stosb byte [rdi], al
mov qword [rsp + 0xc8], 0
mov rcx, qword [rsp + 0xa8]
call fcn.1402e22a4
mov qword [rsp + 0xc0], rax
lea rax, [rsp + 0x24]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rsp + 0x25]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rsp + 0x26]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
movzx eax, byte [rsp + 0x24]
mov byte [rsp + 0x88], al
movzx eax, byte [rsp + 0x25]
mov byte [rsp + 0x90], al
movzx eax, byte [rsp + 0x26]
mov byte [rsp + 0x98], al
movabs rax, 0xe6864df6db95de29
mov qword [rsp + 0x110], rax
mov rax, qword [rsp + 0x110]
mov qword [rsp + 0x160], rax
movabs rax, 0xb46674f75939bd08
mov qword [rsp + 0x118], rax
mov rax, qword [rsp + 0x118]
mov qword [rsp + 0x168], rax
lea rax, [rsp + 0x160]
mov qword [rsp + 0xd0], rax
movabs rax, 0xe6864df6db95de07
mov qword [rsp + 0x220], rax
movabs rax, 0xb46674f75939bd08
mov qword [rsp + 0x228], rax
lea rax, [rsp + 0x27]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
movzx eax, byte [rsp + 0x27]
mov byte [rsp + 0x40], al
movdqa xmm0, xmmword [rsp + 0x220]
movdqa xmmword [rsp + 0x1a0], xmm0
mov rax, qword [rsp + 0xd0]
movdqu xmm0, xmmword [rax]
movdqa xmmword [rsp + 0x190], xmm0
movdqa xmm0, xmmword [rsp + 0x190]
pxor xmm0, xmmword [rsp + 0x1a0]
movdqa xmmword [rsp + 0x1b0], xmm0
mov rax, qword [rsp + 0xd0]
movdqa xmm0, xmmword [rsp + 0x1b0]
movdqu xmmword [rax], xmm0
mov rax, qword [rsp + 0xd0]
mov qword [rsp + 0x120], rax
mov rdx, qword [rsp + 0x120]
mov rcx, qword [rsp + 0xc0]
call fcn.1402cd23c
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0xa0]
mov byte [rax], 0
mov rax, qword [rsp + 0xa0]
inc rax
mov qword [rsp + 0xa0], rax
mov rdx, qword [rsp + 0xc0]
lea rcx, [rsp + 0x250]
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
lea rax, [rsp + 0x28]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rsp + 0x29]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rsp + 0x2a]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
movzx eax, byte [rsp + 0x28]
mov byte [rsp + 0x48], al
movzx eax, byte [rsp + 0x29]
mov byte [rsp + 0x50], al
movzx eax, byte [rsp + 0x2a]
mov byte [rsp + 0x58], al
movabs rax, 0xe6864df6b7f9ba29
mov qword [rsp + 0x128], rax
mov rax, qword [rsp + 0x128]
mov qword [rsp + 0x170], rax
movabs rax, 0xb46674f75939bd08
mov qword [rsp + 0x130], rax
mov rax, qword [rsp + 0x130]
mov qword [rsp + 0x178], rax
lea rax, [rsp + 0x170]
mov qword [rsp + 0xd8], rax
movabs rax, 0xe6864df6db95de07
mov qword [rsp + 0x230], rax
movabs rax, 0xb46674f75939bd08
mov qword [rsp + 0x238], rax
lea rax, [rsp + 0x2b]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
movzx eax, byte [rsp + 0x2b]
mov byte [rsp + 0x60], al
movdqa xmm0, xmmword [rsp + 0x230]
movdqa xmmword [rsp + 0x1d0], xmm0
mov rax, qword [rsp + 0xd8]
movdqu xmm0, xmmword [rax]
movdqa xmmword [rsp + 0x1c0], xmm0
movdqa xmm0, xmmword [rsp + 0x1c0]
pxor xmm0, xmmword [rsp + 0x1d0]
movdqa xmmword [rsp + 0x1e0], xmm0
mov rax, qword [rsp + 0xd8]
movdqa xmm0, xmmword [rsp + 0x1e0]
movdqu xmmword [rax], xmm0
mov rax, qword [rsp + 0xd8]
mov qword [rsp + 0x138], rax
mov rdx, qword [rsp + 0x138]
lea rcx, [rsp + 0x250]
call qword [sym.imp.KERNEL32.dll_lstrcatA]
lea rcx, [rsp + 0x250]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov qword [rsp + 0xc8], rax
cmp qword [rsp + 0xc8], 0
jne 0x14019924f
mov rcx, qword [rsp + 0xc0]
call fcn.1402dc72c
xor eax, eax
jmp 0x140199428
lea rax, [rsp + 0x2c]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rsp + 0x2d]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rsp + 0x2e]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
movzx eax, byte [rsp + 0x2c]
mov byte [rsp + 0x68], al
movzx eax, byte [rsp + 0x2d]
mov byte [rsp + 0x70], al
movzx eax, byte [rsp + 0x2e]
mov byte [rsp + 0x78], al
movabs rax, 0xe6864df6db95de24
mov qword [rsp + 0x140], rax
mov rax, qword [rsp + 0x140]
mov qword [rsp + 0x180], rax
movabs rax, 0xb46674f75939bd08
mov qword [rsp + 0x148], rax
mov rax, qword [rsp + 0x148]
mov qword [rsp + 0x188], rax
lea rax, [rsp + 0x180]
mov qword [rsp + 0xe0], rax
movabs rax, 0xe6864df6db95de07
mov qword [rsp + 0x240], rax
movabs rax, 0xb46674f75939bd08
mov qword [rsp + 0x248], rax
lea rax, [rsp + 0x2f]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
movzx eax, byte [rsp + 0x2f]
mov byte [rsp + 0x80], al
movdqa xmm0, xmmword [rsp + 0x240]
movdqa xmmword [rsp + 0x200], xmm0
mov rax, qword [rsp + 0xe0]
movdqu xmm0, xmmword [rax]
movdqa xmmword [rsp + 0x1f0], xmm0
movdqa xmm0, xmmword [rsp + 0x1f0]
pxor xmm0, xmmword [rsp + 0x200]
movdqa xmmword [rsp + 0x210], xmm0
mov rax, qword [rsp + 0xe0]
movdqa xmm0, xmmword [rsp + 0x210]
movdqu xmmword [rax], xmm0
mov rax, qword [rsp + 0xe0]
mov qword [rsp + 0x150], rax
mov rdx, qword [rsp + 0x150]
mov rcx, qword [rsp + 0xa0]
call fcn.1402cd23c
test rax, rax
jne 0x1401993d2
mov rdx, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0xc8]
call fcn.140198bc0
mov qword [rsp + 0xa8], rax
jmp 0x14019940c
mov rax, qword [rsp + 0xa0]
inc rax
mov rcx, rax
call fcn.1402e3518
cdqe
mov qword [rsp + 0x158], rax
mov rdx, qword [rsp + 0x158]
mov rcx, qword [rsp + 0xc8]
call fcn.140198bc0
mov qword [rsp + 0xa8], rax
mov rcx, qword [rsp + 0xc0]
call fcn.1402dc72c
jmp 0x140199420
jmp 0x140198d5f
mov rax, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0x350]
xor rcx, rsp
call fcn.140269760
add rsp, 0x360
pop rdi
ret