Function at 0x140191150
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x518
mov dword [rsp + 0xc8], 0
mov eax, dword [rsp + 0xc8]
cmp dword [rsp + 0x538], eax
jne 0x140191193
xor eax, eax
cmp eax, 1
je 0x140191193
mov dword [rsp + 0x28], 1
jmp 0x14019119b
mov dword [rsp + 0x28], 0
movzx eax, byte [rsp + 0x28]
mov byte [rsp + 0x20], al
movzx eax, byte [rsp + 0x20]
test eax, eax
je 0x1401911b4
xor eax, eax
jmp 0x140191d46
mov byte [rsp + 0x26], 1
mov qword [rsp + 0x188], 0
mov qword [rsp + 0x190], 0
mov rax, qword gs:[0x60]
mov qword [rsp + 0x278], rax
mov rax, qword [rsp + 0x278]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x198], rax
mov rax, qword [rsp + 0x198]
add rax, 0x10
mov qword [rsp + 0xd8], rax
mov eax, 1
test eax, eax
je 0x14019122b
mov rax, qword [rsp + 0xd8]
mov rax, qword [rax]
mov rax, qword [rax]
mov qword [rsp + 0x100], rax
jmp 0x14019123e
mov rax, qword [rsp + 0xd8]
mov rax, qword [rax]
mov qword [rsp + 0x100], rax
mov rax, qword [rsp + 0x100]
mov qword [rsp + 0x188], rax
mov rax, qword [rsp + 0xd8]
mov qword [rsp + 0x190], rax
lea rax, [rsp + 0x188]
mov qword [rsp + 0x108], rax
mov rax, qword [rsp + 0x108]
mov rax, qword [rax]
mov qword [rsp + 0x1a0], rax
mov rax, qword [rsp + 0x1a0]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x108]
mov rax, qword [rax + 8]
mov qword [rsp + 0x1a8], rax
mov rax, qword [rsp + 0x1a8]
mov qword [rsp + 0x1b0], rax
jmp 0x1401912c1
mov rax, qword [rsp + 0x60]
mov rax, qword [rax]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x1b0]
cmp qword [rsp + 0x60], rax
je 0x1401912da
mov dword [rsp + 0x2c], 1
jmp 0x1401912e2
mov dword [rsp + 0x2c], 0
movzx eax, byte [rsp + 0x2c]
test eax, eax
je 0x140191d44
xor eax, eax
mov qword [rsp + 0x1b8], rax
mov rax, qword [rsp + 0x1b8]
mov rcx, qword [rsp + 0x60]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x1c0], rax
lea rax, [rsp + 0x1c0]
mov qword [rsp + 0x118], rax
mov dword [rsp + 0xcc], 0
mov eax, dword [rsp + 0xcc]
cmp dword [rsp + 0x540], eax
jne 0x140191350
xor eax, eax
cmp eax, 1
je 0x140191350
mov dword [rsp + 0x30], 1
jmp 0x140191358
mov dword [rsp + 0x30], 0
movzx eax, byte [rsp + 0x30]
mov byte [rsp + 0x21], al
movzx eax, byte [rsp + 0x21]
test eax, eax
jne 0x140191634
mov rax, qword [rsp + 0x118]
mov rax, qword [rax]
add rax, 0x58
mov qword [rsp + 0x1c8], rax
mov rax, qword [rsp + 0x1c8]
mov rax, qword [rax + 8]
mov qword [rsp + 0x110], rax
mov rax, qword [rsp + 0x110]
mov qword [rsp + 0x2a0], rax
mov rax, qword [rsp + 0x110]
mov qword [rsp + 0x1d0], rax
mov qword [rsp + 0x68], 0xffffffffffffffff
inc qword [rsp + 0x68]
mov rax, qword [rsp + 0x1d0]
mov rcx, qword [rsp + 0x68]
cmp word [rax + rcx*2], 0
jne 0x1401913c2
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x1d8], rax
mov rax, qword [rsp + 0x1d8]
mov qword [rsp + 0x2a8], rax
lea rax, [rsp + 0x2a0]
mov qword [rsp + 0x1e0], rax
lea rax, [rsp + 0x2e0]
mov rdi, rax
mov rsi, qword [rsp + 0x1e0]
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
mov eax, dword [rsp + 0x540]
mov dword [rsp + 0xd0], eax
lea rax, [rsp + 0x290]
lea rcx, [rsp + 0x2e0]
mov rdi, rax
mov rsi, rcx
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
mov eax, dword [rsp + 0xd0]
mov dword [rsp + 0x40], eax
lea rax, [rsp + 0x34]
mov rdi, rax
xor eax, eax
mov ecx, 4
rep stosb byte [rdi], al
mov dword [rsp + 0x34], 0x1b6e1b1e
lea rax, [rsp + 0x34]
mov qword [rsp + 0x1e8], rax
lea rax, [rsp + 0x2f0]
lea rcx, [rsp + 0x290]
mov rdi, rax
mov rsi, rcx
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x300]
lea rcx, [rsp + 0x2f0]
mov rdi, rax
mov rsi, rcx
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
lea rdx, [rsp + 0x300]
mov rcx, qword [rsp + 0x1e8]
call fcn.140097890
mov dword [rsp + 0x78], eax
mov rax, qword [rsp + 0x298]
mov qword [rsp + 0x1f0], rax
mov rax, qword [rsp + 0x1f0]
sub rax, 4
mov qword [rsp + 0x1f8], rax
mov r9, qword [rsp + 0x1f8]
xor r8d, r8d
lea rdx, [rsp + 0x310]
lea rcx, [rsp + 0x290]
call fcn.14019ab70
lea rax, [rsp + 0x38]
mov rdi, rax
xor eax, eax
mov ecx, 4
rep stosb byte [rdi], al
mov dword [rsp + 0x38], 0x1b6e1b1e
lea rax, [rsp + 0x38]
mov qword [rsp + 0x200], rax
lea rax, [rsp + 0x320]
lea rcx, [rsp + 0x310]
mov rdi, rax
mov rsi, rcx
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x330]
lea rcx, [rsp + 0x320]
mov rdi, rax
mov rsi, rcx
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
lea rdx, [rsp + 0x330]
mov rcx, qword [rsp + 0x200]
call fcn.140097890
mov dword [rsp + 0x80], eax
mov eax, dword [rsp + 0x78]
mov dword [rsp + 0x7c], eax
mov eax, dword [rsp + 0x7c]
cmp dword [rsp + 0x40], eax
jne 0x1401915b4
xor eax, eax
cmp eax, 1
je 0x1401915b4
mov dword [rsp + 0x3c], 1
jmp 0x1401915bc
mov dword [rsp + 0x3c], 0
movzx eax, byte [rsp + 0x3c]
mov byte [rsp + 0x22], al
movzx eax, byte [rsp + 0x22]
test eax, eax
jne 0x14019161e
mov eax, dword [rsp + 0x80]
mov dword [rsp + 0x84], eax
mov eax, dword [rsp + 0x84]
cmp dword [rsp + 0x40], eax
jne 0x1401915fa
xor eax, eax
cmp eax, 1
je 0x1401915fa
mov dword [rsp + 0x48], 1
jmp 0x140191602
mov dword [rsp + 0x48], 0
movzx eax, byte [rsp + 0x48]
mov byte [rsp + 0x23], al
movzx eax, byte [rsp + 0x23]
test eax, eax
jne 0x14019161e
mov dword [rsp + 0x4c], 1
jmp 0x140191626
mov dword [rsp + 0x4c], 0
movzx eax, byte [rsp + 0x4c]
test eax, eax
je 0x140191634
jmp 0x1401912b4
mov rax, qword [rsp + 0x118]
mov rax, qword [rax]
mov rax, qword [rax + 0x30]
mov qword [rsp + 0x120], rax
mov rax, qword [rsp + 0x120]
mov qword [rsp + 0xb8], rax
mov rax, qword [rsp + 0x120]
mov qword [rsp + 0x208], rax
mov rax, qword [rsp + 0x208]
mov qword [rsp + 0x128], rax
mov rax, qword [rsp + 0x128]
mov eax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x128]
mov rax, qword [rcx + rax + 0x88]
mov qword [rsp + 0x210], rax
mov eax, dword [rsp + 0x210]
add rax, qword [rsp + 0xb8]
mov qword [rsp + 0x218], rax
mov rax, qword [rsp + 0x218]
mov qword [rsp + 0xc0], rax
mov eax, dword [rsp + 0x538]
mov dword [rsp + 0x88], eax
mov eax, dword [rsp + 0x88]
mov dword [rsp + 0x90], eax
lea rdx, [rsp + 0x490]
lea rcx, [rsp + 0xb8]
call fcn.1401906d0
lea rcx, [rsp + 0x3e0]
mov rdi, rcx
mov rsi, rax
mov ecx, Ordinal_41
rep movsb byte [rdi], byte [rsi]
lea rdx, [rsp + 0x4b8]
lea rcx, [rsp + 0xb8]
call fcn.14018ec60
lea rcx, [rsp + 0x408]
mov rdi, rcx
mov rsi, rax
mov ecx, Ordinal_41
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x430]
lea rcx, [rsp + 0x3e0]
mov rdi, rax
mov rsi, rcx
mov ecx, Ordinal_41
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x460]
lea rcx, [rsp + 0x408]
mov rdi, rax
mov rsi, rcx
mov ecx, Ordinal_41
rep movsb byte [rdi], byte [rsi]
mov r9d, dword [rsp + 0x90]
lea r8, [rsp + 0x430]
lea rdx, [rsp + 0x460]
lea rcx, [rsp + 0x3a8]
call fcn.140097110
lea rdx, [rsp + 0x4e0]
lea rcx, [rsp + 0xb8]
call fcn.1401906d0
mov qword [rsp + 0x130], rax
mov rax, qword [rsp + 0x130]
mov rax, qword [rax + 8]
cmp qword [rsp + 0x3b0], rax
jne 0x1401917e6
mov rax, qword [rsp + 0x130]
mov rax, qword [rax]
cmp qword [rsp + 0x3a8], rax
jne 0x1401917e6
mov dword [rsp + 0x50], 1
jmp 0x1401917ee
mov dword [rsp + 0x50], 0
movzx eax, byte [rsp + 0x50]
mov byte [rsp + 0x24], al
movzx eax, byte [rsp + 0x24]
test eax, eax
je 0x140191805
jmp 0x1401912b4
mov eax, reloc.WLDAP32.dll_Ordinal_32
mov eax, eax
mov ecx, dword [0x1404d6060]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
mov eax, dword [rcx + rax]
and eax, 1
test eax, eax
jne 0x1401918cb
mov eax, reloc.WLDAP32.dll_Ordinal_32
mov eax, eax
mov ecx, dword [0x1404d6060]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
mov eax, dword [rcx + rax]
or eax, 1
mov ecx, dword [0x1404d6060]
mov rdx, qword gs:[0x58]
mov edi, reloc.WLDAP32.dll_Ordinal_32
mov edi, edi
mov rcx, qword [rdx + rcx*8]
mov dword [rdi + rcx], eax
mov eax, 8
mov eax, eax
mov ecx, dword [0x1404d6060]
mov rdx, qword gs:[0x58]
add rax, qword [rdx + rcx*8]
mov qword [rsp + 0x140], rax
mov rax, qword [rsp + 0x140]
mov qword [rsp + 0x138], rax
mov rax, qword [rsp + 0x138]
mov qword [rax], 0
mov rax, qword [rsp + 0x138]
mov qword [rax + 8], 0
mov rax, qword [rsp + 0x140]
mov qword [rax + 0x10], 0
lea rax, [rsp + 0x3b8]
mov qword [rsp + 0x148], rax
mov rax, qword [rsp + 0x148]
mov qword [rsp + 0x3a0], rax
mov rax, qword [rsp + 0x148]
add rax, 0x10
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax]
mov qword [rsp + 0x168], rax
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0x220], rax
mov rax, qword [rsp + 0x220]
mov qword [rsp + 0x150], rax
mov rax, qword [rsp + 0x150]
mov eax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x150]
mov rax, qword [rcx + rax + 0x88]
mov qword [rsp + 0x158], rax
mov eax, dword [rsp + 0x158]
add rax, qword [rsp + 0xb8]
mov qword [rsp + 0x160], rax
mov eax, dword [rsp + 0x15c]
mov rcx, qword [rsp + 0x160]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x228], rax
mov rax, qword [rsp + 0x160]
cmp qword [rsp + 0x168], rax
jb 0x1401919b7
mov rax, qword [rsp + 0x228]
cmp qword [rsp + 0x168], rax
jae 0x1401919b7
mov dword [rsp + 0x54], 1
jmp 0x1401919bf
mov dword [rsp + 0x54], 0
movzx eax, byte [rsp + 0x54]
mov byte [rsp + 0x25], al
movzx eax, byte [rsp + 0x25]
test eax, eax
je 0x140191d32
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax]
mov qword [rsp + 0x230], rax
mov rax, qword [rsp + 0x230]
mov qword [rsp + 0x170], rax
lea rax, [rsp + 0x3d0]
mov qword [rsp + 0xe0], rax
mov rax, qword [rsp + 0xe0]
mov rcx, qword [rsp + 0x170]
mov qword [rax], rcx
mov rax, qword [rsp + 0x170]
mov qword [rsp + 0x238], rax
mov qword [rsp + 0x70], 0xffffffffffffffff
inc qword [rsp + 0x70]
mov rax, qword [rsp + 0x238]
mov rcx, qword [rsp + 0x70]
cmp byte [rax + rcx], 0
jne 0x140191a34
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x240], rax
mov rax, qword [rsp + 0xe0]
mov rcx, qword [rsp + 0x240]
mov qword [rax + 8], rcx
lea rax, [rsp + 0xf0]
mov rdi, rax
mov rsi, qword [rsp + 0xe0]
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
mov r9b, reloc.WLDAP32.dll_Ordinal_46
xor r8d, r8d
mov rdx, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0xf0]
call fcn.140096220
mov qword [rsp + 0xe8], rax
cmp qword [rsp + 0xe8], 0xffffffffffffffff
je 0x140191b3f
mov r9, qword [rsp + 0xe8]
xor r8d, r8d
lea rdx, [rsp + 0x340]
lea rcx, [rsp + 0xf0]
call fcn.14019aaa0
mov rax, qword [rsp + 0xe8]
inc rax
mov r9, 0xffffffffffffffff
mov r8, rax
lea rdx, [rsp + 0x350]
lea rcx, [rsp + 0xf0]
call fcn.14019aaa0
lea rax, [rsp + 0x2c0]
lea rcx, [rsp + 0x340]
mov rdi, rax
mov rsi, rcx
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x2d0]
lea rcx, [rsp + 0x350]
mov rdi, rax
mov rsi, rcx
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
jmp 0x140191b9e
lea rax, [rsp + 0xf0]
mov qword [rsp + 0x248], rax
mov qword [rsp + 0x2b0], 0
mov qword [rsp + 0x2b8], 0
lea rax, [rsp + 0x2c0]
mov rdi, rax
mov rsi, qword [rsp + 0x248]
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x2d0]
lea rcx, [rsp + 0x2b0]
mov rdi, rax
mov rsi, rcx
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x2c0]
mov qword [rsp + 0x250], rax
lea rax, [rsp + 0x2d0]
mov qword [rsp + 0x260], rax
lea rax, [rsp + 0x280]
mov qword [rsp + 0x178], rax
lea rax, [rsp + 0x58]
mov rdi, rax
xor eax, eax
mov ecx, 4
rep stosb byte [rdi], al
mov dword [rsp + 0x58], 0x1b6e1b1e
lea rax, [rsp + 0x58]
mov qword [rsp + 0x258], rax
lea rax, [rsp + 0x360]
mov rdi, rax
mov rsi, qword [rsp + 0x250]
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x370]
lea rcx, [rsp + 0x360]
mov rdi, rax
mov rsi, rcx
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
lea rdx, [rsp + 0x370]
mov rcx, qword [rsp + 0x258]
call fcn.1400977d0
mov dword [rsp + 0x98], eax
mov rax, qword [rsp + 0x178]
mov ecx, dword [rsp + 0x98]
mov dword [rax], ecx
mov rax, qword [rsp + 0x178]
mov eax, dword [rax]
mov dword [rsp + 0xa8], eax
lea rax, [rsp + 0x270]
mov qword [rsp + 0x180], rax
lea rax, [rsp + 0x5c]
mov rdi, rax
xor eax, eax
mov ecx, 4
rep stosb byte [rdi], al
mov dword [rsp + 0x5c], 0x1b6e1b1e
lea rax, [rsp + 0x5c]
mov qword [rsp + 0x268], rax
lea rax, [rsp + 0x380]
mov rdi, rax
mov rsi, qword [rsp + 0x260]
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x390]
lea rcx, [rsp + 0x380]
mov rdi, rax
mov rsi, rcx
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
lea rdx, [rsp + 0x390]
mov rcx, qword [rsp + 0x268]
call fcn.1400977d0
mov dword [rsp + 0xa0], eax
mov rax, qword [rsp + 0x180]
mov ecx, dword [rsp + 0xa0]
mov dword [rax], ecx
mov rax, qword [rsp + 0x180]
mov eax, dword [rax]
mov dword [rsp + 0xac], eax
mov r8d, dword [rsp + 0xa8]
mov edx, dword [rsp + 0xac]
mov rcx, qword [rsp + 0x530]
call fcn.140191150
jmp 0x140191d46
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax]
jmp 0x140191d46
xor eax, eax
add rsp, 0x518
pop rdi
pop rsi
ret