Function at 0x1000143d
Capabilities:
Print debug messages
Query environment variable

Disassembly:
jmp 0x1000bd70
sub esp, 0x488
push ebx
mov ebx, dword [esp + 0x498]
push ebp
push esi
test ebx, ebx
push edi
jne 0x1000bda4
push str.WSPStartup__LSP___lpProtocolInfoNULL
call fcn.10001672
add esp, 4
mov eax, 0x277a
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x488
ret 0x4c
mov eax, dword [ebx + 0x28]
push eax
push str.WSPStartup__LSP____begin___ChainLen:_d
call fcn.10001672
mov eax, dword [ebx + 0x28]
add esp, 8
cmp eax, 1
jg 0x1000bddc
push str.WSPStartup____ChainLen___1_Return
call fcn.10001672
add esp, 4
mov eax, 0x277a
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x488
ret 0x4c
mov ecx, 0xf
lea esi, [esp + 0x4a8]
mov edi, 0x1002df40
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x14]
push ecx
call fcn.100013f7
mov edx, dword [esp + 0x18]
mov esi, dword [ebx + 0x30]
mov ebp, eax
add esp, 4
xor eax, eax
test edx, edx
jle 0x1000be40
lea ecx, [ebp + 0x24]
cmp dword [ecx], esi
je 0x1000be1f
inc eax
add ecx, 0x274
cmp eax, edx
jl 0x1000be0e
jmp 0x1000be40
lea ecx, [eax + eax*4]
lea edi, [esp + 0x224]
shl ecx, 3
sub ecx, eax
cmp eax, edx
lea ecx, [eax + ecx*4]
lea esi, [ebp + ecx*4]
mov ecx, 0x9d
rep movsd dword es:[edi], dword [esi]
jl 0x1000be5f
push str.WSPStartup:Can_not_find_underlying_protocol
call fcn.10001672
add esp, 4
mov eax, 0x277a
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x488
ret 0x4c
lea edx, [esp + 0x10]
lea eax, [esp + 0x18]
push edx
lea ecx, [esp + 0x20]
push eax
lea edx, [esp + 0x240]
push ecx
push edx
mov dword [esp + 0x28], 0x104
call sub.WS2_32.dll_WSCGetProviderPath
cmp eax, 0xffffffff
jne 0x1000beac
mov eax, dword [esp + 0x10]
push eax
push str.WSPStartup:_WSCGetProviderPath___failed__d
call fcn.10001672
add esp, 8
mov eax, 0x277a
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x488
ret 0x4c
lea ecx, [esp + 0x1c]
push 0x104
lea edx, [esp + 0x20]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x1000beeb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.WSPStartup:__ExpandEnvironmentStrings___failed__d
call fcn.10001672
add esp, 8
mov eax, 0x277a
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x488
ret 0x4c
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
jne 0x1000bf25
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0x1c]
push eax
push ecx
push str.WSPStartup:__LoadLibrary__s__failed__d
call fcn.10001672
add esp, 0xc
mov eax, 0x277a
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x488
ret 0x4c
push str.WSPStartup
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x1000bf5b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.WSPStartup:__GetProcAddress___failed__d
call fcn.10001672
add esp, 8
mov eax, 0x277a
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x488
ret 0x4c
mov ecx, dword [esp + 0x24c]
mov edx, ebx
cmp ecx, 1
jne 0x1000bf70
lea edx, [esp + 0x224]
mov ebx, dword [esp + 0x4e4]
mov ecx, 0xf
push ebx
lea esi, [esp + 0x4ac]
sub esp, 0x3c
mov edi, esp
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x4dc]
push edx
mov edx, dword [esp + 0x4e4]
push edx
push ecx
call eax
mov esi, eax
test esi, esi
je 0x1000bfc1
push esi
push str.WSPStartup:_underlying_providers_WSPStartup___failed__d
call fcn.10001672
add esp, 8
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x488
ret 0x4c
mov ecx, 0x1e
mov esi, ebx
mov edi, 0x1002e080
rep movsd dword es:[edi], dword [esi]
call fcn.100013c0
mov eax, dword [0x1002e2a0]
mov esi, 0x10001307
test eax, eax
jne 0x1000c043
mov dword [ebx + 0x18], 0x100014a6
mov dword [ebx + 0x1c], 0x10001410
mov dword [ebx + 0x5c], 0x100012d0
mov eax, dword [0x1002e29c]
test eax, eax
jne 0x1000c005
mov dword [ebx + 0x64], esi
jmp 0x1000c012
push str.WSPStartup__LSP__NO_Hook_UDP
call fcn.10001672
add esp, 4
mov al, byte [0x1002e296]
test al, al
je 0x1000c050
push str.WSPStartup__LSP__msn
mov dword [ebx + 0x4c], 0x100016b3
mov dword [ebx + 0x54], 0x10001311
call fcn.10001672
add esp, 4
push str.WSPStartup______msn
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x1000c050
push str.WSPStartup__LSP__NOT_Hook
call fcn.10001672
add esp, 4
push ebp
mov dword [ebx + 0x64], esi
call fcn.1000162c
push str.WSPStartup__End
call fcn.10001672
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x488
ret 0x4c