Function at 0x401ed0
Capabilities:
Get common file path
Initialize winsock library

Disassembly:
sub esp, 0x2bc
mov eax, dword [0x4382c4]
xor eax, esp
mov dword [esp + 0x2b4], eax
push ebx
push ebp
push esi
push edi
xor esi, esi
push 0x18e
lea eax, [esp + 0x2e]
push esi
push eax
mov word [esp + 0x34], si
call fcn.00420f50
add esp, 0xc
push 0x103
lea ecx, [esp + 0x1bd]
push esi
push ecx
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], esi
mov byte [esp + 0x1c4], 0
call fcn.00420f50
add esp, 0xc
push 0x104
lea edx, [esp + 0x1bc]
push edx
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x28], esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x42d258
lea eax, [esp + 0x1bc]
push 0x104
push eax
call fcn.0041af88
add esp, 0xc
lea ecx, [esp + 0x1b8]
push esi
push ecx
call fcn.0041b0e5
add esp, 8
cmp eax, 0xffffffff
je 0x401fa2
lea edx, [esp + 0x28]
push edx
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
cmp eax, esi
je 0x401fa9
push eax
push str.Unable_to_load_Winsock:__d_n
call fcn.0041b248
add eax, 0x40
push eax
call fcn.0041b0f9
add esp, 0xc
xor eax, eax
jmp 0x402143
push esi
push 0x1f400
push esi
call dword [sym.imp.KERNEL32.dll_HeapCreate]
mov dword [0x43ad9c], eax
call fcn.00402160
mov dword [esp + 0x24], eax
lea eax, [esp + 0x1b8]
test eax, eax
jne 0x401fee
push str._n_nError__Please_specify_path_and_filename_of_LSP__n_n
call fcn.0041b248
add eax, 0x40
push eax
call fcn.0041b0f9
add esp, 8
mov dword [esp + 0x10], esi
jmp 0x402114
lea edi, [esp + 0x14]
call fcn.004023d0
mov ebp, eax
cmp ebp, esi
jne 0x402006
mov dword [esp + 0x10], esi
jmp 0x402101
mov edi, dword [esp + 0x14]
push edi
push ebp
push 0x439368
call fcn.00402480
test eax, eax
je 0x402034
push str.The_provider_is_Installed__n
call fcn.0041b3c3
add esp, 4
mov dword [esp + 0x10], 1
jmp 0x402101
lea ecx, [esp + 0x14]
push ecx
mov eax, 0xc
call fcn.00402770
mov ebx, eax
test ebx, ebx
jne 0x402052
mov dword [esp + 0x10], esi
jmp 0x4020eb
test edi, edi
jle 0x4020c4
lea eax, [ebp + 0x5c]
mov ecx, 2
cmp dword [eax - 0x10], ecx
jne 0x4020ba
cmp dword [esp + 0x1c], 0
jne 0x402080
cmp dword [eax], 0x11
jne 0x402080
mov edx, dword [eax - 0x38]
mov dword [ebx + esi*4], edx
add esi, 1
mov dword [esp + 0x1c], 1
cmp dword [esp + 0x18], 0
jne 0x40209d
cmp dword [eax], 6
jne 0x40209d
mov edx, dword [eax - 0x38]
mov dword [ebx + esi*4], edx
add esi, 1
mov dword [esp + 0x18], 1
cmp dword [esp + 0x20], 0
jne 0x4020ba
cmp dword [eax], 0
jne 0x4020ba
mov edx, dword [eax - 0x38]
mov dword [ebx + esi*4], edx
add esi, 1
mov dword [esp + 0x20], 1
add eax, 0x274
sub edi, 1
jne 0x40205e
mov eax, dword [0x43ad9c]
push ebp
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push esi
lea edi, [esp + 0x1bc]
xor ebp, ebp
call fcn.004027c0
cmp eax, 1
jne 0x4020eb
mov dword [esp + 0x10], eax
test ebx, ebx
je 0x4020ff
mov ecx, dword [0x43ad9c]
push ebx
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor esi, esi
cmp ebp, esi
je 0x402114
mov edx, dword [0x43ad9c]
push ebp
push esi
push edx
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esp + 0x24]
cmp eax, esi
je 0x402123
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [0x43ad9c]
cmp eax, esi
je 0x402139
push eax
call dword [sym.imp.KERNEL32.dll_HeapDestroy]
mov dword [0x43ad9c], esi
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x2c4]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0041aec3
add esp, 0x2bc
ret