Function at 0x401640
Capabilities:
Create tcp socket
Create thread
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x409dae
mov eax, dword fs:[0]
push eax
sub esp, 0x5a4
mov eax, dword [0x40e01c]
xor eax, esp
mov dword [esp + 0x59c], eax
push esi
push edi
mov eax, dword [0x40e01c]
xor eax, esp
push eax
lea eax, [esp + 0x5b0]
mov dword fs:[0], eax
push 0x200
lea eax, [esp + 0x1a8]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x1a4]
push 0x5c
push ecx
call dword [sym.imp.MSVCR80.dll_strrchr]
lea edx, [esp + 0x1ac]
push edx
mov byte [eax], 0
lea eax, [esp + 0x3b0]
push 0x200
push eax
call dword [sym.imp.MSVCR80.dll_strcpy_s]
mov esi, dword [sym.imp.MSVCR80.dll_strcat_s]
add esp, 0x14
push str.SlimFTPd.log
lea ecx, [esp + 0x1a8]
push 0x200
push ecx
call esi
add esp, 0xc
push str.SlimFTPd.conf
lea edx, [esp + 0x3a8]
push 0x200
push edx
call esi
add esp, 0xc
push 0xc
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
mov edi, dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
add esp, 4
test esi, esi
je 0x401756
push 0
push 0
push 4
push 0
push 1
push 0x40000000
lea eax, [esp + 0x1bc]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
test eax, eax
mov dword [esi], eax
je 0x401758
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea ecx, [esi + 8]
push ecx
push 0
push esi
push 0x406500
push 0
push 0
call edi
mov dword [esi + 4], eax
jmp 0x401758
xor esi, esi
push 0xc
mov dword [0x40e424], esi
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
add esp, 4
mov dword [esp + 0xc], esi
test esi, esi
mov dword [esp + 0x5b8], 0
je 0x4017a6
call fcn.00405ad0
mov dword [esi + 4], eax
mov byte [eax + 0xc9], 1
mov eax, dword [esi + 4]
mov dword [eax + 4], eax
mov eax, dword [esi + 4]
mov dword [eax], eax
mov eax, dword [esi + 4]
mov dword [eax + 8], eax
mov dword [esi + 8], 0
jmp 0x4017a8
xor esi, esi
mov dword [esp + 0x5b8], 0xffffffff
push str._______________________________________________________________________________
mov dword [0x40e430], esi
call fcn.004063e0
push str.SlimFTPd_3.181__by_WhitSoft_Development__www.whitsoftdev.com_
call fcn.004063e0
cmp byte [0x40e429], 0
je 0x4017dd
push str.The_SlimFTPd_service_is_starting.
jmp 0x4017e2
push str.SlimFTPd_is_starting.
call fcn.004063e0
xor eax, eax
mov dword [0x40e458], eax
mov dword [0x40e45c], eax
push 0x15
mov dword [0x40e460], eax
mov dword [0x40e464], eax
mov word [0x40e458], 2
mov dword [0x40e45c], eax
call sub.WSOCK32.dll_htons
lea edx, [esp + 0x14]
push edx
push 0x101
mov word [0x40e45a], ax
call sub.WSOCK32.dll_WSAStartup
lea ecx, [esp + 0x3a4]
call fcn.00401a70
test al, al
je 0x40186d
push 6
push 1
push 2
call sub.WSOCK32.dll_socket
push 0x10
push 0x40e458
push eax
mov dword [0x40e42c], eax
call sub.WSOCK32.dll_bind
test eax, eax
je 0x401871
push str.Unable_to_bind_socket._Specified_port_may_already_be_in_use.
call fcn.004063e0
mov eax, dword [0x40e42c]
push eax
call sub.WSOCK32.dll_closesocket
xor al, al
jmp 0x40189c
mov ecx, dword [0x40e42c]
push 5
push ecx
call sub.WSOCK32.dll_listen
lea edx, [esp + 0x10]
push edx
push 0
push 0
push 0x402990
push 0
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov ecx, dword [esp + 0x5b0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x59c]
xor ecx, esp
call fcn.00408d59
mov esp, ebp
pop ebp
ret