Function at 0x403950
Capabilities:
Check mutex on windows
Create thread
Initialize winsock library

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44e44c
mov eax, dword fs:[0]
push eax
push ecx
push ebx
sub esp, 0x2e0
mov eax, dword [0x465040]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebx + 8]
xor edx, edx
mov esi, dword [ebx + 0xc]
mov dword [ebp - 0x27c], esi
mov dword [ebp - 0x274], edx
lea edi, [edx + 1]
cmp eax, edi
jle 0x403b96
dec eax
mov dword [ebp - 0x280], eax
nop dword [eax + eax]
cmp edi, eax
jge 0x403a04
mov eax, dword [esi + edi*4]
mov ecx, str._system
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4039f0
test dl, dl
je 0x4039ec
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4039f0
add eax, 2
add ecx, 2
test dl, dl
jne 0x4039d0
xor eax, eax
jmp 0x4039f5
sbb eax, eax
or eax, 1
test eax, eax
jne 0x403a04
mov edx, dword [esi + edi*4 + 4]
inc edi
mov dword [ebp - 0x274], edx
mov eax, dword [esi + edi*4]
mov ecx, str._writeconfig
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x403a30
test dl, dl
je 0x403a2c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x403a30
add eax, 2
add ecx, 2
test dl, dl
jne 0x403a10
xor eax, eax
jmp 0x403a35
sbb eax, eax
or eax, 1
test eax, eax
jne 0x403a44
mov ecx, dword [ebp - 0x274]
call fcn.00401ec0
mov esi, dword [esi + edi*4]
mov ecx, 0x45a654
mov eax, esi
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x403a70
test dl, dl
je 0x403a6c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x403a70
add eax, 2
add ecx, 2
test dl, dl
jne 0x403a50
xor eax, eax
jmp 0x403a75
sbb eax, eax
or eax, 1
test eax, eax
je 0x403b3f
mov ecx, 0x45a658
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x403aa4
test dl, dl
je 0x403aa0
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x403aa4
add eax, 2
add ecx, 2
test dl, dl
jne 0x403a84
xor eax, eax
jmp 0x403aa9
sbb eax, eax
or eax, 1
test eax, eax
je 0x403b3f
mov ecx, 0x45a65c
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x403ad8
test dl, dl
je 0x403ad4
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x403ad8
add eax, 2
add ecx, 2
test dl, dl
jne 0x403ab8
xor eax, eax
jmp 0x403add
sbb eax, eax
or eax, 1
test eax, eax
je 0x403b3f
mov ecx, 0x45a660
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x403b08
test dl, dl
je 0x403b04
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x403b08
add eax, 2
add ecx, 2
test dl, dl
jne 0x403ae8
xor eax, eax
jmp 0x403b0d
sbb eax, eax
or eax, 1
test eax, eax
je 0x403b3f
mov eax, 0x45a664
mov cl, byte [esi]
cmp cl, byte [eax]
jne 0x403b36
test cl, cl
je 0x403b32
mov cl, byte [esi + 1]
cmp cl, byte [eax + 1]
jne 0x403b36
add esi, 2
add eax, 2
test cl, cl
jne 0x403b16
xor eax, eax
jmp 0x403b3b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x403b7a
mov esi, dword [ebp - 0x27c]
push dword [esi]
push str._s__h_n
call fcn.0041ab50
push dword [esi]
push str._s_port_n
call fcn.0041ab50
push dword [esi]
push str._s__system_SystemName__writeconfig_n
call fcn.0041ab50
push dword [esi]
push str._s_port__system__uname__a__n
call fcn.0041ab50
add esp, 0x20
jmp 0x403b80
mov esi, dword [ebp - 0x27c]
mov eax, dword [ebp - 0x280]
inc edi
cmp edi, dword [ebx + 8]
jl 0x4039c0
mov edx, dword [ebp - 0x274]
mov ecx, edx
call fcn.00402de0
push str.MaaSoftware_TCP_congestion_control_sockets_server_v_1.1_nCopyright__C__Moiseenko_A.A._nweb:_http:__maasoftware.ru_ne_mail:_support_maasoftware.ru_n_n
call fcn.0041ab50
add esp, 4
push str.Platform:
call fcn.0041ab50
add esp, 4
push str.WIN32
call fcn.0041ab50
add esp, 4
push 0x45a768
call fcn.0041ab50
add esp, 4
lea eax, [ebp - 0x29c]
mov ecx, 0x4674f4
push eax
call fcn.00429250
mov esi, dword [ebp - 0x298]
test esi, esi
jne 0x403c06
xor eax, eax
mov dword [ebp - method.CMaaXmlElement.virtual_0], vtable.CMaaXmlNode.0
mov dword [ebp - 0x288], esi
or edi, 0xffffffff
jmp 0x403c88
push ecx
push str.CongestionControl
lea ecx, [ebp - 0x280]
call fcn.0041cee0
lea edx, [ebp - 0x294]
push edx
lea ecx, [esi + 0x81]
push eax
call fcn.0042e110
mov dword [ebp - method.CMaaXmlElement.virtual_0], vtable.CMaaXmlNode.0
test eax, eax
je 0x403c46
mov dword [ebp - 0x274], 0
xor esi, esi
jmp 0x403c60
mov esi, dword [ebp - 0x290]
mov dword [ebp - 0x274], esi
mov esi, dword [ebp - 0x294]
test esi, esi
je 0x403c60
lock inc dword [esi + 8]
mov ecx, dword [ebp - 0x280]
or edi, 0xffffffff
mov dword [ebp - 0x288], esi
test ecx, ecx
je 0x403c82
mov eax, edi
lock xadd dword [ecx], eax
dec eax
jne 0x403c82
push ecx
call fcn.0041c140
mov eax, dword [ebp - 0x274]
push str.cclist.xml
push eax
push str.Using_the_next__d_Congestion_Control_and_Avoidance_types_nfrom___s__config_file:__n_n
call fcn.0041ab50
add esp, 0xc
test esi, esi
je 0x403dbc
push ecx
push str.ccName
lea ecx, [ebp - 0x280]
call fcn.0041cee0
lea edx, [ebp - 0x274]
mov dword [ebp - 0x274], 0
push edx
lea ecx, [esi + 0x37]
push eax
call fcn.00407cf0
mov eax, dword [ebp - 0x274]
test eax, eax
je 0x403ce3
add eax, 0xc
mov dword [ebp - 0x274], eax
jmp 0x403ced
mov dword [ebp - 0x274], 0x467578
mov ecx, dword [ebp - 0x280]
test ecx, ecx
je 0x403d06
mov eax, edi
lock xadd dword [ecx], eax
dec eax
jne 0x403d06
push ecx
call fcn.0041c140
mov eax, dword [ebp - 0x274]
mov eax, dword [eax]
test eax, eax
je 0x403d17
mov eax, dword [eax + 0xc]
jmp 0x403d1c
mov eax, 0x45b258
push eax
push 0x4587e4
call fcn.0041ab50
add esp, 8
lea eax, [ebp - 0x294]
lea ecx, [ebp - 0x28c]
push eax
call fcn.00426aa0
mov ecx, dword [eax + 4]
cmp esi, ecx
je 0x403d71
mov edi, esi
mov dword [eax + 4], 0
mov esi, ecx
mov dword [ebp - 0x288], esi
test edi, edi
je 0x403d71
or eax, 0xffffffff
lock xadd dword [edi + 8], eax
dec eax
jne 0x403d71
mov ecx, edi
call fcn.004260a0
mov ecx, edi
call fcn.00425fe0
mov ecx, dword [ebp - 0x290]
or edi, 0xffffffff
mov dword [ebp - method.CMaaXmlElement.virtual_0], vtable.CMaaXmlNode.0
test ecx, ecx
je 0x403db4
mov eax, edi
lock xadd dword [ecx + 8], eax
dec eax
jne 0x403db4
mov eax, dword [ebp - 0x290]
mov dword [ebp - 0x274], eax
test eax, eax
je 0x403db4
mov ecx, eax
call fcn.004260a0
mov ecx, dword [ebp - 0x274]
call fcn.00425fe0
test esi, esi
jne 0x403ca3
push 0x45a7c4
call fcn.0041ab50
add esp, 4
test esi, esi
je 0x403de5
mov eax, edi
lock xadd dword [esi + 8], eax
dec eax
jne 0x403de5
mov ecx, esi
call fcn.004260a0
mov ecx, esi
call fcn.00425fe0
mov esi, dword [ebp - 0x298]
test esi, esi
je 0x403e07
mov eax, edi
lock xadd dword [esi + 8], eax
dec eax
jne 0x403e07
mov ecx, esi
call fcn.004260a0
mov ecx, esi
call fcn.00425fe0
cmp dword [ebx + 8], 1
mov eax, 0x2717
mov dword [ebp - 0x284], eax
jle 0x403e3b
lea eax, [ebp - 0x284]
push eax
mov eax, dword [ebp - 0x27c]
push 0x45a7c8
push dword [eax + 4]
call fcn.00401cd0
mov eax, dword [ebp - 0x284]
add esp, 0xc
push eax
push str.Using_port__d_n
call fcn.0041ab50
add esp, 8
mov dword [ebp - 4], 2
mov dword [ebp - 0xd3], 1
mov dword [ebp - 0xdb], 0
mov dword [ebp - 0xd7], 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [ebp - 0xdf], eax
mov byte [ebp - 4], 4
mov eax, dword [0x467910]
test eax, eax
jne 0x403ea0
push 0x48
call fcn.00433090
mov ecx, eax
call fcn.00431c80
mov dword [0x467910], eax
push eax
lea ecx, [ebp - 0xc8]
mov byte [ebp - 4], 3
call fcn.00431bc0
lea ecx, [ebp - 0x80]
call fcn.00411950
mov byte [ebp - 4], 5
cmp dword [0x4676bc], 0
jne 0x403ee0
mov esi, dword [sym.imp.WS2_32.dll_WSACreateEvent]
call esi
mov dword [0x4676bc], eax
call esi
push eax
mov dword [0x4676c0], eax
call dword [sym.imp.WS2_32.dll_WSASetEvent]
lea eax, [ebp - 0x270]
mov byte [ebp - 0xe0], 0
push eax
push 0x202
mov dword [0x4674c8], 0
mov dword [ebp - 0x2b], 0
call dword [sym.imp.WS2_32.dll_WSAStartup]
cmp eax, 0xffffffff
je 0x40421e
push 0x9a
call fcn.00433090
add esp, 4
mov dword [ebp - 0x278], eax
sub esp, 8
mov byte [ebp - 4], 6
mov ecx, eax
call fcn.004324f0
test eax, eax
mov dword [ebp - 0x2b], eax
setne byte [ebp - 0xe0]
lea eax, [ebp - 0x270]
mov byte [ebp - 4], 7
push 0
lea ecx, [ebp - 0x2f0]
mov dword [0x4674b4], eax
call fcn.0040e990
push 0x294
mov byte [ebp - 4], 8
call fcn.00433090
mov esi, eax
add esp, 4
mov dword [ebp - 0x278], esi
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x284]
push ecx
mov dword [ebp - 0x27c], eax
mov ecx, esi
mov eax, dword [ebp - 0x2b4]
push eax
mov dword [ebp - 0x280], eax
call fcn.0040bf90
lea eax, [esi + 0x250]
mov dword [esi], vtable.CMaaUnivServer.0
mov dword [eax], 0
mov byte [ebp - 4], 0xb
push dword [ebp - 0x27c]
push str.CControlServer
push str._s_on_port__d
push eax
call fcn.00422690
add esp, 8
mov ecx, esi
push dword [ebp - 0x27c]
call fcn.0040cff0
push 5
push dword [esi + 0x8d]
call dword [sym.imp.WS2_32.dll_listen]
mov ecx, esi
cmp eax, 0xffffffff
je 0x404247
call fcn.0040be30
mov dword [esi], vtable.CControlServer.0
mov dword [esi + 0x254], 0
lea eax, [esi + 0x25c]
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov byte [eax + 0xc], 0
mov dword [eax + 0xd], 0
mov dword [eax + 0x11], 0
mov dword [eax + 0x15], 0
mov dword [eax + 0x19], 0
mov dword [eax + 0x1d], 0
mov dword [eax + 0x21], 0
mov dword [eax], vtable.CMaaSockTimerT_class_CControlServer_.0
mov dword [eax + 0x29], esi
mov dword [eax + 0x2d], 0
mov byte [ebp - 4], 0xe
mov eax, dword [esi + 4]
mov dword [esi + 0x290], 0x4674b0
mov dword [eax + 4], 0x64
mov dword [eax + 8], 0
mov dword [esi + 0x258], 0
call fcn.0041bfa0
mov dword [ebp - 0x27c], eax
mov byte [ebp - 4], 0xf
test eax, eax
je 0x4040be
push str.CControlServer
mov ecx, eax
call fcn.0041c700
test eax, eax
je 0x4040be
cmp dword [eax + 0xc], 0
je 0x4040b6
mov ecx, dword [esi + 0x254]
mov dword [esi + 0x254], eax
jmp 0x4040ce
push ecx
mov ecx, eax
call fcn.0041c140
mov ecx, dword [esi + 0x254]
mov dword [esi + 0x254], 0
test ecx, ecx
je 0x4040df
lock xadd dword [ecx], edi
dec edi
jne 0x4040df
push ecx
call fcn.0041c140
push dword [ebp - 0x280]
lea ecx, [esi + 0x25c]
call fcn.0040f410
push str.CControlServer:_Ready..._n
call fcn.0041ab50
add esp, 4
mov dword [0x4674b0], esi
lea eax, [ebp - 0x2e0]
push eax
push 0
lea eax, [ebp - 0x2f0]
push eax
push 0x41b5c0
push 0
push 0
call fcn.0043eccf
add esp, 0x18
mov dword [ebp - 0x2e4], eax
test eax, eax
je 0x40413c
cmp eax, 0xffffffff
je 0x40413c
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea ecx, [ebp - 0x2f0]
mov dword [0x4674b4], 0
call fcn.0040ecd0
mov byte [ebp - 4], 0x10
call fcn.004323f0
mov ecx, dword [ebp - 0x2b]
test ecx, ecx
je 0x404167
mov eax, dword [ecx]
push 1
call dword [eax]
mov ecx, dword [0x4674c8]
test ecx, ecx
je 0x404177
mov eax, dword [ecx]
push 1
call dword [eax]
mov eax, dword [ebp - 0x80]
lea ecx, [ebp - 0x80]
push 0x2710
mov dword [0x4674c8], 0
call dword [eax + 8]
call dword [sym.imp.WS2_32.dll_WSACleanup]
lea ecx, [ebp - 0x80]
call fcn.00411d60
push dword [ebp - 0xdf]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [ebp - 0x14]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0043306f
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push 0
push 0xffffffffffffffff
push 0
push 0
push str.WSAStartup_failed
lea ecx, [ebp - 0x2a4]
call fcn.00418260
push 0x46378c
lea eax, [ebp - 0x2a4]
push eax
call fcn.004349e6
push str.listen___
call fcn.0040bd30
int3