Function at 0x402c10
Capabilities:
Initialize winsock library
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x4e4
mov eax, dword [0x418310]
xor eax, esp
mov dword [esp + 0x4dc], eax
mov eax, dword [esp + 0x4e8]
push ebx
push ebp
mov ebp, dword [esp + 0x4f4]
push esi
mov dword [esp + 0x60], eax
xor eax, eax
push edi
or esi, 0xffffffff
lea edi, [esp + 0x1c]
mov ebx, edx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x60], ebp
mov dword [esp + 0x40], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x5c], 0x103
mov dword [esp + 0x3c], esi
call fcn.00405700
mov edi, eax
mov dword [esp + 0x14], edi
test edi, edi
jne 0x402c95
push str.InstallIfsLspProtocolChains:_Unable_to_enumerate_catalog_n
call fcn.004073bb
add eax, 0x40
push eax
call fcn.0040729f
add esp, 8
mov eax, esi
jmp 0x40344c
mov esi, dword [esp + 0x1c]
push edi
push ebx
mov ebx, esi
call fcn.00405570
xor ebx, ebx
add esp, 8
cmp eax, ebx
je 0x402cb4
mov edx, dword [eax + 0x24]
mov dword [esp + 0x4c], edx
jmp 0x402cb8
mov dword [esp + 0x4c], ebx
mov eax, dword [0x419c74]
push 0x274
push 8
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esp + 0x28], eax
cmp eax, ebx
jne 0x402cea
push 0x2747
mov dword [esp + 0x24], 0x2747
push str.InstallIfsLspProtocolChains:_LspAlloc_failed:__d_n
jmp 0x4033c7
mov dword [esp + 0x24], ebx
mov dword [esp + 0x30], ebx
mov ebx, ebp
mov dword [esp + 0x54], ebp
xor ecx, ecx
cmp esi, ecx
mov dword [esp + 0x38], ecx
jle 0x402f31
mov eax, dword [esp + 0x24]
mov ebp, eax
imul ebp, ebp, 0x274
add ebp, dword [esp + 0x28]
lea edx, [eax + 1]
add edi, 0x28
mov dword [esp + 0x44], edx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x18], edi
mov eax, dword [edi - 4]
mov ecx, dword [ebx]
push eax
push ecx
push str.Matching_selected_ID__d_to_catalog__d_n
call fcn.00406b4c
mov edx, dword [ebx]
add esp, 0xc
cmp edx, dword [edi - 4]
jne 0x402f0a
cmp dword [edi], 6
jge 0x402fb4
mov edx, dword [esp + 0x18]
lea eax, [edx - 0x28]
mov esi, eax
mov ecx, 0x9d
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
mov esi, eax
mov eax, dword [esp + 0x64]
add edx, 0x4c
push edx
mov ecx, 0x9d
lea edi, [esp + 0x6c]
push eax
rep movsd dword es:[edi], dword [esi]
push str._s_over___s_
lea ebx, [ebp + 0x74]
mov ecx, 0xff
call fcn.004039e0
add esp, 0xc
test eax, eax
jl 0x402fbe
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx]
cmp eax, 2
jl 0x402eaf
lea edi, [eax - 2]
test edi, edi
jl 0x402eaf
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x1c]
add edx, edi
lea esi, [eax + edx*4 + 0x2c]
mov ecx, dword [esp + 0x14]
mov edx, dword [esi]
xor eax, eax
add ecx, 0x24
cmp dword [ecx], edx
je 0x402de3
inc eax
add ecx, 0x274
cmp eax, ebx
jl 0x402dcc
xor eax, eax
mov dword [esp + 0x48], eax
jmp 0x402e01
mov ecx, dword [esp + 0x14]
imul eax, eax, 0x274
mov eax, dword [eax + ecx]
shr eax, 0x11
not eax
and eax, 1
mov dword [esp + 0x48], eax
cmp eax, 1
je 0x402e0e
dec edi
sub esi, 4
test edi, edi
jge 0x402dc1
jmp 0x402eb3
mov edx, dword [esp + 0x18]
mov edx, dword [edx]
lea eax, [edi + 1]
cmp edx, eax
jle 0x402e35
mov ecx, dword [esp + 0x18]
add ecx, 0xffffffd8
lea ecx, [ecx + edx*4 + 0x2c]
sub edx, eax
mov esi, dword [ecx - 4]
mov dword [ecx], esi
add ecx, 0xfffffffc
sub edx, 1
jne 0x402e28
mov edx, dword [esp + 0x18]
lea ecx, [edx - 0x28]
mov dword [ecx + eax*4 + 0x2c], 0
inc dword [ecx + 0x28]
mov ecx, dword [esp + 0x44]
mov dword [edx + 0x48], ecx
cmp eax, dword [ebp + 0x28]
mov ecx, eax
jge 0x402e74
lea edx, [ebp + eax*4 + 0x2c]
lea esi, [ebp + 0x30]
lea esp, [esp]
mov ebx, dword [edx]
mov dword [esi], ebx
inc ecx
add edx, 4
add esi, 4
cmp ecx, dword [ebp + 0x28]
jl 0x402e60
mov ebx, dword [esp + 0x1c]
mov edx, dword [esp + 0x4c]
mov dword [ebp + 0x2c], edx
mov edx, dword [esp + 0x44]
push edi
push edx
mov ecx, 1
sub ecx, eax
add dword [ebp + 0x28], ecx
mov eax, dword [esp + 0x1c]
or dword [ebp], 0x20000
push ebx
push eax
lea ecx, [esp + 0x78]
push ecx
mov dword [esp + 0x48], 1
call fcn.00403470
add esp, 0x14
jmp 0x402eeb
mov eax, dword [esp + 0x48]
cmp eax, 1
je 0x402eeb
mov ecx, dword [ebp + 0x28]
test ecx, ecx
jle 0x402ed0
lea eax, [ebp + ecx*4 + 0x2c]
mov edx, dword [eax - 4]
mov dword [eax], edx
dec ecx
sub eax, 4
test ecx, ecx
jg 0x402ec3
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x8c]
mov dword [ebp + 0x2c], eax
inc dword [ebp + 0x28]
or dword [ebp], 0x20000
mov dword [ebp + 0x30], ecx
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x54]
mov esi, dword [esp + 0x1c]
mov eax, 1
add dword [esp + 0x24], eax
add dword [esp + 0x44], eax
add ebp, 0x274
mov eax, dword [esp + 0x38]
add dword [esp + 0x2c], 0x9d
inc eax
add edi, 0x274
cmp eax, esi
mov dword [esp + 0x38], eax
mov dword [esp + 0x18], edi
jl 0x402d28
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x30]
inc eax
add ebx, 4
cmp eax, 1
mov dword [esp + 0x30], eax
mov dword [esp + 0x54], ebx
jl 0x402cf8
mov ebp, dword [esp + 0x28]
mov esi, dword [sym.imp.RPCRT4.dll_UuidCreate]
xor ebx, ebx
add ebp, 0x14
mov edi, ebp
jmp 0x402f60
push edi
call esi
test eax, eax
jne 0x402fc9
mov eax, dword [esp + 0x50]
push eax
lea edx, [edi - 0x14]
mov ecx, 1
mov eax, edi
call fcn.00402a40
add esp, 4
test eax, eax
jne 0x402fda
inc ebx
add edi, 0x274
cmp ebx, 1
jl 0x402f60
cmp dword [esp + 0x34], 1
jne 0x4033da
lea edi, [esp + 0x50]
call fcn.00405700
mov dword [esp + 0x40], eax
test eax, eax
jne 0x402fe4
push str.InstallIfsLspProtocolChains:_Unable_to_enumerate_catalog_n
jmp 0x4033f0
push str.InstallIfsLspProtocolChain:_Too_many_LSPs_installed__n
jmp 0x4033f0
push eax
push str.InstallIfsLspProtocolChains:_StringCchPrintfW_failed:_0x_x_n
jmp 0x4033c7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.InstallIfsLspProtocolChains:_UuidCreate_failed:__d_n
jmp 0x4033c7
push str.InstallIfsLspProtocolChains:_Unable_to_install_the_dummy_LSP_entry__n
jmp 0x4033f0
mov ebx, dword [esp + 0x50]
push eax
push ebp
call fcn.00405570
add esp, 8
test eax, eax
je 0x402ffb
mov eax, dword [eax + 0x24]
jmp 0x402ffd
xor eax, eax
mov esi, dword [esp + 0x28]
xor ebp, ebp
cmp dword [esp + 0x1c], ebp
mov dword [esi + 0x24], eax
jle 0x4030ce
mov edi, dword [esp + 0x14]
add edi, 0x70
cmp dword [edi], 0
je 0x4030bd
xor ecx, ecx
cmp dword [edi - 0x48], ecx
jle 0x403055
lea eax, [edi - 0x44]
lea ebx, [ebx]
cmp dword [eax], 0
jne 0x40304c
mov edx, dword [edi]
imul edx, edx, 0x274
mov edx, dword [edx + esi - 0x250]
mov dword [eax], edx
mov dword [edi], 0
inc ecx
add eax, 4
cmp ecx, dword [edi - 0x48]
jl 0x403030
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x60]
push ecx
lea edx, [esp + 0x2e8]
push edx
lea ebx, [edi - 0x5c]
push ebx
mov dword [esp + 0x6c], 0x103
call sub.WS2_32.dll_WSCGetProviderPath
cmp eax, 0xffffffff
je 0x403167
lea eax, [esp + 0x20]
push eax
push 1
lea ecx, [edi - 0x70]
push ecx
lea edx, [esp + 0x2ec]
push edx
push ebx
call dword [0x419c6c]
cmp eax, 0xffffffff
je 0x40313d
mov eax, dword [edi - 0x48]
mov edx, dword [edi - 0x4c]
push eax
lea ecx, [edi + 4]
push ecx
push edx
push str.Updated_entry_ID:__d:__S__chain_len___d__n
call fcn.00406b4c
add esp, 0x10
inc ebp
add edi, 0x274
cmp ebp, dword [esp + 0x1c]
jl 0x403017
mov eax, dword [esp + 0x14]
mov ecx, dword [0x419c74]
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
push eax
push 0
push ecx
call edi
mov edx, dword [esp + 0x40]
mov eax, dword [0x419c74]
push edx
push 0
push eax
call edi
mov dword [esp + 0x40], 0
call dword [sym.imp.WS2_32.dll_WSACleanup]
lea ecx, [esp + 0x68]
push ecx
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
lea edi, [esp + 0x1c]
call fcn.00405700
mov dword [esp + 0x14], eax
test eax, eax
jne 0x403176
push str.InstallIfsLspProtocolChains:_Unable_to_enumerate_catalog_n
call fcn.004073bb
add eax, 0x40
push eax
call fcn.0040729f
add esp, 8
jmp 0x403448
mov eax, dword [esp + 0x20]
push eax
push str.UpdateProvider:_WSCUpdateProvider_failed:__d_n
call fcn.004073bb
add eax, 0x40
push eax
call fcn.0040729f
mov edx, dword [esp + 0x2c]
add esp, 0xc
push edx
push str.InstallIfsLspProtocolChains:_UpdateProvider_failed:__d_n
jmp 0x4033c7
mov ecx, dword [esp + 0x20]
push ecx
push str.InstallIfsLspProtocolChains:_WSCGetProviderPath_failed:__d_n
jmp 0x4033c7
mov esi, dword [esp + 0x1c]
mov eax, dword [0x419c74]
lea edx, [esi*4]
push edx
push 8
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esp + 0x2c], eax
test eax, eax
jne 0x4031a0
mov dword [esp + 0x20], 0x2747
mov dword [esp + 0x58], eax
test eax, eax
jne 0x4031b2
push str.InstallIfsLspProtocolChains:_Unable_to_enumerate_catalog_n
jmp 0x4033f0
mov edx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x60]
xor ebx, ebx
mov dword [esp + 0x18], ebx
sub ebp, edx
xor eax, eax
test esi, esi
jle 0x403240
mov ecx, dword [esp + 0x14]
mov edi, dword [edx + ebp]
add ecx, 0x24
cmp dword [ecx], edi
je 0x4031e9
inc eax
add ecx, 0x274
cmp eax, dword [esp + 0x1c]
jge 0x403240
mov esi, dword [esp + 0x1c]
jmp 0x4031d2
mov edi, dword [esp + 0x14]
imul eax, eax, 0x274
add eax, edi
je 0x403240
mov ecx, 1
add dword [esp + 0x18], ecx
mov dword [eax + 0x70], ecx
mov eax, dword [eax + 0x24]
mov dword [edx], eax
add ebx, ecx
add edx, 4
cmp ebx, ecx
jl 0x4031c2
lea ecx, [edi + 0x24]
mov dword [esp + 0x30], 0
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x60]
mov edx, dword [edx + ecx*4]
mov ecx, dword [esp + 0x24]
xor eax, eax
cmp dword [ecx], edx
je 0x40324a
inc eax
add ecx, 0x274
cmp eax, esi
jl 0x403231
push str.InstallIfsLspProtocolChain:_Unable_to_find_entry_to_reorder_catalog__n
jmp 0x4033f0
imul eax, eax, 0x274
add eax, edi
mov edi, eax
mov dword [esp + 0x34], edi
je 0x403240
mov edx, dword [edi + 0x28]
mov ecx, dword [edi + 0x24]
push edx
lea eax, [edi + 0x74]
push eax
push ecx
push str.Looping_through:__d:__S__chain_len___d__n
call fcn.00406b4c
mov edx, dword [edi + 0x28]
dec edx
add esp, 0x10
cmp edx, 1
mov dword [esp + 0x38], 1
jle 0x403333
mov eax, edi
add eax, 0x30
mov dword [esp + 0x28], eax
mov ecx, dword [esp + 0x28]
mov edx, dword [ecx]
mov ecx, dword [esp + 0x24]
xor eax, eax
lea ecx, [ecx]
cmp edx, dword [ecx]
je 0x40334a
inc eax
add ecx, 0x274
cmp eax, esi
jl 0x4032a0
xor ebp, ebp
push ebp
push edx
push str.___Finding_dummy_ID_for_chain_entry:__d_is__d_n
call fcn.00406b4c
mov edi, dword [esp + 0x20]
add esp, 0xc
add edi, 0x70
mov ebx, esi
lea ecx, [ecx]
cmp dword [edi - 0x48], 2
jl 0x40330a
cmp dword [edi - 0x44], ebp
jne 0x40330a
cmp dword [edi], 0
jne 0x40330a
mov edx, dword [edi - 0x4c]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x2c]
mov dword [ecx + eax*4], edx
mov edx, dword [edi - 0x4c]
push edx
inc eax
push str.______Adding:__d_n
mov dword [esp + 0x20], eax
mov dword [edi], 1
call fcn.00406b4c
add esp, 8
add edi, 0x274
sub ebx, 1
jne 0x4032d0
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
mov edx, dword [ecx + 0x28]
add dword [esp + 0x28], 4
inc eax
dec edx
cmp eax, edx
mov dword [esp + 0x38], eax
jl 0x403291
mov eax, dword [esp + 0x30]
inc eax
cmp eax, 1
mov dword [esp + 0x30], eax
jge 0x40336c
mov edi, dword [esp + 0x14]
jmp 0x403220
mov ecx, dword [esp + 0x14]
imul eax, eax, 0x274
add eax, ecx
cmp dword [eax + 0x28], 0
jne 0x403364
mov ebp, dword [eax + 0x24]
jmp 0x4032b5
mov ebp, dword [eax + 0x2c]
jmp 0x4032b5
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0x2c]
lea ecx, [edi + eax*4]
mov eax, dword [esp + 0x24]
mov edx, esi
lea ecx, [ecx]
cmp dword [eax + 0x4c], 0
jne 0x40338d
mov ebx, dword [eax]
mov dword [ecx], ebx
add ecx, 4
add eax, 0x274
sub edx, 1
jne 0x403380
push esi
push edi
call sub.WS2_32.dll_WSCWriteProviderOrder
test eax, eax
je 0x403403
push eax
push str.WriteProviderOrder:_WSCWriteProviderOrder_failed:__d_n
mov dword [esp + 0x28], eax
call fcn.004073bb
add eax, 0x40
push eax
call fcn.0040729f
mov ecx, dword [esp + 0x2c]
add esp, 0xc
push ecx
push str.InstallIfsLspProtocolChains:_WriteProviderOrder_failed:__d_n
call fcn.004073bb
add eax, 0x40
push eax
call fcn.0040729f
add esp, 0xc
jmp 0x40340b
mov edx, dword [esp + 0x4c]
push edx
call fcn.00403620
add esp, 4
test eax, eax
je 0x403403
push str.InstallIfsLspProtocolChains:_Unable_to_reorder_Winsock_catalog__n
call fcn.004073bb
add eax, 0x40
push eax
call fcn.0040729f
add esp, 8
jmp 0x40340b
mov dword [esp + 0x3c], 0
mov eax, dword [esp + 0x14]
mov ecx, dword [0x419c74]
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
push eax
push 0
push ecx
call esi
mov eax, dword [esp + 0x40]
test eax, eax
je 0x403435
mov edx, dword [0x419c74]
push eax
push 0
push edx
call esi
mov eax, dword [esp + 0x58]
test eax, eax
je 0x403448
push eax
mov eax, dword [0x419c74]
push 0
push eax
call esi
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x4ec]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00406b3d
add esp, 0x4e4
ret