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

Disassembly:
push rbp
push rbx
sub rsp, 0x158
lea rbp, [rsp + 0x80]
mov qword [rbp + 0xf0], rcx
mov qword [rbp + 0xf8], rdx
mov qword [rbp + 0xc8], 0
mov rax, qword [rbp + 0xf0]
mov qword [rbp + 0xb8], rax
mov rax, qword [rbp + 0xb8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x3978a19c8
mov eax, 0
jmp 0x3978a1c6d
mov rax, qword [rbp + 0xb8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0xf0]
add rax, rdx
mov qword [rbp + 0xb0], rax
mov rax, qword [rbp + 0xb0]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x3978a1a02
mov rax, qword [rbp + 0xc8]
jmp 0x3978a1c6d
mov rax, qword [rbp + 0xb0]
mov rcx, qword [rax + 0x18]
mov rbx, qword [rax + 0x20]
mov qword [rbp - 0x60], rcx
mov qword [rbp - 0x58], rbx
mov rcx, qword [rax + 0x28]
mov rbx, qword [rax + 0x30]
mov qword [rbp - 0x50], rcx
mov qword [rbp - 0x48], rbx
mov rcx, qword [rax + 0x38]
mov rbx, qword [rax + 0x40]
mov qword [rbp - 0x40], rcx
mov qword [rbp - 0x38], rbx
mov rcx, qword [rax + 0x48]
mov rbx, qword [rax + 0x50]
mov qword [rbp - 0x30], rcx
mov qword [rbp - 0x28], rbx
mov rcx, qword [rax + 0x58]
mov rbx, qword [rax + 0x60]
mov qword [rbp - 0x20], rcx
mov qword [rbp - 0x18], rbx
mov rcx, qword [rax + 0x68]
mov rbx, qword [rax + 0x70]
mov qword [rbp - 0x10], rcx
mov qword [rbp - 8], rbx
mov rcx, qword [rax + 0x78]
mov rbx, qword [rax + 0x80]
mov qword [rbp], rcx
mov qword [rbp + 8], rbx
mov rcx, qword [rax + 0x88]
mov rbx, qword [rax + 0x90]
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rbx
mov rcx, qword [rax + 0x98]
mov rbx, qword [rax + 0xa0]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rbx
mov rcx, qword [rax + 0xa8]
mov rbx, qword [rax + 0xb0]
mov qword [rbp + 0x30], rcx
mov qword [rbp + 0x38], rbx
mov rcx, qword [rax + 0xb8]
mov rbx, qword [rax + 0xc0]
mov qword [rbp + 0x40], rcx
mov qword [rbp + 0x48], rbx
mov rcx, qword [rax + 0xc8]
mov rbx, qword [rax + 0xd0]
mov qword [rbp + 0x50], rcx
mov qword [rbp + 0x58], rbx
mov rcx, qword [rax + 0xd8]
mov rbx, qword [rax + 0xe0]
mov qword [rbp + 0x60], rcx
mov qword [rbp + 0x68], rbx
mov rcx, qword [rax + 0xe8]
mov rbx, qword [rax + 0xf0]
mov qword [rbp + 0x70], rcx
mov qword [rbp + 0x78], rbx
mov rdx, qword [rax + 0x100]
mov rax, qword [rax + 0xf8]
mov qword [rbp + 0x80], rax
mov qword [rbp + 0x88], rdx
mov eax, dword [rbp + 0x10]
test eax, eax
jne 0x3978a1b45
mov rax, qword [rbp + 0xc8]
jmp 0x3978a1c6d
mov eax, dword [rbp + 0x10]
mov edx, eax
mov rax, qword [rbp + 0xf0]
add rax, rdx
mov qword [rbp + 0xa8], rax
mov rax, qword [rbp + 0xa8]
mov eax, dword [rax + 0x1c]
mov edx, eax
mov rax, qword [rbp + 0xf0]
add rax, rdx
mov qword [rbp + 0xa0], rax
mov rax, qword [rbp + 0xa8]
mov eax, dword [rax + 0x24]
mov edx, eax
mov rax, qword [rbp + 0xf0]
add rax, rdx
mov qword [rbp + 0x98], rax
mov rax, qword [rbp + 0xa8]
mov eax, dword [rax + 0x20]
mov edx, eax
mov rax, qword [rbp + 0xf0]
add rax, rdx
mov qword [rbp + 0x90], rax
mov dword [rbp + 0xc4], 0
jmp 0x3978a1c50
mov eax, dword [rbp + 0xc4]
lea rdx, [rax*4]
mov rax, qword [rbp + 0x90]
add rax, rdx
mov eax, dword [rax]
mov edx, eax
mov rax, qword [rbp + 0xf0]
add rax, rdx
mov rcx, rax
mov rax, qword [rbp + 0xf8]
mov rdx, rax
mov rax, qword [sym.imp.msvcrt.dll__stricmp]
call rax
test eax, eax
sete al
test al, al
je 0x3978a1c49
mov eax, dword [rbp + 0xc4]
lea rdx, [rax + rax]
mov rax, qword [rbp + 0x98]
add rax, rdx
movzx eax, word [rax]
movzx eax, ax
lea rdx, [rax*4]
mov rax, qword [rbp + 0xa0]
add rax, rdx
mov eax, dword [rax]
mov edx, eax
mov rax, qword [rbp + 0xf0]
add rax, rdx
mov qword [rbp + 0xc8], rax
jmp 0x3978a1c66
add dword [rbp + 0xc4], 1
mov rax, qword [rbp + 0xa8]
mov eax, dword [rax + 0x18]
cmp dword [rbp + 0xc4], eax
jb 0x3978a1bc1
mov rax, qword [rbp + 0xc8]
add rsp, 0x158
pop rbx
pop rbp
ret