Function at 0x1007777
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
mov ebx, dword [ebp + 0xc]
xor edx, edx
cmp dword [0x100ac4c], 0xffffffff
push esi
push edi
mov dword [ebp - 4], edx
je 0x10077db
lea ecx, [ebp - 0x14]
cmp edx, 0x18
jae 0x10077db
mov eax, dword [edx + 0x100ac4c]
add eax, ebx
cmp dword [eax], 0
je 0x10077c9
mov eax, dword [eax]
lea edi, [eax + 2]
mov si, word [eax]
inc eax
inc eax
test si, si
jne 0x10077ad
mov esi, dword [ebp - 4]
sub eax, edi
sar eax, 1
inc eax
mov dword [ecx], eax
lea eax, [esi + eax*2]
mov dword [ebp - 4], eax
jmp 0x10077cc
and dword [ecx], 0
add edx, 8
add ecx, 4
cmp dword [edx + 0x100ac4c], 0xffffffff
jne 0x1007796
cmp dword [0x100ac6c], 0xffffffff
mov edi, dword [ebp + 0x10]
je 0x1007835
lea ecx, [ebp - 0x20]
xor edx, edx
cmp edx, 0x18
jae 0x1007835
mov eax, dword [edx + 0x100ac6c]
add eax, edi
cmp dword [eax], 0
je 0x1007823
mov eax, dword [eax]
lea esi, [eax + 2]
mov dword [ebp + 0xc], esi
mov si, word [eax]
inc eax
inc eax
test si, si
jne 0x1007806
sub eax, dword [ebp + 0xc]
mov esi, dword [ebp - 4]
sar eax, 1
inc eax
mov dword [ecx], eax
lea eax, [esi + eax*2]
mov dword [ebp - 4], eax
jmp 0x1007826
and dword [ecx], 0
add edx, 8
add ecx, 4
cmp dword [edx + 0x100ac6c], 0xffffffff
jne 0x10077ec
cmp dword [ebp + 8], 3
jne 0x100786c
mov eax, dword [0x100ac8c]
xor ecx, ecx
jmp 0x1007867
mov eax, dword [eax + edi]
lea esi, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x100784a
sub eax, esi
sar eax, 1
add dword [ebp - 4], eax
mov dword [ebp + ecx*4 - 8], eax
mov eax, dword [ecx*8 + 0x100ac94]
inc ecx
cmp eax, 0xffffffff
jne 0x1007844
mov esi, dword [ebp + 0x14]
mov eax, dword [ebp - 4]
push esi
add eax, 0xbc
push eax
call sub.netutils.dll_NetapipBufferAllocate
test eax, eax
je 0x100788a
push 8
pop eax
jmp 0x1007a56
mov eax, dword [esi]
mov ecx, dword [ebp - 4]
lea edx, [eax + ecx + 0xb0]
mov dword [ebp + 0xc], edx
lea edx, [ebp - 0x14]
push edx
push 0x100ac4c
add ecx, 0xb0
push ecx
push eax
push ebx
lea eax, [ebp + 0xc]
push eax
mov dword [ebp + 0x10], ecx
call fcn.01007f9e
lea eax, [ebp - 0x20]
push eax
push 0x100ac6c
push dword [ebp + 0x10]
lea eax, [ebp + 0xc]
push dword [esi]
push edi
push eax
call fcn.01007f9e
mov eax, dword [esi]
mov ecx, dword [ebx + 8]
mov dword [eax + 4], ecx
mov eax, dword [esi]
mov ecx, dword [ebx + 0xc]
mov dword [eax + 8], ecx
mov eax, dword [esi]
mov ecx, dword [ebx + 0x10]
mov dword [eax + 0xc], ecx
mov eax, dword [esi]
mov ecx, dword [edi]
mov dword [eax + 0x14], ecx
mov eax, dword [esi]
mov ecx, dword [edi + 4]
mov dword [eax + 0x18], ecx
mov eax, dword [esi]
mov ecx, dword [edi + 8]
mov dword [eax + 0x1c], ecx
mov eax, dword [esi]
mov ecx, dword [ebx + 0x18]
mov dword [eax + 0x20], ecx
mov eax, dword [esi]
mov ecx, dword [ebx + 0x1c]
mov dword [eax + 0x24], ecx
mov eax, dword [esi]
mov ecx, dword [edi + 0x10]
mov dword [eax + 0x2c], ecx
mov eax, dword [esi]
and dword [eax + 0x30], 0
mov eax, dword [esi]
mov ecx, dword [edi + 0x14]
mov dword [eax + 0x34], ecx
mov eax, dword [esi]
mov ecx, dword [edi + 0x18]
mov dword [eax + 0x38], ecx
mov eax, dword [esi]
mov ecx, dword [ebx + 0x20]
mov dword [eax + 0x3c], ecx
mov eax, dword [esi]
mov ecx, dword [ebx + 0x24]
mov dword [eax + 0x40], ecx
mov eax, dword [esi]
mov ecx, dword [ebx + 0x28]
mov dword [eax + 0x44], ecx
mov eax, dword [esi]
mov ecx, dword [ebx + 0x2c]
mov dword [eax + 0x4c], ecx
mov eax, dword [esi]
mov ecx, dword [edi + 0x20]
mov dword [eax + 0x54], ecx
mov eax, dword [esi]
mov ecx, dword [edi + 0x24]
mov dword [eax + 0x58], ecx
mov eax, dword [esi]
mov ecx, dword [edi + 0x28]
mov dword [eax + 0x5c], ecx
mov eax, dword [esi]
cmp dword [ebp + 8], 3
mov ecx, dword [edi + 0x2c]
mov dword [eax + 0x60], ecx
mov eax, dword [esi]
mov ecx, dword [edi + 0x30]
mov dword [eax + 0x64], ecx
mov eax, dword [esi]
mov ecx, dword [edi + 0x34]
mov dword [eax + 0x68], ecx
mov eax, dword [esi]
mov ecx, dword [edi + 0x38]
mov dword [eax + 0x6c], ecx
mov eax, dword [esi]
mov ecx, dword [edi + 0x3c]
mov dword [eax + 0x70], ecx
mov eax, dword [esi]
mov ecx, dword [edi + 0x40]
mov dword [eax + 0x74], ecx
mov eax, dword [esi]
mov ecx, dword [edi + 0x44]
mov dword [eax + 0x78], ecx
mov eax, dword [esi]
mov ecx, dword [edi + 0x48]
mov dword [eax + 0x7c], ecx
mov eax, dword [esi]
mov ecx, dword [edi + 0x4c]
mov dword [eax + 0x80], ecx
mov eax, dword [esi]
mov ecx, dword [edi + 0x50]
mov dword [eax + 0x84], ecx
mov eax, dword [esi]
mov ecx, dword [edi + 0x54]
mov dword [eax + 0x88], ecx
mov eax, dword [esi]
mov ecx, dword [edi + 0x58]
mov dword [eax + 0x8c], ecx
mov eax, dword [esi]
mov ecx, dword [edi + 0x5c]
mov dword [eax + 0x90], ecx
mov eax, dword [esi]
mov ecx, dword [edi + 0x60]
mov dword [eax + 0x94], ecx
mov eax, dword [esi]
mov ecx, dword [edi + 0x64]
mov dword [eax + 0x98], ecx
mov eax, dword [esi]
mov ecx, dword [edi + 0x68]
mov dword [eax + 0x9c], ecx
mov eax, dword [esi]
mov ecx, dword [edi + 0x6c]
mov dword [eax + 0xa0], ecx
mov eax, dword [esi]
mov ecx, dword [edi + 0x70]
mov dword [eax + 0xa4], ecx
mov eax, dword [esi]
mov ecx, dword [edi + 0x74]
mov dword [eax + 0xa8], ecx
jne 0x1007a54
lea eax, [ebp - 8]
push eax
push 0x100ac8c
push dword [ebp + 0x10]
lea eax, [ebp + 0xc]
push dword [esi]
push edi
push eax
call fcn.01007f9e
mov eax, dword [esi]
mov ecx, dword [edi + 0x7c]
mov dword [eax + 0xb0], ecx
mov eax, dword [esi]
mov ecx, dword [edi + 0x80]
mov dword [eax + 0xb4], ecx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x10