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

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0xf8
lea rbp, [rsp + 0x130]
xor eax, eax
mov qword [rbp - 0x90], rax
mov rsi, rcx
mov rdi, qword [rsi + 0x10]
mov rbx, rdi
cmp word [rbx], 0x5a4d
jne 0x1801675ca
mov eax, dword [rbx + 0x3c]
cdqe
xor r14d, r14d
cmp word [rdi + rax + 0x18], 0x20b
sete r14b
jmp 0x1801675cd
xor r14d, r14d
call fcn.1800014ca
mov r15, rax
mov qword [rbp - 0xb0], r15
mov byte [r15], r14b
xor r14d, r14d
xor r12d, r12d
movzx ecx, byte [r15]
test ecx, ecx
je 0x1801675f8
mov eax, dword [rbx + 0x3c]
movsxd r12, eax
add r12, rdi
jmp 0x180167601
mov eax, dword [rbx + 0x3c]
movsxd r14, eax
add r14, rdi
test ecx, ecx
jne 0x18016760a
mov ecx, dword [r14]
jmp 0x18016760e
mov ecx, dword [r12]
cmp ecx, 0x4550
je 0x18016762a
lea rcx, [0x180363500]
call fcn.180169ea0
mov rcx, rax
call fcn.18016cc90
call fcn.1801b0310
cmp eax, 8
je 0x18016763b
mov edi, 0x40
jmp 0x180167640
mov edi, 0x60
movsxd rcx, edi
call fcn.1801076e0
mov rbx, rax
test edi, edi
jl 0x180167a9d
mov rcx, rbx
mov edx, edi
mov qword [rbp - 0xa0], rdx
test rdx, rdx
je 0x180167689
cmp rdx, 0x300
ja 0x18016767d
xor edx, edx
mov r8, qword [rbp - 0xa0]
call fcn.180063e00
jmp 0x180167689
mov rdx, qword [rbp - 0xa0]
call fcn.1800826a0
call fcn.1801b0310
cmp eax, 8
je 0x18016769a
mov ecx, 0x10
jmp 0x18016769f
mov ecx, 0x18
movsxd rcx, ecx
call fcn.1801076e0
mov qword [rbp - 0x40], rax
xor edi, edi
mov qword [rbp + 0x10], rsi
mov rcx, qword [rsi + 8]
call fcn.180107470
mov r13, rax
lea rcx, [0x18034a008]
call fcn.180107470
mov qword [rbp - 0xa8], rax
xor ecx, ecx
call fcn.180107470
xor ecx, ecx
mov dword [rsp + 0x20], ecx
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x30], ecx
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rbx
mov rax, qword [rbp - 0x40]
mov qword [rsp + 0x48], rax
mov rcx, r13
mov rdx, qword [rbp - 0xa8]
xor r8d, r8d
xor r9d, r9d
call fcn.180167b40
test eax, eax
jne 0x180167729
lea rcx, [0x18034ac20]
call fcn.180169ea0
mov rcx, rax
call fcn.18016cc90
mov rcx, rbx
test rcx, 0xffffffffffff0000
je 0x180167763
mov rcx, rbx
mov qword [rbp - 0xb8], rcx
lea rcx, [rbp - 0xe0]
call fcn.180005110
mov rcx, qword [rbp - 0xb8]
call sub.KERNEL32.dll_LocalFree
lea rcx, [rbp - 0xe0]
call fcn.180005160
mov r15, qword [rbp - 0xb0]
cmp byte [r15], 0
jne 0x180167779
mov eax, dword [r14 + 0x34]
mov r13d, eax
jmp 0x18016777e
mov r13, qword [r12 + 0x30]
mov rax, qword [rbp - 0x40]
mov rdx, qword [rax]
mov qword [rbp - 0x48], rdx
mov qword [rbp - 0x98], rax
call fcn.1801b0310
cmp eax, 8
je 0x1801677a8
mov rcx, qword [rbp - 0x98]
mov edx, 4
jmp 0x1801677b4
mov rcx, qword [rbp - 0x98]
mov edx, 8
movsxd rdx, edx
mov rax, qword [rcx + rdx]
mov qword [rbp - 0x50], rax
mov rcx, qword [rbp - 0x48]
mov rdx, r13
call fcn.180167c20
cmp qword [rbp - 0x48], 0
je 0x1801677d9
cmp qword [rbp - 0x50], 0
jne 0x1801677ed
lea rcx, [0x18035ed78]
call fcn.180169ea0
mov rcx, rax
call fcn.18016cc90
movzx edx, byte [r15]
test edx, edx
jne 0x1801677fb
mov r8d, dword [r14 + 0x50]
jmp 0x180167800
mov r8d, dword [r12 + 0x50]
test edx, edx
jne 0x18016780a
mov r10d, dword [r14 + 0x54]
jmp 0x18016780f
mov r10d, dword [r12 + 0x54]
mov dword [rbp - 0x54], r10d
test edx, edx
jne 0x18016781e
movzx r9d, word [r14 + 6]
jmp 0x180167824
movzx r9d, word [r12 + 6]
movzx r11d, r9w
mov dword [rbp - 0x58], r11d
test edx, edx
jne 0x180167836
mov r9d, dword [r14 + 0x28]
jmp 0x18016783b
mov r9d, dword [r12 + 0x28]
mov dword [rbp - 0x5c], r9d
mov dword [rsp + 0x20], 0x40
mov rcx, qword [rbp - 0x48]
mov rdx, r13
mov r9d, 0x3000
call fcn.180167c90
mov r13, rax
xor r8d, r8d
mov dword [rsp + 0x20], r8d
mov rsi, qword [rbp + 0x10]
mov r8, qword [rsi + 0x10]
mov rcx, qword [rbp - 0x48]
mov rdx, r13
mov r9d, dword [rbp - 0x54]
call fcn.180167f10
cmp byte [r15], 0
jne 0x18016788b
lea rax, [r14 + 0xf8]
jmp 0x180167893
lea rax, [r12 + 0x108]
xor r10d, r10d
mov dword [rbp - 0x84], r10d
cmp dword [rbp - 0x58], 0
jle 0x1801678f0
xor r8d, r8d
mov dword [rsp + 0x20], r8d
mov r8, qword [rsi + 0x10]
mov edx, dword [rax + 0x14]
add r8, rdx
mov edx, dword [rax + 0xc]
add rdx, r13
mov qword [rbp - 0x68], rax
mov r9d, dword [rax + 0x10]
mov rcx, qword [rbp - 0x48]
call fcn.180167f10
mov rax, qword [rbp - 0x68]
add rax, 0x28
mov r10d, dword [rbp - 0x84]
inc r10d
mov ecx, dword [rbp - 0x58]
cmp r10d, ecx
mov dword [rbp - 0x84], r10d
mov dword [rbp - 0x58], ecx
jl 0x1801678a3
cmp byte [r15], 0
jne 0x1801678fd
mov ecx, 0x2cc
jmp 0x180167902
mov ecx, 0x4d0
movsxd rcx, ecx
call fcn.1801076e0
mov qword [rbp - 0x70], rax
cmp byte [r15], 0
je 0x18016791d
mov dword [rax + 0x30], 0x10001b
jmp 0x180167923
mov dword [rax], 0x10002
cmp byte [r15], 0
jne 0x18016794f
mov rcx, qword [rbp - 0x50]
mov rdx, rax
call fcn.180167d30
test eax, eax
jne 0x180167973
lea rcx, [0x180363570]
call fcn.180169ea0
mov rcx, rax
call fcn.18016cc90
jmp 0x180167973
mov rcx, qword [rbp - 0x50]
mov rdx, rax
call fcn.180167e90
test eax, eax
jne 0x180167973
lea rcx, [0x180363638]
call fcn.180169ea0
mov rcx, rax
call fcn.18016cc90
mov rax, qword [rbp - 0x70]
mov edx, dword [rax + 0xa4]
mov dword [rbp - 0x74], edx
mov r8, qword [rax + 0x88]
mov qword [rbp - 0x80], r8
mov rcx, r13
call fcn.180094db0
mov rcx, qword [rbp - 0x48]
cmp byte [r15], 0
jne 0x1801679aa
mov r9d, dword [rbp - 0x74]
add r9d, 8
movsxd rdx, r9d
jmp 0x1801679b2
mov rdx, qword [rbp - 0x80]
add rdx, 0x10
lea r9, [rbp - 0x90]
mov qword [rsp + 0x20], r9
mov r9d, dword [rax + 8]
mov r8, rax
call fcn.180167fb0
test eax, eax
jne 0x1801679e2
lea rcx, [0x1803536e0]
call fcn.180169ea0
mov rcx, rax
call fcn.18016cc90
cmp byte [r15], 0
je 0x1801679fb
mov ecx, dword [rbp - 0x5c]
add rcx, r13
mov r13, qword [rbp - 0x70]
mov qword [r13 + 0x80], rcx
jmp 0x180167a0c
mov ecx, dword [rbp - 0x5c]
add rcx, r13
mov r13, qword [rbp - 0x70]
mov qword [r13 + 0xb0], rcx
cmp byte [r15], 0
jne 0x180167a38
mov rcx, qword [rbp - 0x50]
mov rdx, r13
call fcn.180167d30
test eax, eax
jne 0x180167a5c
lea rcx, [0x18035fa80]
call fcn.180169ea0
mov rcx, rax
call fcn.18016cc90
jmp 0x180167a5c
mov rcx, qword [rbp - 0x50]
mov rdx, r13
call fcn.180167db0
test eax, eax
jne 0x180167a5c
lea rcx, [0x18035fa80]
call fcn.180169ea0
mov rcx, rax
call fcn.18016cc90
mov rcx, qword [rbp - 0x50]
call fcn.180167e30
inc edi
cmp edi, 5
jl 0x1801676ad
jmp 0x180167a73
mov rax, qword [rbp - 0x40]
test rax, 0xffffffffffff0000
je 0x180167a87
mov rcx, rax
call fcn.18012ba00
xor eax, eax
add rsp, 0xf8
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call fcn.1800b9360
int3