Function at 0x406b70
Capabilities:
Initialize winsock library
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45aa36
mov eax, dword fs:[0]
push eax
sub esp, 0x948
mov eax, dword [0x479520]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
lea eax, [ebp - 0x3c4]
mov dword [ebp - 0x3c4], 8
push eax
mov dword [ebp - 0x3c0], 0xff
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
mov ecx, edi
call fcn.0041ab39
push 0
call fcn.0041b862
add esp, 4
call fcn.0041c652
push 0x46a4c0
mov ecx, edi
call fcn.0041cd3a
lea eax, [ebp - 0x3b8]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x406c06
push 0
push 0x10
push str.Could_not_find_WinSock_2.2
jmp 0x406ea3
lea eax, [ebp - 0x228]
mov dword [ebp - 0x228], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x406e9a
mov eax, dword [ebp - 0x218]
cmp eax, 2
jne 0x406c50
mov eax, dword [0x468608]
movq xmm0, qword [str.security.dll]
mov dword [ebp - 0x10c], eax
mov al, byte [0x46860c]
mov byte [ebp - 0x108], al
jmp 0x406c6c
cmp eax, 1
jne 0x406e9a
mov eax, dword [0x468618]
movq xmm0, qword [str.secur32.dll]
mov dword [ebp - 0x10c], eax
lea eax, [ebp - 0x114]
movq qword [ebp - 0x114], xmm0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x47e3d0], eax
test eax, eax
je 0x406e9a
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.FreeCredentialsHandle
push eax
call esi
push str.QuerySecurityPackageInfoA
push dword [0x47e3d0]
mov dword [0x47e3d4], eax
call esi
push str.AcquireCredentialsHandleA
push dword [0x47e3d0]
mov dword [0x47e3dc], eax
call esi
push str.FreeContextBuffer
push dword [0x47e3d0]
mov dword [0x47e3d8], eax
call esi
push str.InitializeSecurityContextA
push dword [0x47e3d0]
mov dword [0x47e3e0], eax
call esi
push str.CompleteAuthToken
push dword [0x47e3d0]
mov dword [0x47e3e4], eax
call esi
push str.EnumerateSecurityPackagesA
push dword [0x47e3d0]
mov dword [0x47e3e8], eax
call esi
cmp dword [0x47e3d4], 0
mov dword [0x47e3ec], eax
je 0x406e84
cmp dword [0x47e3dc], 0
je 0x406e84
cmp dword [0x47e3d8], 0
je 0x406e84
cmp dword [0x47e3e0], 0
je 0x406e84
cmp dword [0x47e3e4], 0
je 0x406e84
test eax, eax
je 0x406e84
call fcn.00418791
mov ecx, eax
test ecx, ecx
je 0x406ec5
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x3bc], esi
mov dword [ebp - 4], 0
mov ecx, 1
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, 0x105
or eax, ecx
jge 0x406da4
push 0x105
lea ecx, [ebp - 0x3bc]
call fcn.00401df0
mov esi, dword [ebp - 0x3bc]
push 0x104
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x406e08
push dword [esi - 8]
push esi
call fcn.0044727a
add esp, 8
test eax, eax
js 0x406ecf
cmp eax, dword [esi - 8]
jg 0x406ecf
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
lea ecx, [ebp - 0x3bc]
call fcn.00407390
call fcn.0041d6d8
mov esi, dword [ebp - 0x3bc]
push esi
push str.Path
mov ecx, dword [eax + 4]
push 0x46a55c
mov eax, dword [ecx]
call dword [eax + 0x88]
push ecx
lea ecx, [ebp - 0x954]
call fcn.00407500
mov byte [ebp - 4], 1
lea eax, [ebp - 0x954]
mov edx, dword [edi + 0x48]
mov dword [edi + 0x20], eax
test edx, edx
jne 0x406e2c
xor ecx, ecx
jmp 0x406e40
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406e31
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x758]
call fcn.00401f50
lea ecx, [ebp - 0x954]
call fcn.004108f9
lea ecx, [ebp - 0x954]
call fcn.004078a0
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x406ea8
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x406ea8
push dword [0x47e3d0]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x47e3d0], 0
push 0
push 0x10
push str.Cannot_initialize_security_module.
call fcn.0041d018
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00438a38
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00402150
push 0x80070057
call fcn.00402150
int3