Function at 0x14003d084
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], r9
mov dword [rax + 0x18], r8d
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rbp
push rbx
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x78
and dword [rbp - 0x58], 0
mov edi, r8d
mov rbx, rdx
mov rsi, rcx
test r9, r9
jne 0x14003d0e9
cmp dword [0x1400ea930], r9d
je 0x14003d30b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rbx, rbx
cmove rbx, rax
mov qword [rbp + 0x30], rbx
cmp rbx, rax
jne 0x14003d0e9
mov eax, dword [rbp - 0x58]
test edi, edi
mov ecx, 1
cmove eax, ecx
mov dword [rbp - 0x58], eax
lea r8, [rbp - 0x40]
lea rdx, [rbp + 0x30]
mov rcx, rsi
call fcn.14002e230
test rax, rax
je 0x14003d10d
mov rdx, qword [rax + 8]
mov eax, 1
mov qword [rbp - 0x48], rdx
jmp 0x14003d115
mov rcx, qword [rbp + 0x40]
mov qword [rbp - 0x48], rcx
movzx ecx, al
xor eax, eax
test ecx, ecx
sete al
test edi, edi
cmovne eax, ecx
test eax, eax
jne 0x14003d30b
mov eax, 0x5a4d
cmp word [rbx], ax
jne 0x14003d30b
movsxd rax, dword [rbx + 0x3c]
cmp dword [rax + rbx], 0x4550
jne 0x14003d30b
mov eax, dword [rax + rbx + 0x90]
mov dword [rbp - 0x54], eax
test eax, eax
je 0x14003d30b
lea rdx, [rbp + 0x30]
mov rcx, rsi
test edi, edi
je 0x14003d173
call fcn.14003d378
and qword [rax], 0
jmp 0x14003d1a6
lea r8, [rbp - 0x50]
call fcn.14002e230
mov rdi, rax
test rax, rax
jne 0x14003d197
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov ecx, 0xc000008c
call qword [sym.imp.KERNEL32.dll_RaiseException]
mov r8, qword [rbp - 0x50]
mov rdx, rdi
mov rcx, rsi
call fcn.14003d40c
mov edi, dword [rbp - 0x54]
add rdi, rbx
jmp 0x14003d2f0
add rax, rbx
lea rdx, str.KERNEL32.DLL
mov rcx, rax
mov qword [rbp - 0x40], rax
call fcn.1400968b4
test eax, eax
jne 0x14003d2c1
mov eax, dword [rdi]
mov esi, dword [rdi + 0x10]
add rax, rbx
add rsi, rbx
mov rcx, qword [rax]
mov qword [rbp - 0x50], rax
test rcx, rcx
je 0x14003d2e8
movabs rdx, 0x8000000000000000
test rdx, rcx
jne 0x14003d269
add rcx, 2
lea rdx, str.SetUnhandledExceptionFilter
add rcx, rbx
call fcn.140082180
test eax, eax
jne 0x14003d265
mov rax, qword [rsi]
xor ecx, ecx
lea rdx, [0x14003d374]
cmp rax, rdx
mov qword [rbp - 0x40], rax
mov eax, 1
setne cl
cmp dword [rbp + 0x38], 0
cmovne eax, ecx
test eax, eax
je 0x14003d265
lea rdx, [rbp - 0x38]
mov r8d, gethostbyname
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
mov rdx, qword [rbp - 0x20]
mov rcx, qword [rbp - 0x38]
lea r9, [rbp - 0x54]
mov r8d, 4
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14003d276
mov rax, qword [rbp - 0x50]
add rax, 8
add rsi, 8
jmp 0x14003d1da
mov rax, qword [rbp - 0x48]
cmp dword [rbp + 0x38], 0
mov r8d, dword [rbp - 0x14]
mov rdx, qword [rbp - 0x20]
lea rcx, [0x14003d374]
lea r9, [rbp - 0x54]
cmovne rax, rcx
mov rcx, qword [rbp - 0x38]
mov qword [rsi], rax
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp dword [rbp + 0x38], 0
mov rsi, qword [rbp + 0x28]
je 0x14003d2ec
lea rdx, [rbp + 0x30]
mov rcx, rsi
call fcn.14003d378
mov rcx, qword [rbp - 0x40]
mov qword [rax], rcx
jmp 0x14003d2ec
mov rcx, qword [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x14003d2ec
mov r9, qword [rbp + 0x40]
mov r8d, dword [rbp + 0x38]
mov rdx, rax
inc r9
mov rcx, rsi
call fcn.14003d084
jmp 0x14003d2ec
mov rsi, qword [rbp + 0x28]
add rdi, 0x14
mov eax, dword [rdi + 0xc]
test eax, eax
jne 0x14003d1b1
cmp dword [rbp - 0x58], eax
je 0x14003d30b
lea edx, [rax + 1]
mov rcx, rsi
call fcn.14002dd54
add rsp, 0x78
pop rdi
pop rsi
pop rbx
pop rbp
ret