Function at 0x140059640
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x318
mov dword [rsp + 0x30], 0
lea rcx, str.user32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea rcx, str.win32u.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov r8, qword [rsp + 0x338]
lea rdx, str.C:WindowsSystem32drivers_
lea rcx, [rsp + 0x78]
call fcn.140015270
nop
xor r8d, r8d
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x1a0]
call fcn.1400254f0
nop
lea rcx, [rsp + 0x1a0]
call fcn.140058760
movzx eax, al
test eax, eax
jne 0x1400596cd
mov dword [rsp + 0x38], 1
jmp 0x1400596d5
mov dword [rsp + 0x38], 0
movzx eax, byte [rsp + 0x38]
mov byte [rsp + 0x34], al
lea rcx, [rsp + 0x1a0]
call fcn.140046500
movzx eax, byte [rsp + 0x34]
test eax, eax
je 0x140059762
mov rax, qword [rsp + 0x330]
add rax, 0x40
mov rdi, rax
xor eax, eax
mov ecx, reloc.WS2_32.dll_recv
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x330]
mov rcx, rax
call fcn.140007b30
nop
mov rax, qword [rsp + 0x330]
add rax, 0x20
mov rcx, rax
call fcn.140007b30
nop
mov eax, dword [rsp + 0x30]
or eax, 1
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x78]
call fcn.140008a60
nop
mov rcx, qword [rsp + 0x338]
call fcn.140008a60
mov rax, qword [rsp + 0x330]
jmp 0x140059c1d
mov dword [rsp + 0x20], 1
mov r9d, 0x40
mov r8d, 0x20
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x200]
call fcn.1400416f0
nop
lea rcx, [rsp + 0x35]
call fcn.140003210
mov qword [rsp + 0xa0], rax
lea rax, [rsp + 0x1c0]
mov qword [rsp + 0x98], rax
mov rcx, qword [rsp + 0x98]
call fcn.140042780
lea rcx, [rsp + 0xd8]
mov rdi, rcx
mov rsi, rax
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0xf8]
lea rcx, [rsp + 0xd8]
mov rdi, rax
mov rsi, rcx
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
lea rdx, [rsp + 0x200]
lea rcx, [rsp + 0x1d0]
call fcn.140042700
lea rcx, [rsp + 0xe8]
mov rdi, rcx
mov rsi, rax
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x108]
lea rcx, [rsp + 0xe8]
mov rdi, rax
mov rsi, rcx
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x120]
lea rcx, [rsp + 0xf8]
mov rdi, rax
mov rsi, rcx
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x130]
lea rcx, [rsp + 0x108]
mov rdi, rax
mov rsi, rcx
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
mov r9, qword [rsp + 0xa0]
lea r8, [rsp + 0x120]
lea rdx, [rsp + 0x130]
lea rcx, [rsp + 0x60]
call fcn.140025bd0
nop
lea rcx, [rsp + 0x60]
call fcn.14000af50
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140059937
mov rax, qword [rsp + 0x330]
add rax, 0x40
mov rdi, rax
xor eax, eax
mov ecx, reloc.WS2_32.dll_recv
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x330]
mov rcx, rax
call fcn.140007b30
nop
mov rax, qword [rsp + 0x330]
add rax, 0x20
mov rcx, rax
call fcn.140007b30
nop
mov eax, dword [rsp + 0x30]
or eax, 1
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x60]
call fcn.140008d20
nop
lea rcx, [rsp + 0x200]
call fcn.140048cc0
nop
lea rcx, [rsp + 0x78]
call fcn.140008a60
nop
mov rcx, qword [rsp + 0x338]
call fcn.140008a60
mov rax, qword [rsp + 0x330]
jmp 0x140059c1d
lea rcx, [rsp + 0x60]
call fcn.14000af50
mov rcx, qword [rsp + 0x40]
movsxd rcx, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
cmp dword [rax], 0x4550
je 0x1400599ea
mov rax, qword [rsp + 0x330]
add rax, 0x40
mov rdi, rax
xor eax, eax
mov ecx, reloc.WS2_32.dll_recv
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x330]
mov rcx, rax
call fcn.140007b30
nop
mov rax, qword [rsp + 0x330]
add rax, 0x20
mov rcx, rax
call fcn.140007b30
nop
mov eax, dword [rsp + 0x30]
or eax, 1
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x60]
call fcn.140008d20
nop
lea rcx, [rsp + 0x200]
call fcn.140048cc0
nop
lea rcx, [rsp + 0x78]
call fcn.140008a60
nop
mov rcx, qword [rsp + 0x338]
call fcn.140008a60
mov rax, qword [rsp + 0x330]
jmp 0x140059c1d
lea rax, [rsp + 0x1e0]
mov qword [rsp + 0xa8], rax
mov rdx, qword [rsp + 0x340]
mov rcx, qword [rsp + 0xa8]
call fcn.140007a80
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0xb8], rax
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0xc0], rax
lea rcx, [rsp + 0x60]
call fcn.14000af50
mov qword [rsp + 0xc8], rax
mov r8, qword [rsp + 0xc0]
mov rdx, qword [rsp + 0xc8]
lea rcx, [rsp + 0x140]
call fcn.14005ae20
lea rax, [rsp + 0x140]
mov qword [rsp + 0x48], rax
mov rcx, qword [rsp + 0x48]
call fcn.14001b2e0
mov qword [rsp + 0xd0], rax
mov rcx, qword [rsp + 0x48]
call fcn.140003210
mov qword [rsp + 0x58], rax
mov eax, dword [rsp + 0x348]
mov rcx, qword [rsp + 0x58]
cmp rax, qword [rcx]
jbe 0x140059b30
mov rax, qword [rsp + 0x330]
add rax, 0x40
mov rdi, rax
xor eax, eax
mov ecx, reloc.WS2_32.dll_recv
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x330]
mov rcx, rax
call fcn.140007b30
nop
mov rax, qword [rsp + 0x330]
add rax, 0x20
mov rcx, rax
call fcn.140007b30
nop
mov eax, dword [rsp + 0x30]
or eax, 1
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x60]
call fcn.140008d20
nop
lea rcx, [rsp + 0x200]
call fcn.140048cc0
nop
lea rcx, [rsp + 0x78]
call fcn.140008a60
nop
mov rcx, qword [rsp + 0x338]
call fcn.140008a60
mov rax, qword [rsp + 0x330]
jmp 0x140059c1d
lea rcx, [rsp + 0x150]
call fcn.140007b30
nop
lea rcx, [rsp + 0x170]
call fcn.140007b30
nop
lea rax, [rsp + 0x190]
mov rdi, rax
xor eax, eax
mov ecx, reloc.WS2_32.dll_recv
rep stosb byte [rdi], al
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x150]
call fcn.140008f20
mov rdx, qword [rsp + 0x338]
lea rcx, [rsp + 0x170]
call fcn.140008f20
mov rax, qword [rsp + 0x50]
movzx eax, word [rax + 6]
mov dword [rsp + 0x198], eax
mov rax, qword [rsp + 0xd0]
mov eax, dword [rax]
mov dword [rsp + 0x190], eax
mov rax, qword [rsp + 0x58]
mov eax, dword [rax]
mov dword [rsp + 0x194], eax
lea rdx, [rsp + 0x150]
mov rcx, qword [rsp + 0x330]
call fcn.140044d70
mov eax, dword [rsp + 0x30]
or eax, 1
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x150]
call fcn.140008b60
nop
lea rcx, [rsp + 0x60]
call fcn.140008d20
nop
lea rcx, [rsp + 0x200]
call fcn.140048cc0
nop
lea rcx, [rsp + 0x78]
call fcn.140008a60
nop
mov rcx, qword [rsp + 0x338]
call fcn.140008a60
mov rax, qword [rsp + 0x330]
add rsp, 0x318
pop rdi
pop rsi
ret