Function at 0x14002ed30
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x160
mov rax, qword [0x140048010]
xor rax, rsp
mov qword [rsp + 0x158], rax
mov eax, 4
mov eax, eax
mov rcx, qword gs:[0x58]
mov rcx, qword [rcx]
mov eax, dword [rax + rcx]
cmp dword [0x140048fe0], eax
jle 0x14002edd6
lea rcx, [0x140048fe0]
call fcn.14003207c
cmp dword [0x140048fe0], 0xffffffff
jne 0x14002edd6
lea rax, [rsp + 0x30]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rdx, [rsp + 0x100]
lea rcx, [rsp + 0x30]
call fcn.14002b7f0
mov rcx, rax
call fcn.14002d9d0
mov r8d, 1
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov qword [0x140048ff0], rax
lea rcx, [0x140048fe0]
call fcn.14003201c
mov eax, 4
mov eax, eax
mov rcx, qword gs:[0x58]
mov rcx, qword [rcx]
mov eax, dword [rax + rcx]
cmp dword [0x140048fb4], eax
jle 0x14002ee23
lea rcx, [0x140048fb4]
call fcn.14003207c
cmp dword [0x140048fb4], 0xffffffff
jne 0x14002ee23
mov rax, qword [0x140048ff0]
mov qword [0x140048ee8], rax
lea rcx, [0x140048fb4]
call fcn.14003201c
mov rax, qword [0x140048ee8]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x14002ee3b
xor eax, eax
jmp 0x14002f358
mov eax, 4
mov eax, eax
mov rcx, qword gs:[0x58]
mov rcx, qword [rcx]
mov eax, dword [rax + rcx]
cmp dword [0x140048f2c], eax
jle 0x14002ee99
lea rcx, [0x140048f2c]
call fcn.14003207c
cmp dword [0x140048f2c], 0xffffffff
jne 0x14002ee99
mov rax, qword [0x140048ee8]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [0x140048ff0]
add rcx, rax
mov rax, rcx
mov qword [0x140048e90], rax
lea rcx, [0x140048f2c]
call fcn.14003201c
mov rax, qword [0x140048e90]
cmp dword [rax], 0x4550
je 0x14002eeaf
xor eax, eax
jmp 0x14002f358
mov eax, 4
mov eax, eax
mov rcx, qword gs:[0x58]
mov rcx, qword [rcx]
mov eax, dword [rax + rcx]
cmp dword [0x140048fb0], eax
jle 0x14002ef02
lea rcx, [0x140048fb0]
call fcn.14003207c
cmp dword [0x140048fb0], 0xffffffff
jne 0x14002ef02
mov rax, qword [0x140048e90]
add rax, 0x108
mov qword [0x140048e18], rax
lea rcx, [0x140048fb0]
call fcn.14003201c
mov eax, 4
mov eax, eax
mov rcx, qword gs:[0x58]
mov rcx, qword [rcx]
mov eax, dword [rax + rcx]
cmp dword [0x140048e40], eax
jle 0x14002ef4f
lea rcx, [0x140048e40]
call fcn.14003207c
cmp dword [0x140048e40], 0xffffffff
jne 0x14002ef4f
mov rax, qword [0x140048e18]
mov qword [0x140049000], rax
lea rcx, [0x140048e40]
call fcn.14003201c
mov eax, 4
mov eax, eax
mov rcx, qword gs:[0x58]
mov rcx, qword [rcx]
mov eax, dword [rax + rcx]
cmp dword [0x140048e30], eax
jle 0x14002efa0
lea rcx, [0x140048e30]
call fcn.14003207c
cmp dword [0x140048e30], 0xffffffff
jne 0x14002efa0
mov rax, qword [0x140048e90]
movzx eax, word [rax + 6]
mov word [0x140048ff8], ax
lea rcx, [0x140048e30]
call fcn.14003201c
mov r8d, 5
mov dl, 1
lea rcx, [0x140048da9]
call fcn.14001e4a0
movzx eax, al
test eax, eax
jne 0x14002f053
jmp 0x14002efd3
mov rax, qword [0x140048e18]
add rax, 0x28
mov qword [0x140048e18], rax
movzx eax, word [0x140048ff8]
imul rax, rax, 0x28
mov rcx, qword [0x140049000]
add rcx, rax
mov rax, rcx
cmp qword [0x140048e18], rax
jae 0x14002f053
lea rax, [rsp + 0x31]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rdx, [rsp + 0xd0]
lea rcx, [rsp + 0x31]
call fcn.14002ecb0
mov rcx, rax
call fcn.14002d950
mov rcx, qword [0x140048e18]
mov rcx, qword [0x140048e18]
sub rax, rcx
movzx edx, byte [rcx]
cmp dl, byte [rcx + rax]
jne 0x14002f043
inc rcx
test dl, dl
jne 0x14002f030
xor eax, eax
jmp 0x14002f048
sbb eax, eax
or eax, 1
test eax, eax
jne 0x14002f04e
jmp 0x14002f053
jmp 0x14002efc1
mov eax, 4
mov eax, eax
mov rcx, qword gs:[0x58]
mov rcx, qword [rcx]
mov eax, dword [rax + rcx]
cmp dword [0x140049018], eax
jle 0x14002f0b0
lea rcx, [0x140049018]
call fcn.14003207c
cmp dword [0x140049018], 0xffffffff
jne 0x14002f0b0
mov rax, qword [0x140048e18]
mov eax, dword [rax + 0xc]
mov rcx, qword [0x140048ff0]
add rcx, rax
mov rax, rcx
mov qword [0x140048e60], rax
lea rcx, [0x140049018]
call fcn.14003201c
mov edx, 0x10
lea rcx, [rsp + 0x118]
call fcn.14001a6d0
mov rax, qword [0x140048e18]
mov eax, dword [rax + 0x10]
mov r8d, eax
mov rdx, qword [0x140048e60]
lea rcx, [rsp + 0x118]
call fcn.14001b540
mov edx, 0x17
lea rcx, [rsp + 0x128]
call fcn.140030da0
mov qword [rsp + 0x40], 0
jmp 0x14002f10d
mov rax, qword [rsp + 0x40]
inc rax
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0x17
jae 0x14002f16c
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x170]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x178]
add rdx, rcx
mov rcx, rdx
mov r8, rcx
mov rdx, rax
lea rcx, [rsp + 0x37]
call fcn.140030df0
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x128]
call fcn.140030740
lea rdx, [rsp + 0x37]
mov rcx, rax
call fcn.140030d50
jmp 0x14002f100
mov edx, 8
lea rcx, [rsp + 0x110]
call fcn.14001a6d0
lea rax, [rsp + 0x32]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
movzx eax, byte [rsp + 0x32]
mov byte [rsp + 0x33], al
movzx eax, byte [rsp + 0x33]
mov byte [rsp + 0x34], al
movzx eax, byte [rsp + 0x34]
mov byte [rsp + 0x35], al
movzx eax, byte [rsp + 0x35]
mov byte [rsp + 0x36], al
lea rdx, [rsp + 0xd8]
lea rcx, [rsp + 0x128]
call fcn.140030760
mov rax, qword [rax]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0xc0], rax
lea rdx, [rsp + 0xe0]
lea rcx, [rsp + 0x128]
call fcn.140030790
mov rax, qword [rax]
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0xc8], rax
lea rdx, [rsp + 0xe8]
lea rcx, [rsp + 0x118]
call fcn.140030b10
mov rax, qword [rax]
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x50], rax
lea rdx, [rsp + 0xf0]
lea rcx, [rsp + 0x118]
call fcn.140030b40
mov rax, qword [rax]
mov qword [rsp + 0xa8], rax
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0xb8], rax
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0x58], rax
movzx eax, byte [rsp + 0x36]
mov byte [rsp + 0x28], al
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0xc8]
mov r8, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x110]
call fcn.140030e30
lea rdx, [rsp + 0xf8]
lea rcx, [rsp + 0x118]
call fcn.140030b10
mov rdx, rax
lea rcx, [rsp + 0x110]
call fcn.140022d40
movzx eax, al
test eax, eax
je 0x14002f341
mov qword [rsp + 0x48], 0
jmp 0x14002f353
lea rcx, [rsp + 0x110]
call fcn.14001b4b0
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x158]
xor rcx, rsp
call fcn.140031c10
add rsp, 0x160
pop rdi
ret