Function at 0x4037f0
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 0x44c618
mov eax, dword fs:[0]
push eax
push ecx
push ebx
sub esp, 0x2e0
mov eax, dword [0x462040]
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 - 0x280], esi
mov dword [ebp - 0x274], edx
lea edi, [edx + 1]
cmp eax, edi
jle 0x403a36
dec eax
mov dword [ebp - 0x27c], eax
nop dword [eax + eax]
cmp edi, eax
jge 0x4038a4
mov eax, dword [esi + edi*4]
mov ecx, str._system
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x403890
test dl, dl
je 0x40388c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x403890
add eax, 2
add ecx, 2
test dl, dl
jne 0x403870
xor eax, eax
jmp 0x403895
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4038a4
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 0x4038d0
test dl, dl
je 0x4038cc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4038d0
add eax, 2
add ecx, 2
test dl, dl
jne 0x4038b0
xor eax, eax
jmp 0x4038d5
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4038e4
mov ecx, dword [ebp - 0x274]
call fcn.00401e80
mov esi, dword [esi + edi*4]
mov ecx, 0x458644
mov eax, esi
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x403910
test dl, dl
je 0x40390c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x403910
add eax, 2
add ecx, 2
test dl, dl
jne 0x4038f0
xor eax, eax
jmp 0x403915
sbb eax, eax
or eax, 1
test eax, eax
je 0x4039df
mov ecx, 0x458648
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x403944
test dl, dl
je 0x403940
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x403944
add eax, 2
add ecx, 2
test dl, dl
jne 0x403924
xor eax, eax
jmp 0x403949
sbb eax, eax
or eax, 1
test eax, eax
je 0x4039df
mov ecx, 0x45864c
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x403978
test dl, dl
je 0x403974
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x403978
add eax, 2
add ecx, 2
test dl, dl
jne 0x403958
xor eax, eax
jmp 0x40397d
sbb eax, eax
or eax, 1
test eax, eax
je 0x4039df
mov ecx, 0x458650
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4039a8
test dl, dl
je 0x4039a4
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4039a8
add eax, 2
add ecx, 2
test dl, dl
jne 0x403988
xor eax, eax
jmp 0x4039ad
sbb eax, eax
or eax, 1
test eax, eax
je 0x4039df
mov eax, 0x458654
mov cl, byte [esi]
cmp cl, byte [eax]
jne 0x4039d6
test cl, cl
je 0x4039d2
mov cl, byte [esi + 1]
cmp cl, byte [eax + 1]
jne 0x4039d6
add esi, 2
add eax, 2
test cl, cl
jne 0x4039b6
xor eax, eax
jmp 0x4039db
sbb eax, eax
or eax, 1
test eax, eax
jne 0x403a1a
mov esi, dword [ebp - 0x280]
push dword [esi]
push str._s__h_n
call fcn.0041a380
push dword [esi]
push str._s_port_n
call fcn.0041a380
push dword [esi]
push str._s__system_SystemName__writeconfig_n
call fcn.0041a380
push dword [esi]
push str._s_port__system__uname__a__n
call fcn.0041a380
add esp, 0x20
jmp 0x403a20
mov esi, dword [ebp - 0x280]
mov eax, dword [ebp - 0x27c]
inc edi
cmp edi, dword [ebx + 8]
jl 0x403860
mov edx, dword [ebp - 0x274]
mov ecx, edx
call fcn.00402d00
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.0041a380
add esp, 4
push str.Platform:
call fcn.0041a380
add esp, 4
push str.WIN32
call fcn.0041a380
add esp, 4
push 0x458758
call fcn.0041a380
add esp, 4
lea eax, [ebp - 0x29c]
mov ecx, 0x4644f4
push eax
call fcn.00428130
mov esi, dword [ebp - 0x298]
test esi, esi
jne 0x403aa6
xor eax, eax
mov dword [ebp - method.CMaaXmlElement.virtual_0], vtable.CMaaXmlNode.0
mov dword [ebp - 0x288], esi
or edi, 0xffffffff
jmp 0x403b28
push ecx
push str.CongestionControl
lea ecx, [ebp - 0x27c]
call fcn.0041c560
lea edx, [ebp - 0x294]
push edx
lea ecx, [esi + 0x81]
push eax
call fcn.0042c980
mov dword [ebp - method.CMaaXmlElement.virtual_0], vtable.CMaaXmlNode.0
test eax, eax
je 0x403ae6
mov dword [ebp - 0x274], 0
xor esi, esi
jmp 0x403b00
mov esi, dword [ebp - 0x290]
mov dword [ebp - 0x274], esi
mov esi, dword [ebp - 0x294]
test esi, esi
je 0x403b00
lock inc dword [esi + 8]
mov ecx, dword [ebp - 0x27c]
or edi, 0xffffffff
mov dword [ebp - 0x288], esi
test ecx, ecx
je 0x403b22
mov eax, edi
lock xadd dword [ecx], eax
dec eax
jne 0x403b22
push ecx
call fcn.0041b960
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.0041a380
add esp, 0xc
test esi, esi
je 0x403c31
push ecx
push str.ccName
lea ecx, [ebp - 0x27c]
call fcn.0041c560
lea edx, [ebp - 0x274]
mov dword [ebp - 0x274], 0
push edx
lea ecx, [esi + 0x37]
push eax
call fcn.00407dd0
mov edi, dword [ebp - 0x274]
test edi, edi
je 0x403b7d
add edi, 0xc
jmp 0x403b82
mov edi, 0x464578
mov ecx, dword [ebp - 0x27c]
test ecx, ecx
je 0x403b9c
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
jne 0x403b9c
push ecx
call fcn.0041b960
mov eax, dword [edi]
test eax, eax
je 0x403ba7
mov eax, dword [eax + 4]
jmp 0x403bac
mov eax, 0x459254
push eax
push 0x4567d4
call fcn.0041a380
add esp, 8
lea eax, [ebp - 0x294]
lea ecx, [ebp - 0x28c]
push eax
call fcn.00425d80
or edi, 0xffffffff
mov edx, dword [eax + 4]
cmp esi, edx
je 0x403bfb
mov ecx, esi
mov dword [eax + 4], 0
mov esi, edx
mov dword [ebp - 0x288], esi
test ecx, ecx
je 0x403bfb
mov eax, edi
lock xadd dword [ecx + 8], eax
dec eax
jne 0x403bfb
push ecx
call fcn.00425320
mov ecx, dword [ebp - 0x290]
mov dword [ebp - method.CMaaXmlElement.virtual_0], vtable.CMaaXmlNode.0
test ecx, ecx
je 0x403c29
mov eax, edi
lock xadd dword [ecx + 8], eax
dec eax
jne 0x403c29
mov ecx, dword [ebp - 0x290]
test ecx, ecx
je 0x403c29
push ecx
call fcn.00425320
test esi, esi
jne 0x403b43
push 0x4587b4
call fcn.0041a380
add esp, 4
test esi, esi
je 0x403c54
mov eax, edi
lock xadd dword [esi + 8], eax
dec eax
jne 0x403c54
push ecx
mov ecx, esi
call fcn.00425320
mov eax, dword [ebp - 0x298]
test eax, eax
je 0x403c6e
lock xadd dword [eax + 8], edi
dec edi
jne 0x403c6e
push ecx
mov ecx, eax
call fcn.00425320
cmp dword [ebx + 8], 1
mov eax, 0x2717
mov dword [ebp - 0x284], eax
jle 0x403ca2
lea eax, [ebp - 0x284]
push eax
mov eax, dword [ebp - 0x280]
push 0x4587b8
push dword [eax + 4]
call fcn.00401c90
mov eax, dword [ebp - 0x284]
add esp, 0xc
push eax
push str.Using_port__d_n
call fcn.0041a380
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 [0x464910]
test eax, eax
jne 0x403d07
push 0x48
call fcn.00431310
mov ecx, eax
call fcn.0042ff00
mov dword [0x464910], eax
push eax
lea ecx, [ebp - 0xc8]
mov byte [ebp - 4], 3
call fcn.0042fe40
lea ecx, [ebp - 0x80]
call fcn.00411620
mov byte [ebp - 4], 5
cmp dword [0x4646bc], 0
jne 0x403d47
mov esi, dword [sym.imp.WS2_32.dll_WSACreateEvent]
call esi
mov dword [0x4646bc], eax
call esi
push eax
mov dword [0x4646c0], eax
call dword [sym.imp.WS2_32.dll_WSASetEvent]
lea eax, [ebp - 0x270]
mov byte [ebp - 0xe0], 0
push eax
push 0x202
mov dword [0x4644c8], 0
mov dword [ebp - 0x2b], 0
call dword [sym.imp.WS2_32.dll_WSAStartup]
cmp eax, 0xffffffff
je 0x403f12
push 0x9a
call fcn.00431310
add esp, 4
mov dword [ebp - 0x278], eax
sub esp, 8
mov byte [ebp - 4], 6
mov ecx, eax
call fcn.00430770
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 [0x4644b4], eax
call fcn.0040e7d0
push 0x294
mov byte [ebp - 4], 8
call fcn.00431310
add esp, 4
mov dword [ebp - 0x278], eax
push ecx
mov byte [ebp - 4], 9
mov ecx, eax
push dword [ebp - 0x284]
push dword [ebp - 0x2b4]
call fcn.004075b0
mov dword [0x4644b0], eax
lea eax, [ebp - 0x2e0]
push eax
push 0
lea eax, [ebp - 0x2f0]
push eax
push 0x41adf0
push 0
push 0
call fcn.0043cf4f
add esp, 0x18
mov dword [ebp - 0x2e4], eax
test eax, eax
je 0x403e30
cmp eax, 0xffffffff
je 0x403e30
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea ecx, [ebp - 0x2f0]
mov dword [0x4644b4], 0
call fcn.0040eb10
mov byte [ebp - 4], 0xa
call fcn.00430670
mov ecx, dword [ebp - 0x2b]
test ecx, ecx
je 0x403e5b
mov eax, dword [ecx]
push 1
call dword [eax]
mov ecx, dword [0x4644c8]
test ecx, ecx
je 0x403e6b
mov eax, dword [ecx]
push 1
call dword [eax]
mov eax, dword [ebp - 0x80]
lea ecx, [ebp - 0x80]
push 0x2710
mov dword [0x4644c8], 0
call dword [eax + 8]
call dword [sym.imp.WS2_32.dll_WSACleanup]
lea ecx, [ebp - 0x80]
call fcn.00411b20
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.004312ef
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.00417e00
push 0x4612f4
lea eax, [ebp - 0x2a4]
push eax
call fcn.00432c66
int3