Function at 0x40907f
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1f0
cmp byte [0x43149f], 0
je 0x409095
xor eax, eax
leave
ret
push ebx
push esi
push edi
lea eax, [ebp - 0x1f0]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x4091d9
call fcn.00403e1c
push 0x3a
mov dword [ebp - 0x10], eax
pop eax
mov ecx, 0x4264b0
cmp dword [ecx], 0x2c
je 0x4090d3
sub ecx, 0x10
dec eax
cmp ecx, 0x426110
jge 0x4090c2
shl eax, 4
mov ecx, dword [eax + 0x426114]
mov ebx, dword [eax + 0x426118]
mov esi, dword [eax + 0x42611c]
push 4
mov dword [ebp - 0xc], ecx
pop eax
cmp dword [eax*8 + 0x4264c0], ecx
je 0x4090fa
dec eax
jns 0x4090ee
mov edi, dword [eax*8 + 0x4264c4]
lea ecx, [ebp - 4]
call fcn.00403a4f
push ebx
lea eax, [ebp - 4]
push eax
call fcn.00403b50
lea ecx, [ebp - 8]
call fcn.00403a4f
push esi
lea eax, [ebp - 8]
push eax
call fcn.00403b50
mov ebx, dword [ebp - 8]
xor esi, esi
inc esi
cmp byte [0x431477], 0
je 0x409142
mov edi, dword [ebp - 4]
push edi
push dword [ebp - 0xc]
call fcn.0040b227
jmp 0x4091b6
lea ecx, [ebp - 8]
call fcn.00403a4f
lea eax, [ebp - 0x60]
call fcn.0041d08b
mov ecx, dword [ebp - 8]
xor eax, eax
cmp dword [ecx - 0xc], eax
mov dword [ebp - 0x38], 0x3e8
jne 0x40916b
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x28], eax
jmp 0x40917c
mov dword [ebp - 0x30], 0x40b2f1
lea eax, [ebp - 8]
mov dword [ebp - 0x28], 1
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x2c], eax
push ebx
mov eax, edi
mov edi, dword [ebp - 4]
push edi
push dword [ecx + 4]
lea ecx, [ebp - 0x60]
or eax, 0x50000
push ecx
call fcn.0041d0e8
mov esi, eax
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x60], 0x429bf4
call fcn.0041d951
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.004045a2
lea eax, [ebx - 0x10]
call fcn.004045a2
lea eax, [edi - 0x10]
call fcn.004045a2
push 1
push 0x3009
call fcn.0040587b
pop ecx
pop ecx
jmp 0x409441
lea eax, [ebp - 0x15]
push eax
lea eax, [ebp - 4]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
call fcn.0042001c
test al, al
pop ecx
pop ecx
jne 0x409430
push ebx
push 0x4252c4
push dword [ebp - 4]
call fcn.004147a2
add esp, 0xc
cmp eax, 0xffffffff
je 0x409430
push dword [ebp - 4]
lea esi, [ebp - 0x10]
call fcn.00403a68
push 0x4252b8
mov eax, esi
push eax
call fcn.00403c93
push 0x425e18
mov eax, esi
push eax
call fcn.00403c93
push 0x2174
lea edi, [ebp - 4]
call fcn.00412542
mov eax, dword [eax]
pop ecx
push dword [eax - 0xc]
push eax
mov eax, esi
push eax
call fcn.00404079
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.004045a2
call fcn.00403e1c
push 0x3a
mov dword [ebp - 0x20], eax
pop eax
mov ecx, 0x4264b0
cmp dword [ecx], 6
je 0x40927c
sub ecx, 0x10
dec eax
cmp ecx, 0x426110
jge 0x40926b
shl eax, 4
mov ecx, dword [eax + 0x42611c]
mov esi, dword [eax + 0x426118]
mov dword [ebp - 0x14], ecx
mov ecx, dword [eax + 0x426114]
push 4
mov dword [ebp - 4], ecx
pop eax
cmp dword [eax*8 + 0x4264c0], ecx
je 0x4092a6
dec eax
jns 0x40929a
mov eax, dword [eax*8 + 0x4264c4]
lea ecx, [ebp - 0xc]
mov dword [ebp - 0x24], eax
call fcn.00403a4f
push esi
lea eax, [ebp - 0xc]
push eax
call fcn.00403b50
cmp dword [ebp - 0x10], ebx
mov esi, 0x426104
je 0x4092f1
push dword [ebp - 0x10]
lea ebx, [ebp - 0x1c]
push esi
push dword [ebp - 0xc]
call fcn.0040aff7
add esp, 0xc
lea edi, [ebp - 0xc]
call fcn.00404023
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.004045a2
lea ecx, [ebp - 8]
call fcn.00403a4f
push dword [ebp - 0x14]
lea eax, [ebp - 8]
push eax
call fcn.00403b50
cmp dword [ebp - 0x10], 0
je 0x409330
push dword [ebp - 0x10]
lea ebx, [ebp - 0x14]
push esi
push dword [ebp - 8]
call fcn.0040aff7
add esp, 0xc
lea edi, [ebp - 8]
call fcn.00404023
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.004045a2
mov ebx, dword [ebp - 8]
xor esi, esi
inc esi
cmp byte [0x431477], 0
je 0x40934d
mov edi, dword [ebp - 0xc]
push edi
push dword [ebp - 4]
call fcn.0040b227
jmp 0x4093be
lea ecx, [ebp - 8]
call fcn.00403a4f
lea eax, [ebp - 0x60]
call fcn.0041d08b
mov ecx, dword [ebp - 8]
xor eax, eax
cmp dword [ecx - 0xc], eax
mov dword [ebp - 0x38], 0x3e8
jne 0x409376
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x28], eax
jmp 0x409383
mov dword [ebp - 0x30], 0x40b2f1
lea eax, [ebp - 8]
mov dword [ebp - 0x28], esi
mov edi, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x20]
push ebx
push edi
push dword [ecx + 4]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x24]
lea ecx, [ebp - 0x60]
or eax, 0x50000
push ecx
call fcn.0041d0e8
mov esi, eax
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x60], 0x429bf4
call fcn.0041d951
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.004045a2
cmp dword [ebp - 4], 5
je 0x4093f2
cmp dword [ebp - 4], 1
jne 0x4093de
lea eax, [ebx - 0x10]
call fcn.004045a2
lea eax, [edi - 0x10]
call fcn.004045a2
xor eax, eax
jmp 0x409407
cmp dword [ebp - 4], 6
je 0x4093ca
test esi, esi
je 0x4093f2
cmp esi, 7
je 0x4093f2
cmp esi, 2
jne 0x4093ca
lea eax, [ebx - 0x10]
call fcn.004045a2
lea eax, [edi - 0x10]
call fcn.004045a2
mov eax, 0x80004005
test eax, eax
setge al
push 1
push 0x300a
mov byte [0x431372], al
call fcn.0040587b
mov esi, eax
mov eax, dword [ebp - 0x10]
pop ecx
pop ecx
add eax, 0xfffffff0
call fcn.004045a2
mov eax, esi
jmp 0x409441
push dword [ebp - 4]
call fcn.0040f86e
pop ecx
call dword [sym.imp.WS2_32.dll_WSACleanup]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret