Function at 0x1001f730
Capabilities:
Get process heap flags
Get process heap force flags
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x1004e63b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x8c
mov eax, dword [0x1005d330]
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0xb0]
mov dword [esp + 0x20], 0
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push edi
mov dword [esp + 0x9c], eax
mov ebp, ecx
call ebx
push eax
mov dword [esp + 0x14], eax
call fcn.10045c41
add esp, 4
mov esi, eax
lea eax, [esp + 0x10]
push eax
push esi
push edi
call ebx
push eax
push edi
call fcn.1001d210
mov ecx, dword [esi + 0x18]
mov edx, dword [esi + 0x1c]
push esi
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], edx
call fcn.10045c46
mov eax, dword [ebp + 8]
add esp, 0x14
push 0
lea ecx, [esp + 0x24]
push ecx
push eax
lea edx, [esp + 0x8c]
push edx
mov ecx, ebp
call fcn.1001ec10
mov eax, dword [ebp + 8]
push 1
lea ecx, [esp + 0x24]
push ecx
push eax
lea edx, [esp + 0x74]
push edx
mov ecx, ebp
call fcn.1001ec10
mov esi, dword [ebp + 0xc]
xor eax, eax
mov ecx, 0x10
lea edi, [esp + 0x28]
rep stosd dword es:[edi], eax
mov eax, dword [str.NTLMSSP]
mov ecx, dword [0x1005227c]
mov edi, dword [ebp + 4]
mov dword [esp + 0x28], eax
mov eax, 0x18
mov word [esp + 0x34], ax
mov word [esp + 0x36], ax
mov eax, dword [ebp]
push eax
mov dword [esp + 0x30], ecx
mov byte [esp + 0x34], 3
call ebx
push edi
mov dword [esp + 0x14], eax
call ebx
mov ecx, dword [esp + 0x10]
add ecx, eax
push esi
mov dword [esp + 0x14], ecx
call ebx
mov ecx, dword [esp + 0x10]
add ecx, eax
lea edx, [ecx + ecx + 0x40]
mov eax, 0x18
mov word [esp + 0x38], dx
mov word [esp + 0x3c], ax
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 4]
mov word [esp + 0x3e], ax
mov eax, dword [ebp]
push eax
call ebx
push edi
mov dword [esp + 0x14], eax
call ebx
mov ecx, dword [esp + 0x10]
add ecx, eax
push esi
mov dword [esp + 0x14], ecx
call ebx
mov ecx, dword [esp + 0x10]
add ecx, eax
lea eax, [ecx + ecx + 0x58]
mov word [esp + 0x40], ax
mov eax, dword [ebp + 0xc]
push eax
call ebx
shl eax, 1
mov word [esp + 0x44], ax
mov word [esp + 0x46], ax
mov eax, dword [ebp + 4]
push eax
mov word [esp + 0x4c], 0x40
call ebx
shl eax, 1
mov word [esp + 0x4c], ax
mov word [esp + 0x4e], ax
mov eax, dword [ebp + 0xc]
push eax
call ebx
lea ecx, [eax + eax + 0x40]
mov eax, dword [ebp]
push eax
mov word [esp + 0x54], cx
call ebx
mov esi, dword [ebp + 0xc]
shl eax, 1
mov word [esp + 0x54], ax
mov word [esp + 0x56], ax
mov eax, dword [ebp + 4]
push eax
call ebx
push esi
mov edi, eax
call ebx
mov esi, dword [ebp + 0xc]
add edi, eax
mov eax, dword [ebp]
lea edx, [edi + edi + 0x40]
mov edi, dword [ebp + 4]
push eax
mov word [esp + 0x5c], dx
call ebx
push edi
mov dword [esp + 0x14], eax
call ebx
mov ecx, dword [esp + 0x10]
add ecx, eax
push esi
mov dword [esp + 0x14], ecx
call ebx
mov ecx, dword [esp + 0x10]
add ecx, eax
lea eax, [ecx + ecx + 0x70]
mov word [esp + 0x60], ax
movzx eax, ax
push eax
mov word [esp + 0x68], 0x8201
mov dword [esp + 0x24], eax
call fcn.10045c41
mov edi, eax
mov ecx, 0x10
lea esi, [esp + 0x2c]
mov dword [esp + 0x14], eax
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp + 0xc]
add esp, 4
push eax
lea ecx, [esp + 0x18]
call fcn.10001dc0
mov eax, dword [eax]
test eax, eax
mov ecx, dword [ebp + 0xc]
je 0x1001f953
mov esi, dword [eax]
jmp 0x1001f955
xor esi, esi
push ecx
call ebx
mov edi, dword [esp + 0x10]
mov ecx, eax
shl ecx, 1
mov eax, ecx
shr ecx, 2
add edi, 0x40
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x1001f97e
call fcn.100027a0
mov eax, dword [ebp + 4]
push eax
lea ecx, [esp + 0x18]
call fcn.10001dc0
mov eax, dword [eax]
test eax, eax
mov ecx, dword [ebp + 4]
je 0x1001f998
mov esi, dword [eax]
jmp 0x1001f99a
xor esi, esi
push ecx
call ebx
movsx edi, word [esp + 0x50]
mov edx, dword [esp + 0x10]
mov ecx, eax
shl ecx, 1
add edi, edx
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x1001f9c7
call fcn.100027a0
mov eax, dword [ebp]
push eax
lea ecx, [esp + 0x20]
call fcn.10001dc0
mov eax, dword [eax]
test eax, eax
mov ebp, dword [ebp]
je 0x1001f9e1
mov esi, dword [eax]
jmp 0x1001f9e3
xor esi, esi
push ebp
call ebx
movsx edi, word [esp + 0x58]
mov ebx, dword [esp + 0x10]
mov ecx, eax
shl ecx, 1
mov eax, ecx
shr ecx, 2
add edi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x1c]
xor ebp, ebp
cmp ecx, ebp
je 0x1001fa16
call fcn.100027a0
mov dword [esp + 0x1c], ebp
movsx ecx, word [esp + 0x38]
mov edx, dword [esp + 0x80]
mov eax, dword [esp + 0x84]
add ecx, ebx
mov dword [ecx], edx
mov edx, dword [esp + 0x88]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x8c]
mov dword [ecx + 8], edx
mov edx, dword [esp + 0x90]
mov dword [ecx + 0xc], eax
mov eax, dword [esp + 0x94]
mov dword [ecx + 0x10], edx
mov edx, dword [esp + 0x68]
mov dword [ecx + 0x14], eax
movsx ecx, word [esp + 0x40]
mov eax, dword [esp + 0x6c]
mov edi, dword [esp + 0x20]
add ecx, ebx
mov dword [ecx], edx
mov edx, dword [esp + 0x70]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x74]
mov dword [ecx + 8], edx
mov edx, dword [esp + 0x78]
mov dword [ecx + 0xc], eax
mov eax, dword [esp + 0x7c]
mov dword [ecx + 0x10], edx
mov dword [ecx + 0x14], eax
lea ecx, [edi*4]
mov eax, 0x55555556
imul ecx
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov eax, edi
cdq
mov esi, 3
idiv esi
mov esi, 0x4c
add ecx, edx
mov eax, ecx
cdq
idiv esi
cmp edx, ebp
je 0x1001fad3
and edx, reloc.WS2_32.dll_closesocket
jns 0x1001fac8
dec edx
or edx, 0xfffffffc
inc edx
je 0x1001fad3
mov esi, 4
sub esi, edx
add ecx, esi
lea eax, [ecx + eax*2 + 2]
mov dword [esp + 0x10], eax
inc eax
push eax
call fcn.10045c41
push 2
lea ecx, [esp + 0x18]
push ecx
mov esi, eax
push esi
push edi
push ebx
call fcn.1001d030
mov edx, dword [esp + 0x28]
add esp, 0x18
push esi
lea ecx, [esp + 0x1c]
mov byte [esi + edx], 0
call fcn.100047c0
push esi
mov dword [esp + 0xa8], ebp
call fcn.10045c46
push ebx
call fcn.10045c46
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
push eax
call fcn.10008e60
mov esi, dword [esp + 0xb8]
add eax, 0x10
mov dword [esi], eax
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
add esp, 0xc
mov dword [esp + 0xa4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1001fb60
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x9c]
pop edi
mov eax, esi
pop esi
pop ebp
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x8c]
pop ebx
call fcn.10036c09
add esp, 0x98
ret 8