Function at 0x40f3b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x45eb72
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x17c
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x7c]
call fcn.0040e700
mov eax, dword [esi + 0x8e4]
lea ebp, [esi + 0x8cc]
xor edi, edi
mov ebx, 0x10
cmp eax, ebx
mov dword [esp + 0x194], edi
jb 0x40f3fd
mov eax, dword [ebp + 4]
jmp 0x40f400
lea eax, [ebp + 4]
movzx ecx, byte [esp + 0x1a0]
push ecx
mov ecx, dword [esp + 0x1a0]
lea edx, [esp + 0x80]
push edx
mov edx, dword [esi + 0x30]
push ecx
mov ecx, dword [edx + 0x14]
push eax
call fcn.004322a0
test eax, eax
jne 0x40f47d
push 2
mov ecx, esi
call fcn.0040b040
xor eax, eax
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x18], eax
push ecx
lea edx, [esp + 0x18]
mov dword [esp + 0x20], eax
push edx
mov ecx, esi
mov dword [esp + 0x28], eax
mov dword [esp + 0x18], ebx
call fcn.00408a70
cmp eax, edi
je 0x40f46a
mov eax, dword [esp + 0x18]
mov ecx, dword [esi + 0x30]
push eax
call fcn.0043de00
push 1
push str.530_Login_or_password_incorrect_
mov ecx, esi
call fcn.0040ea80
jmp 0x40fa7d
lea ecx, [esp + 0x7c]
call fcn.004010d0
test al, al
jne 0x40f4eb
push 1
push str.530_Not_logged_in__user_account_has_been_disabled
mov ecx, esi
call fcn.0040ea80
mov ecx, dword [esi + 0x93c]
cmp ecx, edi
je 0x40f4bd
mov edx, dword [ecx]
call dword [edx + 8]
mov ecx, dword [esi + 0x93c]
cmp ecx, edi
je 0x40f4b7
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [esi + 0x93c], edi
push edi
push str.disconnected.
mov ecx, esi
call fcn.0040b420
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 8]
mov eax, dword [esi + 0x54]
mov ecx, dword [0x473e5c]
push eax
push 1
push ecx
mov ecx, dword [esi + 0x30]
call fcn.00441230
jmp 0x40fa7d
lea ecx, [esp + 0x7c]
call fcn.00401000
test al, al
jne 0x40f594
mov edx, dword [esi + 0x30]
mov ecx, dword [edx + 0x18]
push 3
call fcn.00426da0
mov edi, eax
call fcn.0043c410
cmp eax, edi
jle 0x40f676
test edi, edi
je 0x40f676
push 1
push str.Refusing_connection._Reason:_Max._connection_count_reached.
mov ecx, esi
call fcn.0040b420
push 1
push str.421_Too_many_users_are_connected__please_try_again_later.
mov ecx, esi
call fcn.0040ea80
mov ecx, dword [esi + 0x93c]
test ecx, ecx
je 0x40f565
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, dword [esi + 0x93c]
test ecx, ecx
je 0x40f55b
mov edx, dword [ecx]
push 1
call dword [edx]
mov dword [esi + 0x93c], 0
push 0
push str.disconnected.
mov ecx, esi
call fcn.0040b420
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
mov ecx, dword [esi + 0x54]
mov edx, dword [0x473e5c]
push ecx
mov ecx, dword [esi + 0x30]
push 1
push edx
call fcn.00441230
jmp 0x40fa7d
lea ecx, [esp + 0x7c]
call fcn.0044b540
test eax, eax
je 0x40f678
push ebp
call fcn.0040c440
add esp, 4
lea ecx, [esp + 0x7c]
mov edi, eax
call fcn.00401050
cmp edi, eax
jl 0x40f676
xor edi, edi
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], edi
mov byte [esp + 0x18], 0
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x2c], esp
push ebp
mov byte [esp + 0x1b4], 1
call fcn.004024c0
push str.Refusing_connection._Reason:_Max._connection_count_reached_for_the_user___s_.
lea ecx, [esp + 0x34]
call fcn.0040c110
cmp dword [esp + 0x2c], ebx
mov eax, dword [esp + 0x18]
jae 0x40f607
lea eax, [esp + 0x18]
push 1
push eax
mov ecx, esi
call fcn.0040b420
push 1
push str.421_Too_many_users_logged_in_for_this_account._Try_again_later.
mov ecx, esi
call fcn.0040ea80
mov ecx, dword [esi + 0x93c]
cmp ecx, edi
je 0x40f644
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, dword [esi + 0x93c]
cmp ecx, edi
je 0x40f63e
mov edx, dword [ecx]
push 1
call dword [edx]
mov dword [esi + 0x93c], edi
push edi
push str.disconnected.
mov ecx, esi
call fcn.0040b420
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
mov ecx, dword [esi + 0x54]
mov edx, dword [0x473e5c]
push ecx
mov ecx, dword [esi + 0x30]
push 1
push edx
call fcn.00441230
lea ecx, [esp + 0x14]
jmp 0x40fa78
xor edi, edi
mov dword [esp + 0x74], 0xf
mov dword [esp + 0x70], edi
mov byte [esp + 0x60], 0
xor eax, eax
mov dword [esp + 0x30], eax
lea ecx, [esp + 0x78]
mov dword [esp + 0x34], eax
push ecx
lea edx, [esp + 0x34]
mov dword [esp + 0x3c], eax
push edx
mov ecx, esi
mov byte [esp + 0x19c], 2
mov dword [esp + 0x44], eax
mov dword [esp + 0x80], ebx
call fcn.00408a70
cmp eax, edi
je 0x40f776
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x48]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x4c]
mov dword [eax + 8], ecx
lea ecx, [esp + 0x8c]
mov dword [eax + 0xc], edx
call fcn.00401ac0
test al, al
jne 0x40f754
push 1
push str.421_This_user_is_not_allowed_to_connect_from_this_IP
mov ecx, esi
call fcn.0040ea80
mov ecx, dword [esi + 0x93c]
cmp ecx, edi
je 0x40f726
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, dword [esi + 0x93c]
cmp ecx, edi
je 0x40f720
mov edx, dword [ecx]
push 1
call dword [edx]
mov dword [esi + 0x93c], edi
push edi
push str.disconnected.
mov ecx, esi
call fcn.0040b420
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
mov ecx, dword [esi + 0x54]
mov edx, dword [0x473e5c]
push ecx
mov ecx, dword [esi + 0x30]
push 1
push edx
call fcn.00441230
jmp 0x40fa74
mov eax, dword [esp + 0x32]
push eax
call sub.WS2_32.dll_ntohs
mov ecx, dword [esp + 0x34]
push ecx
call sub.WS2_32.dll_inet_ntoa
push eax
lea edx, [esp + 0x60]
push edx
call fcn.00405580
add esp, 8
mov ecx, dword [esi + 0x30]
lea eax, [esp + 0x5c]
push eax
call fcn.0043cd50
mov edi, eax
lea ecx, [esp + 0x7c]
mov dword [esp + 0x10], edi
call fcn.00401030
test eax, eax
je 0x40f883
lea ecx, [esp + 0x7c]
call fcn.00401030
cmp edi, eax
jl 0x40f883
xor ebp, ebp
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], ebp
mov byte [esp + 0x18], 0
cmp edi, 1
mov byte [esp + 0x194], 3
jne 0x40f7ee
sub esp, 0x1c
lea edx, [esp + 0x78]
mov ecx, esp
mov dword [esp + 0x2c], esp
push edx
call fcn.004024c0
push str.Refusing_connection._Reason:_No_more_connections_allowed_from_this_IP.___s_already_connected_once_
lea ecx, [esp + 0x34]
call fcn.0040c110
jmp 0x40f806
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x60]
push ecx
push str.Refusing_connection._Reason:_No_more_connections_allowed_from_this_IP.___s_already_connected__d_times_
lea ecx, [esp + 0x20]
call fcn.0040c290
cmp dword [esp + 0x2c], ebx
mov eax, dword [esp + 0x18]
jae 0x40f814
lea eax, [esp + 0x18]
push 1
push eax
mov ecx, esi
call fcn.0040b420
push 1
push str.421_Refusing_connection._No_more_connections_allowed_from_your_IP.
mov ecx, esi
call fcn.0040ea80
mov ecx, dword [esi + 0x93c]
cmp ecx, ebp
je 0x40f851
mov edx, dword [ecx]
call dword [edx + 8]
mov ecx, dword [esi + 0x93c]
cmp ecx, ebp
je 0x40f84b
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [esi + 0x93c], ebp
push ebp
push str.disconnected.
mov ecx, esi
call fcn.0040b420
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 8]
mov eax, dword [esi + 0x54]
mov ecx, dword [0x473e5c]
push eax
push 1
push ecx
mov ecx, dword [esi + 0x30]
call fcn.00441230
lea ecx, [esp + 0x14]
jmp 0x40fa6f
cmp dword [ebp + 0x18], ebx
jb 0x40f88d
mov eax, dword [ebp + 4]
jmp 0x40f890
lea eax, [ebp + 4]
push 0
push eax
mov eax, dword [esi + 0x30]
mov ecx, dword [eax + 0x14]
lea edx, [esp + 0x48]
push edx
call fcn.004310d0
lea edi, [esi + 0x8ac]
push eax
mov ecx, edi
mov byte [esp + 0x198], 4
call fcn.004026b0
cmp dword [esp + 0x58], ebx
mov byte [esp + 0x194], 2
jb 0x40f8d4
mov ecx, dword [esp + 0x44]
push ecx
call fcn.0044b92d
add esp, 4
push 0x462398
push edi
call fcn.00401f70
add esp, 8
test al, al
je 0x40f94c
push 1
push str.550_Could_not_get_home_dir_
mov ecx, esi
call fcn.0040ea80
mov ecx, dword [esi + 0x93c]
test ecx, ecx
je 0x40f91d
mov edx, dword [ecx]
call dword [edx + 8]
mov ecx, dword [esi + 0x93c]
test ecx, ecx
je 0x40f913
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [esi + 0x93c], 0
push 0
push str.disconnected.
mov ecx, esi
call fcn.0040b420
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 8]
mov eax, dword [esi + 0x54]
mov ecx, dword [0x473e5c]
push eax
push 1
push ecx
mov ecx, dword [esi + 0x30]
call fcn.00441230
jmp 0x40fa74
lea edx, [esp + 0x5c]
push edx
lea ecx, [esi + 0x8e8]
call fcn.004026b0
lea eax, [esp + 0x12c]
push eax
call fcn.0040c440
add esp, 4
lea ecx, [esp + 0x7c]
mov edi, eax
call fcn.00401050
test eax, eax
je 0x40fa98
lea ecx, [esp + 0x7c]
call fcn.00401050
cmp edi, eax
jl 0x40fa98
xor edi, edi
mov dword [esp + 0x58], 0xf
mov dword [esp + 0x54], edi
mov byte [esp + 0x44], 0
lea ecx, [esp + 0x7c]
mov byte [esp + 0x194], 5
call fcn.00401050
push eax
lea ecx, [esp + 0x44]
push str.Refusing_connection._Reason:_Maximum_connection_count___d__reached_for_this_user
push ecx
call fcn.0040bed0
mov eax, dword [esp + 0x64]
add esp, 0xc
cmp eax, ebx
mov eax, dword [esp + 0x44]
jae 0x40f9d7
lea eax, [esp + 0x44]
push 1
push eax
mov ecx, esi
call fcn.0040b420
sub esp, 0x1c
lea edx, [esp + 0x148]
mov ecx, esp
mov dword [esp + 0x2c], esp
push edx
call fcn.004024c0
push str.421_Refusing_connection._Maximum_connection_count_reached_for_the_user__s
lea ecx, [esp + 0x60]
call fcn.0040c110
cmp dword [esp + 0x58], ebx
mov eax, dword [esp + 0x44]
jae 0x40fa13
lea eax, [esp + 0x44]
push 1
push eax
mov ecx, esi
call fcn.0040ea80
mov ecx, dword [esi + 0x93c]
cmp ecx, edi
je 0x40fa42
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, dword [esi + 0x93c]
cmp ecx, edi
je 0x40fa3c
mov edx, dword [ecx]
push 1
call dword [edx]
mov dword [esi + 0x93c], edi
push edi
push str.disconnected.
mov ecx, esi
call fcn.0040b420
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
mov ecx, dword [esi + 0x54]
mov edx, dword [0x473e5c]
push ecx
mov ecx, dword [esi + 0x30]
push 1
push edx
call fcn.00441230
lea ecx, [esp + 0x40]
call fcn.00401fd0
lea ecx, [esp + 0x5c]
call fcn.00401fd0
lea ecx, [esp + 0x7c]
mov dword [esp + 0x194], 0xffffffff
call fcn.0040e790
xor eax, eax
jmp 0x40fb4d
mov ecx, dword [esi + 0x30]
lea eax, [esp + 0x5c]
push eax
call fcn.0043ff50
push ebp
call fcn.0040e360
add esp, 4
lea ecx, [esi + 0x88c]
push ecx
mov dword [esi + 0x8c8], 1
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
cmp dword [ebp + 0x18], ebx
jb 0x40facf
mov eax, dword [ebp + 4]
jmp 0x40fad2
lea eax, [ebp + 4]
mov edx, dword [esi + 0x30]
mov ecx, dword [edx + 0x14]
push eax
call fcn.00432460
push 0x1c
call fcn.00449985
xor ebx, ebx
add esp, 4
cmp eax, ebx
je 0x40fafd
mov dword [eax + 0x14], ebx
mov dword [eax + 0x18], 0xf
mov byte [eax + 4], bl
mov ebx, eax
push 0xc
call fcn.00449985
mov edi, eax
add esp, 4
mov dword [edi], ebx
mov dword [edi + 4], 1
mov eax, dword [esi + 0x54]
push ebp
mov ecx, ebx
mov dword [edi + 8], eax
call fcn.004026b0
mov ecx, dword [esi + 0x30]
push edi
push 1
call fcn.0043eb00
lea ecx, [esp + 0x5c]
call fcn.00401fd0
lea ecx, [esp + 0x7c]
mov dword [esp + 0x194], 0xffffffff
call fcn.0040e790
mov eax, 1
mov ecx, dword [esp + 0x18c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x188
ret 8