Function at 0x40324c
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
mov eax, 0x41b488
call fcn.004086bc
sub esp, 0x880
mov eax, dword [0x422a90]
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x10], eax
mov edi, 0x634
xor ebx, ebx
push edi
lea eax, [ebp - 0x88c]
push ebx
push eax
mov dword [ebp - 4], ebx
call fcn.00408760
mov eax, dword [esi + 0x3c]
add esp, 0xc
mov dword [ebp - 0x254], eax
lea eax, [ebp - 0x50]
push eax
push ebx
lea eax, [ebp - 0x258]
push ebx
push eax
push ebx
mov dword [ebp - 0x258], 1
mov dword [ebp - 0x50], 5
mov dword [ebp - 0x4c], ebx
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x4033ae
lea ecx, [ebp - 0x48]
call fcn.004016cf
mov eax, dword [0x422a90]
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 2
call sub.WS2_32.dll_WSAGetLastError
lea ecx, [ebp - 0x154]
mov edi, eax
mov eax, dword [0x4260c0]
push 0x104
push ecx
push 0x29
push eax
call dword [sym.imp.USER32.dll_LoadStringA]
lea eax, [ebp - 0x154]
push edi
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00413217
lea eax, [ebp - 0x10]
push eax
call fcn.00402444
add esp, 0x10
lea edi, [esi + 0x40]
lea eax, [ebp - 0x1c]
push str.AutoClientUpdate.exe
push edi
push eax
call fcn.00413d96
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.00413ca0
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.00413bf7
mov ecx, esi
call fcn.004022d1
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x44]
push eax
call fcn.00413ca0
push str.NULL
lea ecx, [ebp - 0x40]
call fcn.00413cf0
push edi
lea ecx, [ebp - 0x3c]
call fcn.00413ca0
push str.SW_HIDE
lea ecx, [ebp - 0x38]
call fcn.00413cf0
push str.open
lea ecx, [ebp - 0x48]
call fcn.00413cf0
mov ecx, dword [0x4260b0]
lea eax, [ebp - 0x48]
push eax
call fcn.00402144
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.00413bf7
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x48]
jmp 0x4035fb
mov dword [ebp - 0x14], ebx
mov ecx, edi
mov eax, dword [ebp - 0x14]
push ebx
push ecx
lea eax, [ebp + eax - 0x88c]
push eax
push dword [esi + 0x3c]
call sub.WS2_32.dll_recv
cmp eax, 1
jl 0x4033da
add dword [ebp - 0x14], eax
mov ecx, edi
sub ecx, dword [ebp - 0x14]
cmp dword [ebp - 0x14], edi
jne 0x4033b3
cmp eax, 0xffffffff
je 0x403507
cmp eax, ebx
je 0x403507
lea eax, [ebp - 0x88c]
test eax, eax
je 0x4034f3
mov eax, dword [ebp - 0x87c]
sub eax, 0xf
je 0x40341b
dec eax
jne 0x4034f3
push dword [esi + 0x3c]
call sub.WS2_32.dll_closesocket
mov dword [esi + 0x3c], ebx
jmp 0x4034f3
lea edi, [esi + 0x24]
lea eax, [ebp - 0x770]
push eax
mov ecx, edi
call fcn.00413cf0
lea ebx, [esi + 0x30]
lea eax, [ebp - 0x464]
push eax
mov ecx, ebx
call fcn.00413cf0
lea eax, [ebp - 0x568]
lea ecx, [esi + 0x2c]
push eax
call fcn.00413cf0
lea eax, [ebp - 0x66c]
lea ecx, [esi + 0x28]
push eax
call fcn.00413cf0
mov eax, dword [ebp - 0x360]
push dword [edi]
mov dword [esi + 0x34], eax
lea eax, [ebp - 0x10]
push str.The_FTP_IP:__s
push eax
call fcn.00413217
lea eax, [ebp - 0x10]
push eax
call fcn.00402444
add esp, 0x10
lea eax, [ebp - 0x10]
push dword [esi + 0x2c]
push str.The_FTP_User_Name:__s
push eax
call fcn.00413217
lea eax, [ebp - 0x10]
push eax
call fcn.00402444
add esp, 0x10
lea eax, [ebp - 0x10]
push dword [ebx]
push str.The_FTP_Password:___s
push eax
call fcn.00413217
lea eax, [ebp - 0x10]
push eax
call fcn.00402444
add esp, 0x10
lea eax, [ebp - 0x10]
push dword [esi + 0x28]
push str.The_FTP_ServerName:___s
push eax
call fcn.00413217
lea eax, [ebp - 0x10]
push eax
call fcn.00402444
add esp, 0x10
lea eax, [ebp - 0x10]
push dword [esi + 0x34]
push str.The_FTP_Port:___d
push eax
call fcn.00413217
lea eax, [ebp - 0x10]
push eax
call fcn.00402444
add esp, 0x10
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00413bf7
push 1
pop eax
jmp 0x40360e
lea ecx, [ebp - 0x34]
call fcn.004016cf
mov eax, dword [0x422a90]
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 5
call sub.WS2_32.dll_WSAGetLastError
lea ecx, [ebp - 0x154]
mov edi, eax
mov eax, dword [0x4260c0]
push 0x104
push ecx
push 7
push eax
call dword [sym.imp.USER32.dll_LoadStringA]
lea eax, [ebp - 0x154]
push edi
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00413217
lea eax, [ebp - 0x10]
push eax
call fcn.00402444
add esp, 0x10
lea eax, [esi + 0x40]
push str.AutoClientUpdate.exe
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.00413d96
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 6
call fcn.00413ca0
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 5
call fcn.00413bf7
mov ecx, esi
call fcn.004022d1
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0x30]
push eax
call fcn.00413ca0
push str.NULL
lea ecx, [ebp - 0x2c]
call fcn.00413cf0
mov eax, dword [0x4260b0]
lea ecx, [ebp - 0x28]
add eax, 0x40
push eax
call fcn.00413ca0
push str.SW_HIDE
lea ecx, [ebp - 0x24]
call fcn.00413cf0
push str.open
lea ecx, [ebp - 0x34]
call fcn.00413cf0
mov ecx, dword [0x4260b0]
lea eax, [ebp - 0x34]
push eax
call fcn.00402144
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 4
call fcn.00413bf7
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x34]
call fcn.004016fe
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00413bf7
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret