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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x409cdd
mov eax, dword fs:[0]
push eax
sub esp, 0x5a4
mov eax, dword [0x40f01c]
xor eax, esp
mov dword [esp + 0x59c], eax
push esi
push edi
mov eax, dword [0x40f01c]
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 0x408d46
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 0x408d48
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 0x404f30
push 0
push 0
call edi
mov dword [esi + 4], eax
jmp 0x408d48
xor esi, esi
push 0xc
mov dword [0x40f424], 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 0x408d96
call fcn.00401950
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 0x408d98
xor esi, esi
mov dword [esp + 0x5b8], 0xffffffff
push str._______________________________________________________________________________
mov dword [0x40f430], esi
call fcn.00404fd0
push 0x40a4f8
call fcn.00404fd0
cmp byte [0x40f429], 0
je 0x408dcd
push str.The_SlimFTPd_service_is_starting.
jmp 0x408dd2
push str.SlimFTPd_is_starting.
call fcn.00404fd0
xor eax, eax
mov dword [0x40f458], eax
mov dword [0x40f45c], eax
push 0x15
mov dword [0x40f460], eax
mov dword [0x40f464], eax
mov word [0x40f458], 2
mov dword [0x40f45c], eax
call sub.WSOCK32.dll_htons
lea edx, [esp + 0x14]
push edx
push 0x101
mov word [0x40f45a], ax
call sub.WSOCK32.dll_WSAStartup
lea ecx, [esp + 0x3a4]
call fcn.004084e0
test al, al
je 0x408e5d
push 6
push 1
push 2
call sub.WSOCK32.dll_socket
push 0x10
push 0x40f458
push eax
mov dword [0x40f42c], eax
call sub.WSOCK32.dll_bind
test eax, eax
je 0x408e61
push str.Unable_to_bind_socket._Specified_port_may_already_be_in_use.
call fcn.00404fd0
mov eax, dword [0x40f42c]
push eax
call sub.WSOCK32.dll_closesocket
xor al, al
jmp 0x408e8c
mov ecx, dword [0x40f42c]
push 5
push ecx
call sub.WSOCK32.dll_listen
lea edx, [esp + 0x10]
push edx
push 0
push 0
push 0x408410
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.00403339
mov esp, ebp
pop ebp
ret