Function at 0x407f91
Capabilities:
Create tcp socket

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x133f
sub esp, 0x70
push fcn.00407f91
xor esi, esi
xor edi, edi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
mov eax, 1
movsx ecx, word [0x412a88]
cmp ecx, eax
jne 0x407ff3
push 0
mov edx, 0x41311c
call fcn.00411750
lea ebx, [esp]
call fcn.00410d18
call fcn.00405b62
mov ebx, esp
mov eax, dword [ebx]
call fcn.0040f5cb
add esp, 4
jmp 0x4082bc
mov word [0x412a88], 1
push 6
push 1
push 2
call dword [sym.imp.WSOCK32.DLL_socket]
fldcw word [ebp - 0x10]
mov dword [0x412754], eax
fild qword [0x414718]
ficomp dword [0x412754]
fnstsw ax
sahf
jne 0x408069
push 0
push 0
call dword [sym.imp.WSOCK32.DLL_WSAGetLastError]
fldcw word [ebp - 0x10]
lea ebx, [esp + 4]
push ebx
mov dword [ebx], eax
mov edx, 0x413134
call fcn.00411750
lea ebx, [esp + 4]
push ebx
call fcn.00410c56
call fcn.004098a1
mov ebx, esp
mov eax, dword [ebx]
call fcn.0040f5cb
add esp, 8
call fcn.004082d7
jmp 0x4082bc
push dword [0x412750]
call dword [sym.imp.WSOCK32.DLL_htons]
fldcw word [ebp - 0x10]
movzx eax, ax
mov word [ebp - 0xa6], ax
mov word [ebp - 0xa8], 2
mov dword [ebp - 0xa4], 0
push 0x10
lea ebx, [ebp - 0xa8]
push ebx
push dword [0x412754]
call dword [sym.imp.WSOCK32.DLL_bind]
fldcw word [ebp - 0x10]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40810a
push 0
push 0
call dword [sym.imp.WSOCK32.DLL_WSAGetLastError]
fldcw word [ebp - 0x10]
lea ebx, [esp + 4]
push ebx
mov dword [ebx], eax
mov edx, 0x413150
call fcn.00411750
lea ebx, [esp + 4]
push ebx
call fcn.00410c56
call fcn.004098a1
mov ebx, esp
mov eax, dword [ebx]
call fcn.0040f5cb
add esp, 8
push dword [0x412754]
call dword [sym.imp.WSOCK32.DLL_closesocket]
fldcw word [ebp - 0x10]
call fcn.004082d7
jmp 0x4082bc
push 5
push dword [0x412754]
call dword [sym.imp.WSOCK32.DLL_listen]
fldcw word [ebp - 0x10]
mov esi, eax
cmp esi, 0xffffffff
jne 0x408169
push 0
push 0
call dword [sym.imp.WSOCK32.DLL_WSAGetLastError]
fldcw word [ebp - 0x10]
lea ebx, [esp + 4]
push ebx
mov dword [ebx], eax
mov edx, 0x413174
call fcn.00411750
lea ebx, [esp + 4]
push ebx
call fcn.00410c56
call fcn.004098a1
mov ebx, esp
mov eax, dword [ebx]
call fcn.0040f5cb
add esp, 8
call fcn.004082d7
jmp 0x4082bc
mov ecx, 0x408355
push ecx
push 0
push 0x100000
push 0
lea ebx, [ebp - 0xb0]
call fcn.0040ba67
mov edi, dword [ebx]
cmp edi, 0
jne 0x4081d1
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_GetLastError]
fldcw word [ebp - 0x10]
lea ebx, [esp + 4]
push ebx
mov dword [ebx], eax
mov edx, 0x413188
call fcn.00411750
lea ebx, [esp + 4]
push ebx
call fcn.00410c56
call fcn.004098a1
mov ebx, esp
mov eax, dword [ebx]
call fcn.0040f5cb
add esp, 8
call fcn.004082d7
jmp 0x4082bc
mov eax, edi
lea ebx, [ebp - 0xb4]
call fcn.0040ba41
mov ecx, 0x408355
push ecx
push 0
push 0x100000
push 0
lea ebx, [ebp - 0xb0]
call fcn.0040ba67
mov edi, dword [ebx]
mov eax, edi
lea ebx, [ebp - 0xb4]
call fcn.0040ba41
push 0
mov edx, 0x4131a4
call fcn.00411750
mov ebx, 0x412a5d
call fcn.0041158b
call fcn.00410f1a
mov edx, 0x4131b8
call fcn.00411750
call fcn.00410f1a
fild dword [0x412750]
call fcn.0040fdd0
call fcn.0040fa24
call fcn.00410f1a
lea ebx, [esp]
call fcn.00410d18
call fcn.00405b62
mov ebx, esp
mov eax, dword [ebx]
call fcn.0040f5cb
add esp, 4
mov ecx, dword [0x412a80]
mov eax, 0x3ef
call fcn.0040d490
mov edx, 0x4131c8
call fcn.00411750
mov ebx, 0x412a5d
call fcn.0041158b
call fcn.00410f1a
mov edx, 0x4131f0
call fcn.00411750
call fcn.00410f1a
fild dword [0x412750]
call fcn.0040fdd0
call fcn.0040fa24
call fcn.00410f1a
call fcn.0040d501
mov dword [ebp - 0x98], 0xffffffff
mov eax, dword [ebp - 0x98]
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret