Function at 0x140156a20
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 [0x140320740]
xor rax, rsp
mov qword [rsp + 0x510], rax
mov dword [rsp + 0x30], 0
lea rcx, [rsp + 0x1d0]
call fcn.140155f90
nop
mov rax, qword [rsp + 0x540]
cmp qword [rax], 0
jne 0x140156aa9
mov edx, 0xc00000ef
mov rcx, qword [rsp + 0x538]
call fcn.1401559a0
mov eax, dword [rsp + 0x30]
or eax, 1
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x1d0]
call fcn.140139ef0
mov rax, qword [rsp + 0x538]
jmp 0x140157693
mov edx, reloc.WS2_32.dll_recv
lea rcx, [rsp + 0x220]
call fcn.14015d3e0
lea rax, [fcn.14024db70]
mov qword [rsp + 0x88], rax
lea r8, [rsp + 0x88]
xor edx, edx
lea rcx, [rsp + 0x220]
call fcn.1401534f0
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.14017d800
nop
movzx eax, word [rsp + 0x2c0]
cmp eax, 0x5a4d
je 0x140156bc9
mov edx, 0xc000012f
mov rcx, qword [rsp + 0x538]
call fcn.1401559a0
mov eax, dword [rsp + 0x30]
or eax, 1
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x220]
call fcn.140155ff0
nop
lea rcx, [rsp + 0x1d0]
call fcn.140139ef0
mov rax, qword [rsp + 0x538]
jmp 0x140157693
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.14017d800
nop
mov rax, qword [rsp + 0x58]
cmp dword [rax], 0x4550
je 0x140156c66
mov edx, 0xc000007b
mov rcx, qword [rsp + 0x538]
call fcn.1401559a0
mov eax, dword [rsp + 0x30]
or eax, 1
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x220]
call fcn.140155ff0
nop
lea rcx, [rsp + 0x1d0]
call fcn.140139ef0
mov rax, qword [rsp + 0x538]
jmp 0x140157693
mov rax, qword [rsp + 0x58]
movzx eax, word [rax + 0x18]
cmp eax, 0x10b
jne 0x140156c8f
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x58]
mov eax, dword [rcx + rax + 0x78]
mov qword [rsp + 0x50], rax
jmp 0x140156ca9
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 0x140157653
mov rax, qword [rsp + 0x58]
movzx eax, word [rax + 0x18]
cmp eax, 0x10b
jne 0x140156cdd
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x58]
mov eax, dword [rcx + rax + 0x7c]
mov dword [rsp + 0x38], eax
jmp 0x140156cf6
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.14025f6b8
mov rdx, rax
lea rcx, [rsp + 0x220]
call fcn.14015db70
lea rcx, [rsp + 0x220]
call fcn.14015d8a0
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.14017d800
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0
jge 0x140156db7
mov edx, dword [rsp + 0x60]
mov rcx, qword [rsp + 0x538]
call fcn.1401559a0
mov eax, dword [rsp + 0x30]
or eax, 1
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x220]
call fcn.140155ff0
nop
lea rcx, [rsp + 0x1d0]
call fcn.140139ef0
mov rax, qword [rsp + 0x538]
jmp 0x140157693
mov eax, dword [rsp + 0x38]
cmp rax, 0x28
ja 0x140156ed0
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x40]
mov ecx, dword [rcx + 0x18]
cmp dword [rax + 0x14], ecx
jbe 0x140156de5
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0x14]
mov dword [rsp + 0x70], eax
jmp 0x140156df1
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.14025f6b8
mov rdx, rax
lea rcx, [rsp + 0x220]
call fcn.14015db70
lea rcx, [rsp + 0x220]
call fcn.14015d8a0
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.14017d800
mov dword [rsp + 0x64], eax
cmp dword [rsp + 0x64], 0
jge 0x140156ed0
mov edx, dword [rsp + 0x64]
mov rcx, qword [rsp + 0x538]
call fcn.1401559a0
mov eax, dword [rsp + 0x30]
or eax, 1
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x220]
call fcn.140155ff0
nop
lea rcx, [rsp + 0x1d0]
call fcn.140139ef0
mov rax, qword [rsp + 0x538]
jmp 0x140157693
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 0x140156f32
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 0x140157653
mov eax, 0xffff
mov word [rsp + 0x34], ax
mov qword [rsp + 0x80], 0
cmp qword [rsp + 0x548], 0xffff
ja 0x140156f77
movzx eax, word [rsp + 0x48]
mov word [rsp + 0x34], ax
jmp 0x140157010
cmp qword [rsp + 0x548], 0xffff
jbe 0x140156fcb
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0x18]
cmp dword [rsp + 0x48], eax
jae 0x140156fcb
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 0x140157010
mov edx, 0xc0000225
mov rcx, qword [rsp + 0x538]
call fcn.1401559a0
mov eax, dword [rsp + 0x30]
or eax, 1
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x220]
call fcn.140155ff0
nop
lea rcx, [rsp + 0x1d0]
call fcn.140139ef0
mov rax, qword [rsp + 0x538]
jmp 0x140157693
cmp qword [rsp + 0x548], 0xffff
ja 0x140157037
movzx eax, word [rsp + 0x548]
movzx ecx, word [rsp + 0x34]
mov rdx, qword [rsp + 0x40]
add ecx, dword [rdx + 0x10]
cmp eax, ecx
je 0x14015707c
cmp qword [rsp + 0x548], 0xffff
jbe 0x14015764e
mov rax, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x548]
sub rcx, rax
movzx edx, byte [rax]
cmp dl, byte [rax + rcx]
jne 0x14015706f
inc rax
test dl, dl
jne 0x14015705c
xor eax, eax
jmp 0x140157074
sbb eax, eax
or eax, 1
test eax, eax
jne 0x14015764e
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 0x1401575d8
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 0x1401575d8
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.14017d800
lea rdx, [rsp + 0x410]
lea rcx, [rsp + 0x280]
call fcn.1400d13c0
nop
xor r8d, r8d
lea rdx, [0x1402bae30]
lea rcx, [rsp + 0x280]
call fcn.14015d7d0
mov r9, rax
xor r8d, r8d
lea rdx, [rsp + 0x110]
lea rcx, [rsp + 0x280]
call fcn.14015dcc0
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.140153b30
nop
lea rcx, [rsp + 0x110]
call fcn.1400d12d0
nop
xor r8d, r8d
lea rdx, [0x1402bae34]
lea rcx, [rsp + 0x280]
call fcn.14015d7d0
inc rax
mov r9, 0xffffffffffffffff
mov r8, rax
lea rdx, [rsp + 0x260]
lea rcx, [rsp + 0x280]
call fcn.14015dcc0
nop
xor r8d, r8d
lea rdx, [rsp + 0x2a0]
lea rcx, [rsp + 0x240]
call fcn.140160c70
nop
mov byte [rsp + 0x21a], 1
lea rdx, [rsp + 0x240]
lea rcx, [rsp + 0x1d8]
call fcn.14013a060
xor r8d, r8d
lea rdx, reloc.WLDAP32.dll_Ordinal_35
lea rcx, [rsp + 0x260]
call fcn.14015d7d0
test rax, rax
jne 0x140157253
mov dword [rsp + 0x68], 1
jmp 0x14015725b
mov dword [rsp + 0x68], 0
movzx eax, byte [rsp + 0x68]
mov byte [rsp + 0x21b], al
movzx eax, byte [rsp + 0x21b]
test eax, eax
je 0x140157295
lea rcx, [rsp + 0x260]
call fcn.1400d11f0
inc rax
mov rcx, rax
call fcn.1402669f8
mov word [rsp + 0x218], ax
jmp 0x1401572ab
lea rdx, [rsp + 0x260]
lea rcx, [rsp + 0x1f8]
call fcn.1401560a0
nop
mov rax, qword [rsp + 0x58]
movzx eax, word [rax + 0x18]
cmp eax, 0x10b
jne 0x1401572c5
mov dword [rsp + 0x6c], 0
jmp 0x1401572cd
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.140146750
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.140157b30
nop
xor edx, edx
lea rcx, [rsp + 0x230]
call fcn.140153a60
movzx eax, al
test eax, eax
je 0x1401573f9
lea rax, [rsp + 0x130]
mov qword [rsp + 0xe0], rax
lea rdx, [rsp + 0x1d0]
mov rcx, qword [rsp + 0xe0]
call fcn.140155ee0
mov qword [rsp + 0xe8], rax
mov r8d, 0x107
mov rdx, qword [rsp + 0xe8]
mov rcx, qword [rsp + 0x538]
call fcn.1401559f0
mov eax, dword [rsp + 0x30]
or eax, 1
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x230]
call fcn.1400daa10
nop
lea rcx, [rsp + 0x240]
call fcn.1400da5e0
nop
lea rcx, [rsp + 0x260]
call fcn.1400d12d0
nop
lea rcx, [rsp + 0x2a0]
call fcn.1400d12d0
nop
lea rcx, [rsp + 0x280]
call fcn.1400d12d0
nop
lea rcx, [rsp + 0x220]
call fcn.140155ff0
nop
lea rcx, [rsp + 0x1d0]
call fcn.140139ef0
nop
mov rax, qword [rsp + 0x538]
jmp 0x140157693
movzx eax, byte [rsp + 0x21b]
test eax, eax
je 0x1401574c1
lea rcx, [rsp + 0x240]
call fcn.1400da570
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.140157750
mov eax, dword [rsp + 0x30]
or eax, 1
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x230]
call fcn.1400daa10
nop
lea rcx, [rsp + 0x240]
call fcn.1400da5e0
nop
lea rcx, [rsp + 0x260]
call fcn.1400d12d0
nop
lea rcx, [rsp + 0x2a0]
call fcn.1400d12d0
nop
lea rcx, [rsp + 0x280]
call fcn.1400d12d0
nop
lea rcx, [rsp + 0x220]
call fcn.140155ff0
nop
lea rcx, [rsp + 0x1d0]
call fcn.140139ef0
mov rax, qword [rsp + 0x538]
jmp 0x140157693
lea rcx, [rsp + 0x240]
call fcn.1400da570
mov qword [rsp + 0xf0], rax
lea rcx, [rsp + 0x260]
call fcn.1400d11f0
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.140157750
mov eax, dword [rsp + 0x30]
or eax, 1
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x230]
call fcn.1400daa10
nop
lea rcx, [rsp + 0x240]
call fcn.1400da5e0
nop
lea rcx, [rsp + 0x260]
call fcn.1400d12d0
nop
lea rcx, [rsp + 0x2a0]
call fcn.1400d12d0
nop
lea rcx, [rsp + 0x280]
call fcn.1400d12d0
nop
lea rcx, [rsp + 0x220]
call fcn.140155ff0
nop
lea rcx, [rsp + 0x1d0]
call fcn.140139ef0
mov rax, qword [rsp + 0x538]
jmp 0x140157693
lea rax, [rsp + 0x180]
mov qword [rsp + 0x100], rax
lea rdx, [rsp + 0x1d0]
mov rcx, qword [rsp + 0x100]
call fcn.140139340
mov qword [rsp + 0x108], rax
xor r8d, r8d
mov rdx, qword [rsp + 0x108]
mov rcx, qword [rsp + 0x538]
call fcn.1401559f0
mov eax, dword [rsp + 0x30]
or eax, 1
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x220]
call fcn.140155ff0
nop
lea rcx, [rsp + 0x1d0]
call fcn.140139ef0
nop
mov rax, qword [rsp + 0x538]
jmp 0x140157693
jmp 0x140156f28
mov edx, 0xc0000225
mov rcx, qword [rsp + 0x538]
call fcn.1401559a0
mov eax, dword [rsp + 0x30]
or eax, 1
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x220]
call fcn.140155ff0
nop
lea rcx, [rsp + 0x1d0]
call fcn.140139ef0
mov rax, qword [rsp + 0x538]
mov rcx, qword [rsp + 0x510]
xor rcx, rsp
call fcn.1402164b0
add rsp, 0x520
pop rdi
ret