Function at 0x140080d4c
Capabilities:
Parse pe header

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x388]
sub rsp, 0x488
mov rax, qword [0x140198190]
xor rax, rsp
mov qword [rbp + 0x370], rax
mov qword [rsp + 0x48], r9
mov rbx, r8
mov qword [rsp + 0x40], rbx
mov rsi, rdx
mov r13, rcx
mov qword [rsp + 0x38], rdx
mov rax, qword [rbp + 0x3f0]
mov qword [rsp + 0x38], rax
xor r15d, r15d
mov qword [rbp + 0x30], r15
xorps xmm0, xmm0
movups xmmword [rbp + 0x38], xmm0
mov qword [rbp + 0x48], r15
mov qword [rbp + 0x50], 7
mov word [rbp + 0x38], r15w
movups xmmword [rbp + 0x58], xmm0
mov qword [rbp + 0x68], r15
mov qword [rbp + 0x70], reloc.WS2_32.dll_ntohs
mov byte [rbp + 0x58], r15b
mov dword [rbp + 0x78], r15d
cmp qword [r8], r15
jne 0x140080de8
mov dword [rdx], 0xc00000ef
mov byte [rdx + 0x58], r15b
jmp 0x140081057
movups xmmword [rbp + 0xc0], xmm0
lea rax, [fcn.140118d2c]
mov qword [rbp + 0xc0], rax
mov rdi, r15
mov qword [rbp + 0xc8], r15
mov r14d, 0x40
mov r8d, r14d
xor edx, edx
lea rcx, [rbp + 0x120]
call fcn.140112010
mov r12d, 0x108
mov r8d, r12d
xor edx, edx
lea rcx, [rbp + 0x160]
call fcn.140112010
lea r9, [rbp + 0x120]
mov r8d, r14d
mov rdx, qword [rbx]
mov rcx, qword [r13 + 8]
call fcn.1400932e0
mov eax, 0x5a4d
cmp word [rbp + 0x120], ax
je 0x140080e68
mov dword [rsi], 0xc000012f
mov byte [rsi + 0x58], r15b
jmp 0x140081057
movsxd rdx, dword [rbp + 0x15c]
add rdx, qword [rbx]
lea r9, [rbp + 0x160]
mov r8, r12
mov rcx, qword [r13 + 8]
call fcn.1400932e0
cmp dword [rbp + 0x160], 0x4550
je 0x140080ea0
mov dword [rsi], 0xc000007b
mov byte [rsi + 0x58], r15b
jmp 0x140081057
mov r12d, dword [rbp + 0x1e8]
mov eax, 0x10b
cmp word [rbp + 0x178], ax
cmove r12d, dword [rbp + 0x1d8]
mov r15d, r12d
xor r10d, r10d
test r12d, r12d
je 0x14008103f
mov r14d, dword [rbp + 0x1ec]
cmp word [rbp + 0x178], ax
cmove r14d, dword [rbp + 0x1dc]
mov ecx, r14d
call fcn.140118d40
mov rdi, rax
mov qword [rbp + 0xc8], rax
mov rax, qword [rsp + 0x40]
mov rdx, qword [rax]
add rdx, r15
mov r9, rdi
mov r8d, r14d
mov rcx, qword [r13 + 8]
call fcn.1400932e0
xor r10d, r10d
test eax, eax
jns 0x140080f1e
mov dword [rsi], eax
mov byte [rsi + 0x58], r10b
jmp 0x140081049
mov rbx, rdi
cmp r14d, 0x28
ja 0x140080f9d
mov eax, dword [rdi + 0x14]
cmp eax, dword [rdi + 0x18]
cmovbe eax, dword [rdi + 0x18]
imul r14d, eax, 0xff
add r14d, dword [rdi + 0x24]
sub r14d, r12d
mov r12d, r14d
mov ecx, r14d
call fcn.140118d40
mov rbx, rax
mov rcx, rdi
mov rdi, rax
mov qword [rbp + 0xc8], rax
test rcx, rcx
je 0x140080f65
call fcn.140118d2c
nop
mov rax, qword [rsp + 0x40]
mov rdx, qword [rax]
add rdx, r15
mov r9, rbx
mov r8, r12
mov rcx, qword [r13 + 8]
call fcn.1400932e0
xor r10d, r10d
test eax, eax
jns 0x140080f9d
mov dword [rsi], eax
mov byte [rsi + 0x58], r10b
test rbx, rbx
je 0x140081057
mov rcx, rbx
jmp 0x140081051
mov edx, dword [rbx + 0x24]
sub rdx, r15
add rdx, rbx
mov qword [rsp + 0x58], rdx
mov ecx, dword [rbx + 0x20]
sub rcx, r15
add rcx, rbx
mov qword [rsp + 0x60], rcx
mov eax, dword [rbx + 0x1c]
sub rax, r15
add rax, rbx
mov qword [rbp + 0xd0], rax
mov r12d, r10d
cmp dword [rbx + 0x14], r10d
jbe 0x14008103f
mov r8, qword [rsp + 0x48]
cmp r8, 0xffff
ja 0x140080ff9
movzx r9d, r12w
movzx ecx, r12w
add ecx, dword [rbx + 0x10]
movzx eax, r8w
cmp eax, ecx
je 0x14008108c
jmp 0x140081031
cmp r12d, dword [rbx + 0x18]
jae 0x14008195b
mov eax, r12d
mov ecx, dword [rcx + rax*4]
sub rcx, r15
add rcx, rbx
movzx eax, word [rdx + rax*2]
mov word [rsp + 0x30], ax
mov rdx, r8
call fcn.140125e20
xor r10d, r10d
test eax, eax
je 0x140081086
mov rdx, qword [rsp + 0x58]
mov r8, qword [rsp + 0x48]
inc r12d
cmp r12d, dword [rbx + 0x14]
mov rcx, qword [rsp + 0x60]
jb 0x140080fd7
mov dword [rsi], 0xc0000225
mov byte [rsi + 0x58], r10b
test rdi, rdi
je 0x140081057
mov rcx, rdi
call fcn.140118d2c
nop
lea rcx, [rbp + 0x30]
call fcn.14007db6c
mov rax, rsi
mov rcx, qword [rbp + 0x370]
xor rcx, rsp
call fcn.14010f620
add rsp, 0x488
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
movzx r9d, word [rsp + 0x30]
mov rax, qword [rsp + 0x40]
mov rdx, qword [rax]
movzx eax, r9w
mov rcx, qword [rbp + 0xd0]
mov ebx, dword [rcx + rax*4]
add rbx, rdx
mov qword [rbp + 0x30], rbx
lea rax, [r15 + rdx]
cmp rbx, rax
jb 0x1400818fd
mov eax, r14d
add rax, r15
add rax, rdx
cmp rbx, rax
ja 0x1400818fd
mov r14d, 0xff
mov r8d, r14d
xor edx, edx
lea rcx, [rbp + 0x270]
call fcn.140112010
lea r9, [rbp + 0x270]
mov r8d, r14d
mov rdx, rbx
mov rcx, qword [r13 + 8]
call fcn.1400932e0
xorps xmm0, xmm0
movups xmmword [rbp + 0x80], xmm0
xor r14d, r14d
mov qword [rbp + 0x90], r14
mov qword [rbp + 0x98], r14
lea rax, [rbp + 0x270]
or r15, 0xffffffffffffffff
mov r8, r15
inc r8
cmp byte [rax + r8], r14b
jne 0x14008111e
lea rdx, [rbp + 0x270]
lea rcx, [rbp + 0x80]
call fcn.140009b30
nop
lea rcx, [rbp + 0x80]
cmp qword [rbp + 0x98], 0x10
cmovae rcx, qword [rbp + 0x80]
mov r12d, 1
mov qword [rsp + 0x20], r12
lea r9, reloc.WLDAP32.dll_Ordinal_46
mov rbx, qword [rbp + 0x90]
mov rdx, rbx
call fcn.14006d020
xorps xmm0, xmm0
movups xmmword [rsp + 0x68], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x78], xmm1
cmp rbx, rax
cmovb rax, rbx
lea rdx, [rbp + 0x80]
cmp qword [rbp + 0x98], 0x10
cmovae rdx, qword [rbp + 0x80]
mov r8, rax
lea rcx, [rsp + 0x68]
call fcn.140009b30
nop
lea r8d, [r12 + 3]
lea rdx, str..dll
lea rcx, [rsp + 0x68]
call fcn.140008b40
xorps xmm0, xmm0
movups xmmword [rbp + 0xe0], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0xf0], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0xe0], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0xf0], xmm1
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], r14b
mov rdx, qword [rbp - 0x80]
cmp rdx, 0x10
jb 0x14008123b
inc rdx
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140081236
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140081970
call fcn.14010f640
movdqa xmm0, xmmword [0x14017cee0]
movdqu xmmword [rsp + 0x78], xmm0
mov byte [rsp + 0x68], r14b
lea rcx, [rbp + 0x80]
cmp qword [rbp + 0x98], 0x10
cmovae rcx, qword [rbp + 0x80]
mov qword [rsp + 0x20], r12
lea r9, reloc.WLDAP32.dll_Ordinal_46
mov rbx, qword [rbp + 0x90]
mov rdx, rbx
call fcn.14006d020
lea rcx, [rax + 1]
xorps xmm0, xmm0
movups xmmword [rbp + 0xa0], xmm0
mov qword [rbp + 0xb0], r14
mov qword [rbp + 0xb8], r14
cmp rbx, rcx
jb 0x140081976
sub rbx, rcx
mov r8, r15
cmp rbx, r15
cmovb r8, rbx
lea rdx, [rbp + 0x80]
cmp qword [rbp + 0x98], 0x10
cmovae rdx, qword [rbp + 0x80]
add rdx, rcx
lea rcx, [rbp + 0xa0]
call fcn.140009b30
nop
lea rdx, [rbp + 0xe0]
lea rcx, [rbp + 0x100]
call fcn.14007fda0
nop
mov byte [rbp + 0x7a], r12b
lea rdx, [rbp + 0x100]
cmp qword [rbp + 0x118], 8
cmovae rdx, qword [rbp + 0x100]
mov r8, qword [rbp + 0x110]
lea rcx, [rbp + 0x38]
call fcn.140008ce0
lea rbx, [rbp + 0xa0]
mov r15, qword [rbp + 0xa0]
mov r12, qword [rbp + 0xb8]
cmp r12, 0x10
cmovae rbx, r15
mov r14, qword [rbp + 0xb0]
cmp r14, 1
jb 0x14008137a
mov r8, r14
mov rcx, rbx
jmp 0x140081369
cmp byte [rax], 0x23
jne 0x140081353
mov ecx, edx
jmp 0x140081358
sbb ecx, ecx
or ecx, 1
test ecx, ecx
je 0x1400813ac
inc rax
lea r8, [rbx + r14]
sub r8, rax
mov rcx, rax
mov edx, reloc.WLDAP32.dll_Ordinal_35
call fcn.1401125d0
xor edx, edx
test rax, rax
jne 0x14008134a
or rax, 0xffffffffffffffff
test rax, rax
sete bl
mov byte [rbp + 0x7b], bl
test rax, rax
jne 0x1400813b1
lea rcx, [rbp + 0xa0]
cmp r12, 0x10
cmovae rcx, r15
inc rcx
call fcn.140122d44
mov r14d, eax
mov word [rbp + 0x78], ax
jmp 0x1400813d4
sub rax, rbx
jmp 0x14008137e
lea rdx, [rbp + 0xa0]
cmp r12, 0x10
cmovae rdx, r15
mov r8, r14
lea rcx, [rbp + 0x58]
call fcn.140008e10
mov bl, byte [rbp + 0x7b]
movzx r14d, word [rbp + 0x78]
xor r15d, r15d
mov eax, r15d
mov ecx, 0x10b
cmp word [rbp + 0x178], cx
setne al
xorps xmm0, xmm0
movups xmmword [rbp + 0xd0], xmm0
mov rcx, qword [rsp + 0x38]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], eax
xor r9d, r9d
lea r8, [rbp + 0x100]
lea rdx, [rbp + 0xd0]
mov rcx, r13
call fcn.140080834
nop
cmp qword [rbp + 0xd0], r15
jne 0x1400815dc
lea rax, [rbp - 0x28]
mov qword [rsp + 0x38], rax
mov rax, qword [rbp + 0x30]
mov qword [rbp - 0x28], rax
lea rdx, [rbp + 0x38]
lea rcx, [rbp - 0x20]
call fcn.140007f90
nop
lea rdx, [rbp + 0x58]
lea rcx, [rbp]
call fcn.1400080f0
movzx eax, word [rbp + 0x78]
mov word [rbp + 0x20], ax
mov al, byte [rbp + 0x7a]
mov byte [rbp + 0x22], al
mov al, byte [rbp + 0x7b]
mov byte [rbp + 0x23], al
mov r8d, 0x107
lea rdx, [rbp - 0x28]
mov rcx, rsi
call fcn.1400830b8
nop
mov rbx, qword [rbp + 0xd8]
test rbx, rbx
je 0x1400814b9
or eax, 0xffffffff
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x1400814b2
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
or eax, 0xffffffff
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x1400814b2
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
mov rdi, qword [rbp + 0xc8]
lea rcx, [rbp + 0x100]
call fcn.1400089c0
nop
mov rdx, qword [rbp + 0xb8]
mov ebx, 0x1000
cmp rdx, 0x10
jb 0x140081508
inc rdx
mov rcx, qword [rbp + 0xa0]
mov rax, rcx
cmp rdx, rbx
jb 0x140081503
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14008197c
call fcn.14010f640
mov qword [rbp + 0xb0], r15
mov r14d, reloc.WS2_32.dll_ntohs
mov qword [rbp + 0xb8], r14
mov byte [rbp + 0xa0], r15b
mov rdx, qword [rbp + 0xf8]
cmp rdx, 0x10
jb 0x140081560
inc rdx
mov rcx, qword [rbp + 0xe0]
mov rax, rcx
cmp rdx, rbx
jb 0x14008155b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140081982
call fcn.14010f640
movdqa xmm0, xmmword [0x14017cee0]
movdqu xmmword [rbp + 0xf0], xmm0
mov byte [rbp + 0xe0], r15b
mov rdx, qword [rbp + 0x98]
cmp rdx, 0x10
jb 0x1400815b4
inc rdx
mov rcx, qword [rbp + 0x80]
mov rax, rcx
cmp rdx, rbx
jb 0x1400815af
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140081988
call fcn.14010f640
mov qword [rbp + 0x90], r15
mov qword [rbp + 0x98], r14
mov byte [rbp + 0x80], r15b
test rdi, rdi
je 0x1400815d7
mov rcx, rdi
call fcn.140118d2c
nop
jmp 0x140081057
lea rax, [rbp + 0x100]
lea r8, [rbp + 0xd0]
mov rdx, rsi
mov rcx, r13
test bl, bl
je 0x14008176a
cmp qword [rbp + 0x118], 8
cmovae rax, qword [rbp + 0x100]
movzx r9d, r14w
mov qword [rsp + 0x20], rax
call fcn.140080d28
nop
mov rbx, qword [rbp + 0xd8]
test rbx, rbx
je 0x140081655
or eax, 0xffffffff
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x14008164e
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
or eax, 0xffffffff
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x14008164e
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
mov rdi, qword [rbp + 0xc8]
lea rcx, [rbp + 0x100]
call fcn.1400089c0
nop
mov rdx, qword [rbp + 0xb8]
mov ebx, 0x1000
cmp rdx, 0x10
jb 0x1400816a4
inc rdx
mov rcx, qword [rbp + 0xa0]
mov rax, rcx
cmp rdx, rbx
jb 0x14008169f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14008198e
call fcn.14010f640
mov qword [rbp + 0xb0], r15
mov r14d, reloc.WS2_32.dll_ntohs
mov qword [rbp + 0xb8], r14
mov byte [rbp + 0xa0], r15b
mov rdx, qword [rbp + 0xf8]
cmp rdx, 0x10
jb 0x1400816fc
inc rdx
mov rcx, qword [rbp + 0xe0]
mov rax, rcx
cmp rdx, rbx
jb 0x1400816f7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140081994
call fcn.14010f640
movdqa xmm0, xmmword [0x14017cee0]
movdqu xmmword [rbp + 0xf0], xmm0
mov byte [rbp + 0xe0], r15b
mov rdx, qword [rbp + 0x98]
cmp rdx, 0x10
jb 0x140081750
inc rdx
mov rcx, qword [rbp + 0x80]
mov rax, rcx
cmp rdx, rbx
jb 0x14008174b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14008196a
call fcn.14010f640
mov qword [rbp + 0x90], r15
mov qword [rbp + 0x98], r14
mov byte [rbp + 0x80], r15b
jmp 0x1400818ea
cmp qword [rbp + 0x118], 8
cmovae rax, qword [rbp + 0x100]
lea r9, [rbp + 0xa0]
cmp qword [rbp + 0xb8], 0x10
cmovae r9, qword [rbp + 0xa0]
mov qword [rsp + 0x20], rax
call fcn.140080d28
nop
mov rbx, qword [rbp + 0xd8]
test rbx, rbx
je 0x1400817da
or eax, 0xffffffff
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x1400817d3
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
or eax, 0xffffffff
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x1400817d3
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
mov rdi, qword [rbp + 0xc8]
lea rcx, [rbp + 0x100]
call fcn.1400089c0
nop
mov rdx, qword [rbp + 0xb8]
mov ebx, 0x1000
cmp rdx, 0x10
jb 0x140081829
inc rdx
mov rcx, qword [rbp + 0xa0]
mov rax, rcx
cmp rdx, rbx
jb 0x140081824
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14008198e
call fcn.14010f640
mov qword [rbp + 0xb0], r15
mov r14d, reloc.WS2_32.dll_ntohs
mov qword [rbp + 0xb8], r14
mov byte [rbp + 0xa0], r15b
mov rdx, qword [rbp + 0xf8]
cmp rdx, 0x10
jb 0x140081881
inc rdx
mov rcx, qword [rbp + 0xe0]
mov rax, rcx
cmp rdx, rbx
jb 0x14008187c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140081994
call fcn.14010f640
movdqa xmm0, xmmword [0x14017cee0]
movdqu xmmword [rbp + 0xf0], xmm0
mov byte [rbp + 0xe0], r15b
mov rdx, qword [rbp + 0x98]
cmp rdx, 0x10
jb 0x1400818d5
inc rdx
mov rcx, qword [rbp + 0x80]
mov rax, rcx
cmp rdx, rbx
jb 0x1400818d0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14008196a
call fcn.14010f640
mov qword [rbp + 0x90], r15
mov qword [rbp + 0x98], r14
mov byte [rbp + 0x80], r15b
test rdi, rdi
je 0x1400818f8
mov rcx, rdi
call fcn.140118d2c
nop
jmp 0x140081057
mov qword [rbp - 0x78], rbx
movups xmm1, xmmword [rbp + 0x38]
movups xmmword [rbp - 0x70], xmm1
movups xmm0, xmmword [rbp + 0x48]
movups xmmword [rbp - 0x60], xmm0
mov qword [rbp + 0x48], r10
mov qword [rbp + 0x50], 7
mov word [rbp + 0x38], r10w
movups xmm1, xmmword [rbp + 0x58]
movups xmmword [rbp - 0x50], xmm1
movups xmm0, xmmword [rbp + 0x68]
movups xmmword [rbp - 0x40], xmm0
mov qword [rbp + 0x68], r10
mov qword [rbp + 0x70], reloc.WS2_32.dll_ntohs
mov byte [rbp + 0x58], r10b
and dword [rbp - 0x30], 0
xor r8d, r8d
lea rdx, [rbp - 0x78]
mov rcx, rsi
call fcn.1400830b8
nop
jmp 0x140081049
mov dword [rsi], 0xc0000225
mov byte [rsi + 0x58], r10b
jmp 0x140081049
call fcn.140118cb4
nop
call fcn.140118cb4
int3
call fcn.1400090f0
int3
call fcn.140118cb4
nop
call fcn.140118cb4
nop
call fcn.140118cb4
nop
call fcn.140118cb4
nop
call fcn.140118cb4
int3