Function at 0x14017c3e0
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x520
mov rax, qword [0x14034e740]
xor rax, rsp
mov qword [rsp + 0x510], rax
mov dword [rsp + 0x30], 0
lea rcx, [rsp + 0x1d0]
call fcn.14017b950
nop
mov rax, qword [rsp + 0x540]
cmp qword [rax], 0
jne 0x14017c469
mov edx, 0xc00000ef
mov rcx, qword [rsp + 0x538]
call fcn.14017b370
mov eax, dword [rsp + 0x30]
or eax, 1
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x1d0]
call fcn.14015fa50
mov rax, qword [rsp + 0x538]
jmp 0x14017d053
mov edx, reloc.WS2_32.dll_recv
lea rcx, [rsp + 0x220]
call fcn.140182d90
lea rax, [fcn.140272df0]
mov qword [rsp + 0x88], rax
lea r8, [rsp + 0x88]
xor edx, edx
lea rcx, [rsp + 0x220]
call fcn.140178f20
nop
lea rax, [rsp + 0x2c0]
mov rdi, rax
xor eax, eax
mov ecx, 0x40
rep stosb byte [rdi], al
lea rax, [rsp + 0x300]
mov rdi, rax
xor eax, eax
mov ecx, 0x108
rep stosb byte [rdi], al
lea rax, [rsp + 0x300]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x300]
mov qword [rsp + 0x78], rax
mov dword [rsp + 0x38], 0
mov qword [rsp + 0x50], 0
mov rax, qword [rsp + 0x530]
mov rax, qword [rax + 8]
mov qword [rsp + 0x90], rax
mov byte [rsp + 0x20], 0
lea r9, [rsp + 0x2c0]
mov r8d, 0x40
mov rax, qword [rsp + 0x540]
mov rdx, qword [rax]
mov rcx, qword [rsp + 0x90]
call fcn.1401a2fa0
nop
movzx eax, word [rsp + 0x2c0]
cmp eax, 0x5a4d
je 0x14017c589
mov edx, 0xc000012f
mov rcx, qword [rsp + 0x538]
call fcn.14017b370
mov eax, dword [rsp + 0x30]
or eax, 1
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x220]
call fcn.14017b9b0
nop
lea rcx, [rsp + 0x1d0]
call fcn.14015fa50
mov rax, qword [rsp + 0x538]
jmp 0x14017d053
mov rax, qword [rsp + 0x530]
mov rax, qword [rax + 8]
mov qword [rsp + 0x98], rax
movsxd rax, dword [rsp + 0x2fc]
mov rcx, qword [rsp + 0x540]
add rax, qword [rcx]
mov byte [rsp + 0x20], 0
lea r9, [rsp + 0x300]
mov r8d, 0x108
mov rdx, rax
mov rcx, qword [rsp + 0x98]
call fcn.1401a2fa0
nop
mov rax, qword [rsp + 0x58]
cmp dword [rax], 0x4550
je 0x14017c626
mov edx, 0xc000007b
mov rcx, qword [rsp + 0x538]
call fcn.14017b370
mov eax, dword [rsp + 0x30]
or eax, 1
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x220]
call fcn.14017b9b0
nop
lea rcx, [rsp + 0x1d0]
call fcn.14015fa50
mov rax, qword [rsp + 0x538]
jmp 0x14017d053
mov rax, qword [rsp + 0x58]
movzx eax, word [rax + 0x18]
cmp eax, 0x10b
jne 0x14017c64f
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x58]
mov eax, dword [rcx + rax + 0x78]
mov qword [rsp + 0x50], rax
jmp 0x14017c669
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x78]
mov eax, dword [rcx + rax + 0x88]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x14017d013
mov rax, qword [rsp + 0x58]
movzx eax, word [rax + 0x18]
cmp eax, 0x10b
jne 0x14017c69d
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x58]
mov eax, dword [rcx + rax + 0x7c]
mov dword [rsp + 0x38], eax
jmp 0x14017c6b6
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x78]
mov eax, dword [rcx + rax + 0x8c]
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x38]
mov ecx, eax
call fcn.1402848d8
mov rdx, rax
lea rcx, [rsp + 0x220]
call fcn.140183520
lea rcx, [rsp + 0x220]
call fcn.140183250
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x530]
mov rax, qword [rax + 8]
mov qword [rsp + 0xa0], rax
mov eax, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x540]
mov rcx, qword [rcx]
add rcx, qword [rsp + 0x50]
mov byte [rsp + 0x20], 0
mov r9, qword [rsp + 0x40]
mov r8d, eax
mov rdx, rcx
mov rcx, qword [rsp + 0xa0]
call fcn.1401a2fa0
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0
jge 0x14017c777
mov edx, dword [rsp + 0x60]
mov rcx, qword [rsp + 0x538]
call fcn.14017b370
mov eax, dword [rsp + 0x30]
or eax, 1
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x220]
call fcn.14017b9b0
nop
lea rcx, [rsp + 0x1d0]
call fcn.14015fa50
mov rax, qword [rsp + 0x538]
jmp 0x14017d053
mov eax, dword [rsp + 0x38]
cmp rax, 0x28
ja 0x14017c890
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x40]
mov ecx, dword [rcx + 0x18]
cmp dword [rax + 0x14], ecx
jbe 0x14017c7a5
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0x14]
mov dword [rsp + 0x70], eax
jmp 0x14017c7b1
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0x18]
mov dword [rsp + 0x70], eax
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0x24]
sub rax, qword [rsp + 0x50]
imul ecx, dword [rsp + 0x70], 0xff
mov ecx, ecx
add rax, rcx
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x38]
mov ecx, eax
call fcn.1402848d8
mov rdx, rax
lea rcx, [rsp + 0x220]
call fcn.140183520
lea rcx, [rsp + 0x220]
call fcn.140183250
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x530]
mov rax, qword [rax + 8]
mov qword [rsp + 0xa8], rax
mov eax, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x540]
mov rcx, qword [rcx]
add rcx, qword [rsp + 0x50]
mov byte [rsp + 0x20], 0
mov r9, qword [rsp + 0x40]
mov r8d, eax
mov rdx, rcx
mov rcx, qword [rsp + 0xa8]
call fcn.1401a2fa0
mov dword [rsp + 0x64], eax
cmp dword [rsp + 0x64], 0
jge 0x14017c890
mov edx, dword [rsp + 0x64]
mov rcx, qword [rsp + 0x538]
call fcn.14017b370
mov eax, dword [rsp + 0x30]
or eax, 1
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x220]
call fcn.14017b9b0
nop
lea rcx, [rsp + 0x1d0]
call fcn.14015fa50
mov rax, qword [rsp + 0x538]
jmp 0x14017d053
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0x24]
add rax, qword [rsp + 0x40]
sub rax, qword [rsp + 0x50]
mov qword [rsp + 0xb8], rax
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0x20]
add rax, qword [rsp + 0x40]
sub rax, qword [rsp + 0x50]
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0x1c]
add rax, qword [rsp + 0x40]
sub rax, qword [rsp + 0x50]
mov qword [rsp + 0xc0], rax
mov dword [rsp + 0x48], 0
jmp 0x14017c8f2
mov eax, dword [rsp + 0x48]
inc eax
mov dword [rsp + 0x48], eax
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0x14]
cmp dword [rsp + 0x48], eax
jae 0x14017d013
mov eax, 0xffff
mov word [rsp + 0x34], ax
mov qword [rsp + 0x80], 0
cmp qword [rsp + 0x548], 0xffff
ja 0x14017c937
movzx eax, word [rsp + 0x48]
mov word [rsp + 0x34], ax
jmp 0x14017c9d0
cmp qword [rsp + 0x548], 0xffff
jbe 0x14017c98b
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0x18]
cmp dword [rsp + 0x48], eax
jae 0x14017c98b
mov eax, dword [rsp + 0x48]
mov rcx, qword [rsp + 0xb0]
mov eax, dword [rcx + rax*4]
add rax, qword [rsp + 0x40]
sub rax, qword [rsp + 0x50]
mov qword [rsp + 0x80], rax
mov eax, dword [rsp + 0x48]
mov rcx, qword [rsp + 0xb8]
movzx eax, word [rcx + rax*2]
mov word [rsp + 0x34], ax
jmp 0x14017c9d0
mov edx, 0xc0000225
mov rcx, qword [rsp + 0x538]
call fcn.14017b370
mov eax, dword [rsp + 0x30]
or eax, 1
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x220]
call fcn.14017b9b0
nop
lea rcx, [rsp + 0x1d0]
call fcn.14015fa50
mov rax, qword [rsp + 0x538]
jmp 0x14017d053
cmp qword [rsp + 0x548], 0xffff
ja 0x14017c9f7
movzx eax, word [rsp + 0x548]
movzx ecx, word [rsp + 0x34]
mov rdx, qword [rsp + 0x40]
add ecx, dword [rdx + 0x10]
cmp eax, ecx
je 0x14017ca3c
cmp qword [rsp + 0x548], 0xffff
jbe 0x14017d00e
mov rax, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x548]
sub rcx, rax
movzx edx, byte [rax]
cmp dl, byte [rax + rcx]
jne 0x14017ca2f
inc rax
test dl, dl
jne 0x14017ca1c
xor eax, eax
jmp 0x14017ca34
sbb eax, eax
or eax, 1
test eax, eax
jne 0x14017d00e
movzx eax, word [rsp + 0x34]
mov rcx, qword [rsp + 0xc0]
mov eax, dword [rcx + rax*4]
mov rcx, qword [rsp + 0x540]
add rax, qword [rcx]
mov qword [rsp + 0x1d0], rax
mov rax, qword [rsp + 0x540]
mov rax, qword [rax]
add rax, qword [rsp + 0x50]
cmp qword [rsp + 0x1d0], rax
jb 0x14017cf98
mov rax, qword [rsp + 0x540]
mov rax, qword [rax]
add rax, qword [rsp + 0x50]
mov ecx, dword [rsp + 0x38]
add rax, rcx
cmp qword [rsp + 0x1d0], rax
ja 0x14017cf98
lea rax, [rsp + 0x410]
mov rdi, rax
xor eax, eax
mov ecx, 0xff
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x530]
mov rax, qword [rax + 8]
mov qword [rsp + 0xc8], rax
mov byte [rsp + 0x20], 0
lea r9, [rsp + 0x410]
mov r8d, 0xff
mov rdx, qword [rsp + 0x1d0]
mov rcx, qword [rsp + 0xc8]
call fcn.1401a2fa0
lea rdx, [rsp + 0x410]
lea rcx, [rsp + 0x280]
call fcn.1400d4c50
nop
xor r8d, r8d
lea rdx, [0x1402e2e30]
lea rcx, [rsp + 0x280]
call fcn.140183180
mov r9, rax
xor r8d, r8d
lea rdx, [rsp + 0x110]
lea rcx, [rsp + 0x280]
call fcn.140183670
mov qword [rsp + 0xd0], rax
mov rax, qword [rsp + 0xd0]
mov qword [rsp + 0xd8], rax
lea r8, str..dll
mov rdx, qword [rsp + 0xd8]
lea rcx, [rsp + 0x2a0]
call fcn.1400f4e70
nop
lea rcx, [rsp + 0x110]
call fcn.1400d4b60
nop
xor r8d, r8d
lea rdx, [0x1402e2e34]
lea rcx, [rsp + 0x280]
call fcn.140183180
inc rax
mov r9, 0xffffffffffffffff
mov r8, rax
lea rdx, [rsp + 0x260]
lea rcx, [rsp + 0x280]
call fcn.140183670
nop
xor r8d, r8d
lea rdx, [rsp + 0x2a0]
lea rcx, [rsp + 0x240]
call fcn.140186620
nop
mov byte [rsp + 0x21a], 1
lea rdx, [rsp + 0x240]
lea rcx, [rsp + 0x1d8]
call fcn.14015fbc0
xor r8d, r8d
lea rdx, reloc.WLDAP32.dll_Ordinal_35
lea rcx, [rsp + 0x260]
call fcn.140183180
test rax, rax
jne 0x14017cc13
mov dword [rsp + 0x68], 1
jmp 0x14017cc1b
mov dword [rsp + 0x68], 0
movzx eax, byte [rsp + 0x68]
mov byte [rsp + 0x21b], al
movzx eax, byte [rsp + 0x21b]
test eax, eax
je 0x14017cc55
lea rcx, [rsp + 0x260]
call fcn.1400d4a80
inc rax
mov rcx, rax
call fcn.14028c674
mov word [rsp + 0x218], ax
jmp 0x14017cc6b
lea rdx, [rsp + 0x260]
lea rcx, [rsp + 0x1f8]
call fcn.14017ba60
nop
mov rax, qword [rsp + 0x58]
movzx eax, word [rax + 0x18]
cmp eax, 0x10b
jne 0x14017cc85
mov dword [rsp + 0x6c], 0
jmp 0x14017cc8d
mov dword [rsp + 0x6c], 1
mov eax, dword [rsp + 0x6c]
mov dword [rsp + 0x74], eax
mov edx, reloc.WS2_32.dll_recv
lea rcx, [rsp + 0x230]
call fcn.14016c1c0
mov rax, qword [rsp + 0x550]
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x74]
mov dword [rsp + 0x20], eax
xor r9d, r9d
lea r8, [rsp + 0x240]
lea rdx, [rsp + 0x230]
mov rcx, qword [rsp + 0x530]
call fcn.14017d4f0
nop
xor edx, edx
lea rcx, [rsp + 0x230]
call fcn.140179490
movzx eax, al
test eax, eax
je 0x14017cdb9
lea rax, [rsp + 0x130]
mov qword [rsp + 0xe0], rax
lea rdx, [rsp + 0x1d0]
mov rcx, qword [rsp + 0xe0]
call fcn.14017b8a0
mov qword [rsp + 0xe8], rax
mov r8d, 0x107
mov rdx, qword [rsp + 0xe8]
mov rcx, qword [rsp + 0x538]
call fcn.14017b3c0
mov eax, dword [rsp + 0x30]
or eax, 1
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x230]
call fcn.1400dcca0
nop
lea rcx, [rsp + 0x240]
call fcn.1400dc870
nop
lea rcx, [rsp + 0x260]
call fcn.1400d4b60
nop
lea rcx, [rsp + 0x2a0]
call fcn.1400d4b60
nop
lea rcx, [rsp + 0x280]
call fcn.1400d4b60
nop
lea rcx, [rsp + 0x220]
call fcn.14017b9b0
nop
lea rcx, [rsp + 0x1d0]
call fcn.14015fa50
nop
mov rax, qword [rsp + 0x538]
jmp 0x14017d053
movzx eax, byte [rsp + 0x21b]
test eax, eax
je 0x14017ce81
lea rcx, [rsp + 0x240]
call fcn.1400dc800
movzx ecx, word [rsp + 0x218]
mov qword [rsp + 0x20], rax
mov r9d, ecx
lea r8, [rsp + 0x230]
mov rdx, qword [rsp + 0x538]
mov rcx, qword [rsp + 0x530]
call fcn.14017d110
mov eax, dword [rsp + 0x30]
or eax, 1
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x230]
call fcn.1400dcca0
nop
lea rcx, [rsp + 0x240]
call fcn.1400dc870
nop
lea rcx, [rsp + 0x260]
call fcn.1400d4b60
nop
lea rcx, [rsp + 0x2a0]
call fcn.1400d4b60
nop
lea rcx, [rsp + 0x280]
call fcn.1400d4b60
nop
lea rcx, [rsp + 0x220]
call fcn.14017b9b0
nop
lea rcx, [rsp + 0x1d0]
call fcn.14015fa50
mov rax, qword [rsp + 0x538]
jmp 0x14017d053
lea rcx, [rsp + 0x240]
call fcn.1400dc800
mov qword [rsp + 0xf0], rax
lea rcx, [rsp + 0x260]
call fcn.1400d4a80
mov qword [rsp + 0xf8], rax
mov rax, qword [rsp + 0xf0]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0xf8]
lea r8, [rsp + 0x230]
mov rdx, qword [rsp + 0x538]
mov rcx, qword [rsp + 0x530]
call fcn.14017d110
mov eax, dword [rsp + 0x30]
or eax, 1
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x230]
call fcn.1400dcca0
nop
lea rcx, [rsp + 0x240]
call fcn.1400dc870
nop
lea rcx, [rsp + 0x260]
call fcn.1400d4b60
nop
lea rcx, [rsp + 0x2a0]
call fcn.1400d4b60
nop
lea rcx, [rsp + 0x280]
call fcn.1400d4b60
nop
lea rcx, [rsp + 0x220]
call fcn.14017b9b0
nop
lea rcx, [rsp + 0x1d0]
call fcn.14015fa50
mov rax, qword [rsp + 0x538]
jmp 0x14017d053
lea rax, [rsp + 0x180]
mov qword [rsp + 0x100], rax
lea rdx, [rsp + 0x1d0]
mov rcx, qword [rsp + 0x100]
call fcn.14015eee0
mov qword [rsp + 0x108], rax
xor r8d, r8d
mov rdx, qword [rsp + 0x108]
mov rcx, qword [rsp + 0x538]
call fcn.14017b3c0
mov eax, dword [rsp + 0x30]
or eax, 1
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x220]
call fcn.14017b9b0
nop
lea rcx, [rsp + 0x1d0]
call fcn.14015fa50
nop
mov rax, qword [rsp + 0x538]
jmp 0x14017d053
jmp 0x14017c8e8
mov edx, 0xc0000225
mov rcx, qword [rsp + 0x538]
call fcn.14017b370
mov eax, dword [rsp + 0x30]
or eax, 1
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x220]
call fcn.14017b9b0
nop
lea rcx, [rsp + 0x1d0]
call fcn.14015fa50
mov rax, qword [rsp + 0x538]
mov rcx, qword [rsp + 0x510]
xor rcx, rsp
call fcn.14023b800
add rsp, 0x520
pop rdi
ret