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

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xb8
xor eax, eax
lea rbx, [rsp + 0x30]
mov r15, rcx
mov ecx, 0x10
mov rdi, rbx
test r15, r15
mov rsi, rdx
rep stosq qword [rdi], rax
je 0x402db8
cmp word [r15], 0x5a4d
je 0x402de0
xor ebx, ebx
mov rax, rbx
add rsp, 0xb8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
movsxd rdi, dword [r15 + 0x3c]
add rdi, r15
cmp dword [rdi], 0x4550
jne 0x402db8
lea rcx, [0x0041dc40]
mov edx, 0xa7ba306
call fcn.00411ed0
mov edx, 0x7f17dce2
mov rcx, rax
call fcn.00412120
test byte [rdi + 0x17], 0x20
je 0x402db8
lea rcx, [0x0041dfc0]
mov edx, 0x7fa406
call fcn.00411ed0
mov edx, 0x60623fe2
mov rcx, rax
call fcn.00412120
movsxd rdx, dword [r15 + 0x3c]
add rdx, r15
lea rax, [rdx + 0x88]
mov rdx, qword [rdx + 0x88]
mov rdi, rdx
mov qword [rbx], rdx
mov rdx, qword [rax + 8]
shr rdi, 0x20
test edi, edi
mov qword [rbx + 8], rdx
mov rdx, qword [rax + 0x10]
mov qword [rbx + 0x10], rdx
mov rdx, qword [rax + 0x18]
mov qword [rbx + 0x18], rdx
mov rdx, qword [rax + 0x20]
mov qword [rbx + 0x20], rdx
mov rdx, qword [rax + 0x28]
mov qword [rbx + 0x28], rdx
mov rdx, qword [rax + 0x30]
mov qword [rbx + 0x30], rdx
mov rdx, qword [rax + 0x38]
mov qword [rbx + 0x38], rdx
mov rdx, qword [rax + 0x40]
mov qword [rbx + 0x40], rdx
mov rdx, qword [rax + 0x48]
mov qword [rbx + 0x48], rdx
mov rdx, qword [rax + 0x50]
mov qword [rbx + 0x50], rdx
mov rdx, qword [rax + 0x58]
mov qword [rbx + 0x58], rdx
mov rdx, qword [rax + 0x60]
mov qword [rbx + 0x60], rdx
mov rdx, qword [rax + 0x68]
mov qword [rbx + 0x68], rdx
mov rdx, qword [rax + 0x70]
mov rax, qword [rax + 0x78]
mov qword [rbx + 0x70], rdx
mov qword [rbx + 0x78], rax
je 0x402db8
movsxd rax, dword [rsp + 0x30]
test eax, eax
je 0x402db8
lea rcx, [0x0041df60]
mov edx, 0x4eef3562
lea rbx, [rax + r15]
call fcn.00411ed0
mov edx, 0x1caa90c6
lea r13, section..rdata
mov rcx, rax
call fcn.00412120
movsxd rbp, dword [rbx + 0x1c]
add rbp, r15
cmp rsi, r13
je 0x4030d0
cmp byte [rsi], 0
je 0x4030d0
mov r14d, dword [rbx + 0x18]
test r14d, r14d
js 0x403070
mov eax, dword [rbp]
xor edi, edi
mov dword [rsp + 0x2c], eax
movsxd rax, dword [rbx + 0x20]
mov r12d, dword [rax + r15]
nop dword [rax]
lea rcx, [0x0041dee0]
mov edx, 0x6681e7a2
movsxd rbx, r12d
call fcn.00412120
mov edx, 0x7fa406
add rbx, r15
lea rcx, [0x0041deb0]
call fcn.00412120
mov rdx, r13
test rax, rax
je 0x402f7c
cmp qword [rax], 0
lea rdx, [rax + 0x10]
cmove rdx, r13
mov rcx, rbx
call fcn.00412600
test eax, eax
jne 0x403090
add rbp, 4
mov eax, dword [rbp]
mov dword [rsp + 0x2c], eax
test rbx, rbx
je 0x403060
cmp rsi, rbx
jne 0x4030a0
mov eax, dword [0x0042a7e0]
test eax, eax
je 0x402fc4
lea rcx, [0x0041de80]
mov edx, 0x4eef3562
call fcn.00412120
lea rcx, [0x0041de60]
mov edx, 0x24910946
call fcn.00412120
mov edx, 0x56519922
lea rcx, [0x0041de20]
call fcn.00412120
mov edx, 0x4741086
lea rcx, [0x0041de00]
call fcn.00412120
mov edx, 0x8b602e2
lea rcx, [0x0041ddc0]
call fcn.00412120
mov edx, 0x188689c6
lea rcx, [0x0041dd80]
call fcn.00412120
mov edx, 0x61cae2a2
lea rcx, [0x0041dd60]
call fcn.00412120
mov edx, 0x1462c506
lea rcx, [0x0041dd20]
call fcn.00412120
movsxd rbx, dword [rsp + 0x2c]
add rbx, r15
lea rcx, [0x0041dc80]
mov edx, 0x4c739246
call fcn.00412120
jmp 0x402dba
add r12d, 1
add edi, 1
cmp r14d, edi
jge 0x402f40
lea rcx, [0x0041dc80]
mov edx, 0x4c739246
call fcn.00412120
jmp 0x402db8
add r14d, 1
jmp 0x402f97
mov rcx, rbx
call sub.msvcrt.dll_strlen
mov rdx, rbx
mov rcx, rsi
mov qword [rsp + 0x20], rax
call sub.msvcrt.dll_strcmp
test eax, eax
je 0x402fa9
mov rax, qword [rsp + 0x20]
lea r12d, [r12 + rax + 1]
jmp 0x403064
lea rcx, [0x0041df20]
mov edx, 0x1d7c2862
call fcn.00412120
movsxd rbx, dword [rbp - 4]
add rbx, r15
jmp 0x403043