Function at 0x1400012c0
Capabilities:
Parse pe header

Disassembly:
push rbp
sub rsp, 0x50
mov rbp, rcx
lea rcx, str.___Fix_Import_Address_Table_n
call fcn.140001040
test rbp, rbp
je 0x1400015ad
mov eax, 0x5a4d
cmp word [rbp], ax
jne 0x1400015ad
movsxd rax, dword [rbp + 0x3c]
cmp eax, 0x400
jg 0x1400015ad
cmp dword [rax + rbp], 0x4550
jne 0x1400015ad
mov ecx, dword [rax + rbp + 0x90]
test ecx, ecx
je 0x1400015ad
mov edx, dword [rax + rbp + 0x94]
mov eax, ecx
mov qword [rsp + 0x70], rdx
test rdx, rdx
je 0x1400015a5
mov qword [rsp + 0x78], rbx
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x40], rdi
movabs rdi, 0x8000000080000000
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], r14
lea r14, [rbp + 0x10]
add r14, rcx
mov qword [rsp + 0x20], r15
mov rcx, 0xfffffffffffffff0
mov qword [rsp + 0x60], r14
sub rcx, rax
sub rcx, rbp
mov qword [rsp + 0x68], rcx
nop word [rax + rax]
cmp dword [r14 - 0x10], 0
jne 0x140001391
cmp dword [r14], 0
je 0x140001582
mov r15d, dword [r14 - 4]
lea rcx, str._______Import_DLL:__s_n
add r15, rbp
mov rdx, r15
call fcn.140001040
mov ecx, dword [r14]
mov eax, dword [r14 - 0x10]
mov r12d, ecx
test eax, eax
lea r14, [0x140001270]
lea r13, [rcx + rbp]
cmovne r12d, eax
mov rbx, r13
nop word [rax + rax]
mov rsi, rbx
sub rsi, r13
add rsi, r12
mov rax, qword [rsi + rbp]
test rdi, rax
je 0x14000141c
mov rcx, r15
movzx edi, ax
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rcx, rax
mov edx, edi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdx, qword [rsi + rbp]
lea rcx, str._________V__API__x_at__x_n
mov r8, rax
mov rdi, rax
call fcn.140001040
mov qword [rbx], rdi
movabs rdi, 0x8000000080000000
mov rax, qword [rbx]
test rax, rax
je 0x140001561
mov rcx, qword [rsi + rbp]
cmp rax, rcx
jne 0x14000154e
lea rdi, [rbp + 2]
add rdi, rcx
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rcx, rax
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdx, rdi
lea rcx, str._________V__API__s_at__x_n
mov r8, rax
mov rsi, rax
call fcn.140001040
cmp byte [0x14002c890], 0
je 0x14000154b
lea rdx, [0x1400268e8]
mov rcx, rdi
call fcn.14000e50c
test eax, eax
jne 0x14000149c
mov qword [rbx], r14
movabs rdi, 0x8000000080000000
add rbx, 8
jmp 0x1400013d0
cmp byte [0x14002c890], 0
je 0x14000154b
lea rdx, [0x1400268f8]
mov rcx, rdi
call fcn.14000e50c
test eax, eax
jne 0x1400014d9
lea rax, [0x140001260]
movabs rdi, 0x8000000080000000
mov qword [rbx], rax
add rbx, 8
jmp 0x1400013d0
cmp byte [0x14002c890], 0
je 0x14000154b
lea rdx, str.__wgetmainargs
mov rcx, rdi
call fcn.14000e50c
test eax, eax
jne 0x140001512
lea rax, [0x140001280]
movabs rdi, 0x8000000080000000
mov qword [rbx], rax
add rbx, 8
jmp 0x1400013d0
cmp byte [0x14002c890], 0
je 0x14000154b
lea rdx, str.__getmainargs
mov rcx, rdi
call fcn.14000e50c
test eax, eax
jne 0x14000154b
lea rax, [0x1400012a0]
movabs rdi, 0x8000000080000000
mov qword [rbx], rax
add rbx, 8
jmp 0x1400013d0
mov qword [rbx], rsi
add rbx, 8
movabs rdi, 0x8000000080000000
jmp 0x1400013d0
mov r14, qword [rsp + 0x60]
mov rax, qword [rsp + 0x68]
add r14, 0x14
add rax, r14
mov qword [rsp + 0x60], r14
cmp rax, qword [rsp + 0x70]
jb 0x140001380
mov r14, qword [rsp + 0x28]
mov r13, qword [rsp + 0x30]
mov r12, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x78]
mov r15, qword [rsp + 0x20]
mov al, 1
add rsp, 0x50
pop rbp
ret
xor al, al
add rsp, 0x50
pop rbp
ret