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

Disassembly:
sub esp, 0x6c
mov eax, dword [0x4382c4]
xor eax, esp
mov dword [esp + 0x68], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [esp + 0x80]
mov esi, edx
mov edx, dword [str._TCP_IP_]
mov dword [esp + 0x40], edx
mov edx, dword [0x42d868]
mov dword [esp + 0x3c], ecx
mov ecx, dword [0x42d864]
mov dword [esp + 0x48], edx
movzx edx, word [0x42d870]
mov dword [esp + 0x44], ecx
mov ecx, dword [0x42d86c]
mov word [esp + 0x50], dx
mov edx, dword [0x42d878]
mov dword [esp + 0x4c], ecx
mov ecx, dword [str._UDP_IP_]
mov dword [esp + 0x56], edx
mov edx, dword [0x42d880]
mov dword [esp + 0x52], ecx
mov ecx, dword [0x42d87c]
mov dword [esp + 0x5e], edx
mov edx, dword [str._RAW_IP_]
mov dword [esp + 0x5a], ecx
mov cx, word [0x42d884]
mov dword [esp + 0x64], edx
mov edx, dword [0x42d890]
mov word [esp + 0x62], cx
mov ecx, dword [0x42d88c]
mov dword [esp + 0x6c], edx
movzx edx, word [0x42d898]
mov dword [esp + 0x34], eax
xor eax, eax
mov dword [esp + 0x68], ecx
mov ecx, dword [0x42d894]
or ebx, 0xffffffff
lea edi, [esp + 0x14]
mov dword [esp + 0x14], eax
mov dword [esp + 0x24], ebx
mov dword [esp + 0x70], ecx
mov word [esp + 0x74], dx
mov dword [esp + 0x20], eax
call fcn.004023d0
mov ebp, eax
test ebp, ebp
mov dword [esp + 0x38], ebp
jne 0x403060
push str.InstallNonIfsLspProtocolChain:_Unable_to_enumerate_catalog_n
call fcn.0041b248
add eax, 0x40
push eax
call fcn.0041b0f9
add esp, 8
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.0041aec3
add esp, 0x6c
ret 0xc
mov edi, dword [esp + 0x88]
mov ecx, dword [0x43ad9c]
mov eax, edi
imul eax, eax, 0x274
push eax
push 8
push ecx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
mov dword [esp + 0x1c], eax
jne 0x403096
push 0x2747
push str.InstallNonIfsLspProtocolChain:_LspAlloc_failed:__d_n
jmp 0x40324c
mov ebx, dword [esp + 0x14]
push ebx
push ebp
push esi
call fcn.00402480
test eax, eax
je 0x40326e
mov eax, dword [eax + 0x24]
test eax, eax
mov dword [esp + 0x30], eax
je 0x40326e
xor eax, eax
cmp ebx, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x2c], eax
jle 0x4031d3
jmp 0x4030d0
xor eax, eax
test edi, edi
mov dword [esp + 0x28], eax
jle 0x4031ba
mov ebx, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
imul ebx, ebx, 0x274
add ebx, dword [esp + 0x1c]
lea edx, [ecx + ecx*8]
lea ecx, [esp + edx*2 + 0x40]
mov dword [esp + 0x18], ecx
jmp 0x403100
mov edx, dword [ebp + 0x24]
mov ecx, dword [esp + 0x84]
cmp edx, dword [ecx + eax*4]
jne 0x4031a3
cmp dword [ebp + 0x28], 6
jge 0x403231
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x34]
push edx
push eax
mov ecx, 0x9d
mov esi, ebp
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
push 0x42d948
lea edi, [ebx + 0x74]
mov eax, 0xff
call fcn.004033a0
add dword [esp + 0x24], 0x12
mov edx, 1
add dword [esp + 0x2c], edx
add esp, 0xc
test eax, eax
jl 0x403238
mov ecx, dword [ebx + 0x28]
test ecx, ecx
jle 0x403176
lea eax, [ebx + ecx*4 + 0x2c]
mov esi, dword [eax - 4]
mov dword [eax], esi
sub ecx, edx
sub eax, 4
test ecx, ecx
jg 0x403168
mov ecx, dword [esp + 0x30]
add dword [esp + 0x10], edx
mov edi, dword [esp + 0x88]
mov dword [ebx + 0x2c], ecx
add dword [ebx + 0x28], edx
mov eax, dword [ebp + 0x24]
and dword [ebx], 0xfffdffff
mov dword [ebx + 0x30], eax
mov eax, dword [esp + 0x28]
add ebx, 0x274
jmp 0x4031a8
mov edx, 1
add eax, edx
cmp eax, edi
mov dword [esp + 0x28], eax
jl 0x403100
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x2c]
add eax, 1
add ebp, 0x274
cmp eax, ebx
mov dword [esp + 0x2c], eax
jl 0x4030d0
xor ebx, ebx
test edi, edi
jle 0x40320b
mov esi, dword [esp + 0x1c]
mov ebp, dword [sym.imp.RPCRT4.dll_UuidCreate]
add esi, 0x14
push esi
call ebp
test eax, eax
jne 0x403240
mov edx, dword [esp + 0x3c]
lea ecx, [esi - 0x14]
push esi
call fcn.004029f0
test eax, eax
jne 0x40325f
add ebx, 1
add esi, 0x274
cmp ebx, edi
jl 0x4031e6
mov ecx, dword [esp + 0x30]
push ecx
call fcn.00402560
test eax, eax
je 0x403266
push str.InstallNonIfsLspProtocolChains:_Unable_to_reorder_Winsock_catalog__n
call fcn.0041b248
add eax, 0x40
push eax
call fcn.0041b0f9
add esp, 8
jmp 0x40326e
push str.InstallNonIfsLspProtocolchain:_Too_many_LSPs_installed__n
jmp 0x40321e
push eax
push str.InstallNonIfsLspProtocolChain:_StringCchPrintfW_failed:_0x_x_n
jmp 0x40324c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.InstallNonIfsLspProtocolChains:_UuidCreate_failed:__d_n
call fcn.0041b248
add eax, 0x40
push eax
call fcn.0041b0f9
add esp, 0xc
jmp 0x40326e
push str.InstallNonIfsLspProtocolChains:_Unable_to_install_layered_chain_entries__n
jmp 0x40321e
mov dword [esp + 0x24], 0
mov edx, dword [esp + 0x38]
mov eax, dword [0x43ad9c]
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
push edx
push 0
push eax
call esi
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x403297
mov ecx, dword [0x43ad9c]
push eax
push 0
push ecx
call esi
mov ecx, dword [esp + 0x78]
mov eax, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0041aec3
add esp, 0x6c
ret 0xc