Function at 0x49e1d4
Capabilities:
Hide graphical window
Read .ini file
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff34c
mov eax, 0x69d2ab
xor edx, edx
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x40], 0x6bda70
mov dword [ebp - 0x3c], esp
mov dword [ebp - 0x44], eax
mov word [ebp - 0x38], 0
mov dword [ebp - 0x2c], edx
mov ecx, dword fs:[0]
mov dword [ebp - 0x48], ecx
lea eax, [ebp - 0x48]
mov dword fs:[0], eax
mov edi, 0xa
mov al, byte [0x6bd078]
test al, al
je 0x49e223
xor edi, edi
push 1
push 0x12c
push 0x1f4
push 0x32
push 0x32
mov eax, dword [ebx + 0x24]
push eax
call sub.USER32.DLL_MoveWindow
push 0x898
call fcn.0067ac68
pop ecx
mov dword [ebp - 4], eax
test eax, eax
je 0x49e282
mov word [ebp - 0x38], 0x14
xor edx, edx
mov dl, byte [0x6bd078]
cmp edx, 1
sbb ecx, ecx
neg ecx
push ecx
push 0x65
mov esi, dword [ebx + 0x24]
push esi
push esi
mov eax, dword [ebp - 4]
push eax
call fcn.005faaa0
add esp, 0x14
mov word [ebp - 0x38], 8
mov edx, dword [ebp - 4]
jmp 0x49e285
mov edx, dword [ebp - 4]
mov dword [ebx + 0x2c], edx
push 0x6bcf1e
push str.Serv_U_FTP_Server_v5.0_____s____Beta___Copyright__c__1995_2004_Cat_Soft__All_Rights_Reserved___by_Rob_Beckers
lea eax, [ebp - 0x9c0]
push eax
call fcn.006a0ad0
add esp, 0xc
lea ecx, [ebp - 0x9c0]
push 0xffffffffffffffff
push ecx
push 0x12
call fcn.005fb108
add esp, 0xc
push 0xffffffffffffffff
push str.Cat_Soft_is_an_affiliate_of_Rhino_Software__Inc.
push 0x12
call fcn.005fb108
add esp, 0xc
lea eax, [ebp - 0x860]
push 0x800
push eax
mov edx, dword [ebx + 0x20]
push edx
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x5c
lea ecx, [ebp - 0x860]
push ecx
call fcn.0069cf25
add esp, 8
test eax, eax
je 0x49e2f2
mov byte [eax], 0
mov al, byte [0x6bd07c]
test al, al
jne 0x49e409
push edi
xor eax, eax
lea edi, [ebp - 0x860]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, 0x6bd07c
xchg edi, esi
mov edx, ecx
mov eax, edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
push 0x6bcf57
push 0x6bd07c
call fcn.0069cd7c
add esp, 8
push 0x6bcf59
push 0x6bd07c
call fcn.0069cd7c
add esp, 8
push 0x6bd07c
call fcn.00445e50
pop ecx
test al, al
jne 0x49e409
push 0x6bcf69
call fcn.006a7b1c
pop ecx
test eax, eax
je 0x49e3c6
push str.SERV_U
call fcn.006a7b1c
pop ecx
push edi
mov edi, eax
xor eax, eax
or ecx, 0xffffffff
mov esi, 0x6bd07c
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
push 0x6bcf77
push 0x6bd07c
call fcn.0069cd7c
add esp, 8
push 0x6bcf79
push 0x6bd07c
call fcn.0069cd7c
add esp, 8
jmp 0x49e409
push 0x4000
lea eax, [ebp - 0xba8]
push eax
push str.ServUDaemon.ini
call sub.KERNEL32.DLL_OpenFile
inc eax
je 0x49e409
push edi
xor eax, eax
lea edi, [ebp - 0xba0]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, 0x6bd07c
xchg edi, esi
mov edx, ecx
mov eax, edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
push 0x6bd07c
call fcn.00445e50
pop ecx
test al, al
jne 0x49e474
push 0x6bcf99
push 0x6bd07c
call fcn.0069f0a4
add esp, 8
push eax
call fcn.0069ebfc
pop ecx
push 0x64
lea eax, [ebp - 0xc0c]
push eax
push 0x7e1
mov edx, dword [ebx + 0x20]
push edx
call sub.USER32.DLL_LoadStringA
push 0xffffffffffffffff
lea ecx, [ebp - 0xc0c]
push ecx
push 0x12
call fcn.005fb108
add esp, 0xc
push 0x6bd07c
push 0x6bcfab
push 0x6bcfa3
push 0x6bcf9c
call sub.KERNEL32.DLL_WritePrivateProfileStringA
push 0x6bd07c
call fcn.00445e50
pop ecx
test al, al
jne 0x49e4b6
mov byte [0x6bd07c], 0
push 0x64
lea eax, [ebp - 0xc70]
push eax
push 0x7d0
mov edx, dword [ebx + 0x20]
push edx
call sub.USER32.DLL_LoadStringA
push 0xffffffffffffffff
lea ecx, [ebp - 0xc70]
push ecx
push 0x12
call fcn.005fb108
add esp, 0xc
jmp 0x49e4c4
push 0x6bd07c
push ebx
call fcn.0049e8e0
add esp, 8
call sub.KERNEL32.DLL_GetCurrentProcessId
mov esi, eax
push 0x6bd07c
push 0xa
lea eax, [ebp - 0xc98]
push eax
push esi
call fcn.006a5624
add esp, 0xc
push eax
push str.ProcessID
push 0x6bcfb3
call sub.KERNEL32.DLL_WritePrivateProfileStringA
push 0x61d8
call fcn.0067ac68
pop ecx
mov dword [ebp - 8], eax
test eax, eax
je 0x49e52a
mov word [ebp - 0x38], 0x2c
mov edx, dword [ebx + 0x24]
push edx
push 0x6bd07c
mov ecx, dword [ebp - 8]
push ecx
call fcn.00594448
add esp, 0xc
mov word [ebp - 0x38], 0x20
mov esi, dword [ebp - 8]
jmp 0x49e52d
mov esi, dword [ebp - 8]
mov dword [ebx + 0x28], esi
mov eax, esi
mov dword [0x6e8d14], eax
mov eax, esi
mov dword [0x6b362c], eax
mov eax, esi
mov dword [0x6af6a8], eax
mov eax, esi
mov dword [0x6badc8], eax
mov eax, esi
mov dword [0x6b60b4], eax
mov eax, esi
mov dword [0x6d9120], eax
mov eax, esi
mov dword [0x6be504], eax
push esi
call fcn.005997b8
pop ecx
mov edx, dword [ebx + 0x28]
push edx
call fcn.005950d0
pop ecx
push 0x130
call fcn.0067ac68
pop ecx
mov dword [ebp - 0xc], eax
test eax, eax
je 0x49e5b3
mov word [ebp - 0x38], 0x44
push 0x407
mov edx, dword [ebx + 0x24]
push edx
mov ecx, dword [ebx + 0x20]
push ecx
push 0x6bd07c
mov eax, dword [ebp - 0xc]
push eax
call fcn.0040cfd4
add esp, 0x14
mov word [ebp - 0x38], 0x38
mov edx, dword [ebp - 0xc]
jmp 0x49e5b6
mov edx, dword [ebp - 0xc]
mov dword [ebx + 0x3c], edx
push 0x6bd07c
push 0x18
lea eax, [ebp - 0xcb4]
push eax
push 0x6bcfd2
push str.Window
push 0x6bcfc4
call sub.KERNEL32.DLL_GetPrivateProfileStringA
test eax, eax
je 0x49e641
lea ecx, [ebp - 0x58]
lea eax, [ebp - 0x54]
push ecx
push eax
lea edx, [ebp - 0x50]
lea ecx, [ebp - 0x4c]
push edx
push ecx
lea eax, [ebp - 0xcb4]
push str._d__d__d__d
push eax
call fcn.006a0b4c
add esp, 0x18
cmp eax, 4
jne 0x49e641
mov edx, dword [ebp - 0x4c]
test edx, edx
jl 0x49e641
mov ecx, dword [ebp - 0x50]
test ecx, ecx
jl 0x49e641
mov eax, dword [ebp - 0x54]
cmp eax, 0x32
jle 0x49e641
mov edx, dword [ebp - 0x58]
cmp edx, 0x32
jle 0x49e641
push 1
mov ecx, dword [ebp - 0x58]
push ecx
mov eax, dword [ebp - 0x54]
push eax
mov edx, dword [ebp - 0x50]
push edx
mov ecx, dword [ebp - 0x4c]
push ecx
mov eax, dword [ebx + 0x24]
push eax
call sub.USER32.DLL_MoveWindow
push 0x190
call fcn.0067ac68
pop ecx
mov dword [ebp - 0x10], eax
test eax, eax
je 0x49e681
mov word [ebp - 0x38], 0x5c
push 0
push 7
push 0x400
mov edx, dword [ebx + 0x24]
push edx
mov ecx, dword [ebx + 0x20]
push ecx
mov eax, dword [ebp - 0x10]
push eax
call fcn.00588fa8
add esp, 0x18
mov word [ebp - 0x38], 0x50
mov esi, dword [ebp - 0x10]
jmp 0x49e684
mov esi, dword [ebp - 0x10]
push 0x15e
lea eax, [ebp - 0x9c0]
push eax
push 0x7f7
mov edx, dword [ebx + 0x20]
push edx
call sub.USER32.DLL_LoadStringA
call fcn.00590d9c
push eax
push esi
call fcn.00590d90
pop ecx
push eax
lea ecx, [ebp - 0x9c0]
push ecx
lea eax, [ebp - 0xb20]
push eax
call fcn.006a0ad0
add esp, 0x10
lea edx, [ebp - 0xb20]
push 0xffffffffffffffff
push edx
push 0x12
call fcn.005fb108
add esp, 0xc
mov dword [ebp - 0x14], esi
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x49e6f9
mov word [ebp - 0x38], 0x74
push 3
mov eax, dword [ebp - 0x14]
push eax
call fcn.005899b4
mov word [ebp - 0x38], 0x68
add esp, 8
push 0x148
call fcn.0067ac68
pop ecx
mov dword [ebp - 0x18], eax
test eax, eax
je 0x49e730
mov word [ebp - 0x38], 0x8c
mov edx, dword [ebx + 0x20]
push edx
mov ecx, dword [ebx + 0x24]
push ecx
mov eax, dword [ebp - 0x18]
push eax
call fcn.004475bc
add esp, 0xc
mov word [ebp - 0x38], 0x80
mov edx, dword [ebp - 0x18]
jmp 0x49e733
mov edx, dword [ebp - 0x18]
mov dword [ebx + 0x30], edx
push 0xf0
call fcn.0067ac68
pop ecx
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x49e769
mov word [ebp - 0x38], 0xa4
mov ecx, dword [ebx + 0x20]
push ecx
mov eax, dword [ebp - 0x1c]
push eax
call fcn.00484b44
add esp, 8
mov word [ebp - 0x38], 0x98
mov edx, dword [ebp - 0x1c]
jmp 0x49e76c
mov edx, dword [ebp - 0x1c]
mov dword [ebx + 0x34], edx
call fcn.00401b14
test al, al
je 0x49e781
push ebx
call fcn.0049ee44
pop ecx
jmp 0x49e791
call fcn.00401b88
test al, al
je 0x49e791
mov byte [0x6bd074], 1
push 0x38
call fcn.0067ac68
pop ecx
mov dword [ebp - 0x20], eax
test eax, eax
je 0x49e7cf
mov word [ebp - 0x38], 0xbc
mov ecx, dword [ebx + 0x28]
push ecx
push 0x6bd07c
push 0x403
mov eax, dword [ebx + 0x24]
push eax
mov edx, dword [ebp - 0x20]
push edx
call fcn.0048322c
add esp, 0x14
mov word [ebp - 0x38], 0xb0
mov ecx, dword [ebp - 0x20]
jmp 0x49e7d2
mov ecx, dword [ebp - 0x20]
mov dword [ebx + 0x38], ecx
push 0x28
call fcn.0067ac68
pop ecx
mov dword [ebp - 0x24], eax
test eax, eax
je 0x49e7ff
mov word [ebp - 0x38], 0xd4
mov edx, dword [ebp - 0x24]
push edx
call fcn.00587dc4
pop ecx
mov word [ebp - 0x38], 0xc8
mov eax, dword [ebp - 0x24]
jmp 0x49e802
mov eax, dword [ebp - 0x24]
mov dword [ebx + 0x40], eax
push 0x15e
lea edx, [ebp - 0x9c0]
push edx
push 0x7ea
mov ecx, dword [ebx + 0x20]
push ecx
call sub.USER32.DLL_LoadStringA
push 0xffffffffffffffff
lea eax, [ebp - 0x9c0]
push eax
push 2
call fcn.005fb108
add esp, 0xc
lea edx, [ebp - 0x60]
push edx
call fcn.006a9814
pop ecx
mov eax, dword [ebp - 0x60]
cmp eax, 0x7bc
jl 0x49e859
cmp eax, 0x7f3
jg 0x49e859
push 0
call fcn.006a99d0
pop ecx
test eax, eax
jg 0x49e871
push 0xffffffffffffffff
push str.CHECK_THE_SYSTEMS_CLOCK___DATE_NEEDS_TO_BE_SET_CORRECTLY_FOR_SERVER_TO_WORK
push 0x12
call fcn.005fb108
add esp, 0xc
mov byte [0x6b3690], 1
push edi
mov edx, dword [ebx + 0x24]
push edx
call sub.USER32.DLL_ShowWindow
mov ecx, dword [ebp - 0x48]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret