Function at 0x4085f9
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40c0fa
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xb98
push esi
push edi
mov dword [ebp - 0xba4], ecx
mov eax, dword [ebp - 0xba4]
mov byte [eax + 0xcdc], 1
mov dword [ebp - 0xb80], 0
lea ecx, [ebp - 0xb70]
call fcn.0040ae70
mov dword [ebp - 4], 0
mov ecx, dword [str.kkkkkkkk]
mov dword [ebp - 0xb7c], ecx
mov edx, dword [0x40f4bc]
mov dword [ebp - 0xb78], edx
mov al, byte [0x40f4c0]
mov byte [ebp - 0xb74], al
xor ecx, ecx
mov byte [ebp - 0xb73], cl
lea edx, [ebp - 0x748]
push edx
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 0x40f4c4
mov eax, dword [ebp - 0xba4]
add eax, 0x29a0
push eax
call sub.MSVCRT.dll_strcpy
add esp, 8
push 0xa
lea ecx, [ebp - 0xb7c]
push ecx
mov ecx, dword [ebp - 0xba4]
add ecx, 0x198
call fcn.00404bf1
lea edx, [ebp - 0xb7c]
push edx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov ecx, dword [ebp - 0xba4]
mov dword [ecx + 0xe94], eax
mov edx, dword [ebp - 0xba4]
cmp dword [edx + 0xe94], 0
je 0x40871a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40871a
mov dword [ebp - 0xb94], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xb70]
call fcn.0040ae8f
mov eax, dword [ebp - 0xb94]
jmp 0x4089f3
mov eax, dword [ebp - 0xba4]
mov ecx, dword [eax + 0xe94]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0x280
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 4
mov dword [ebp - 0x5b8], eax
push 0x280
push 0
mov edx, dword [ebp - 0x5b8]
push edx
call sub.MSVCRT.dll_memset
add esp, 0xc
mov ecx, dword [ebp - 0xba4]
call fcn.00406305
mov ecx, dword [ebp - 0xba4]
add ecx, 0x198
call fcn.00403382
mov eax, dword [ebp - 0xba4]
add eax, 0x1c20
push eax
lea ecx, [ebp - 0xb70]
call fcn.0040aeab
push 0
push 0
mov ecx, dword [ebp - 0xba4]
add ecx, 0x227c
call fcn.004054a3
mov ecx, dword [ebp - 0xba4]
add ecx, 0x1c20
call fcn.00406775
mov ecx, dword [ebp - 0xba4]
add ecx, 0x198
push ecx
mov ecx, dword [ebp - 0xba4]
add ecx, 0x11b0
call fcn.00401b99
push 0
push 0
mov ecx, dword [ebp - 0xba4]
add ecx, 0x11b0
call fcn.00401959
lea ecx, [ebp - 0x14]
call fcn.0040b0b0
mov edx, dword [ebp - 0xba4]
xor eax, eax
mov al, byte [edx + 0xcdc]
test eax, eax
je 0x4089c1
lea ecx, [ebp - 0x14]
call fcn.0040b0ef
lea ecx, [ebp - 0xb84]
call fcn.00408f60
lea ecx, [ebp - 0xb98]
push ecx
mov ecx, dword [ebp - 0xba4]
add ecx, 0xce0
call fcn.004050e0
mov edx, dword [eax]
mov dword [ebp - 0xb84], edx
jmp 0x408841
lea ecx, [ebp - 0xb84]
call fcn.00404f00
lea eax, [ebp - 0xb9c]
push eax
mov ecx, dword [ebp - 0xba4]
add ecx, 0xce0
call fcn.00406550
push eax
lea ecx, [ebp - 0xb84]
call fcn.00404da0
and eax, 0xff
test eax, eax
je 0x4089b1
lea ecx, [ebp - 0xb84]
call fcn.00404d80
mov esi, eax
mov ecx, 0x168
lea edi, [ebp - 0x5b4]
rep movsd dword es:[edi], dword [esi]
sub esp, 0x5a0
mov ecx, 0x168
lea esi, [ebp - 0x5b4]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0xba4]
call fcn.00408a03
and eax, 0xff
test eax, eax
je 0x4088d2
lea ecx, [ebp - 0x5b4]
push ecx
mov ecx, dword [ebp - 0xba4]
add ecx, 0xce0
call fcn.00408d90
jmp 0x408836
push 0xffffffffffffffff
mov edx, dword [0x40fb54]
mov eax, dword [edx + 0xe94]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0
lea ecx, [ebp - 0x588]
push ecx
mov ecx, dword [ebp - 0xba4]
call fcn.004063f8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x408956
push 0x280
push 0
mov edx, dword [ebp - 0x5b8]
push edx
call sub.MSVCRT.dll_memset
add esp, 0xc
mov edi, dword [ebp - 0x5b8]
add edi, 0x24
mov ecx, 0x8d
lea esi, [ebp - 0x248]
rep movsd dword es:[edi], dword [esi]
push 0
mov eax, dword [ebp - 0x5b8]
push eax
lea ecx, [ebp - 0x5b4]
push ecx
mov edx, dword [ebp - 0x10]
mov ecx, dword [edx + 0x180]
mov eax, dword [ebp - 0x10]
mov edx, dword [eax + 0x180]
mov eax, dword [edx]
call dword [eax]
push 0xa
lea ecx, [ebp - 0x5b4]
push ecx
lea edx, [ebp - 0xb90]
push edx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
lea eax, [ebp - 0xb90]
push eax
mov ecx, dword [ebp - 0xba4]
add ecx, 0xcec
call fcn.00408f30
lea ecx, [ebp - 0x5b4]
push ecx
mov ecx, dword [ebp - 0xba4]
add ecx, 0xce0
call fcn.00408d90
mov edx, dword [0x40fb54]
mov eax, dword [edx + 0xe94]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0x12c
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4087eb
mov ecx, dword [ebp - 0x5b8]
push ecx
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov dword [ebp - 0xba0], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xb70]
call fcn.0040ae8f
mov eax, dword [ebp - 0xba0]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret