Function at 0x403ee0
Capabilities:
Access the windows event log
Receive data
Receive data on socket

Disassembly:
sub esp, 0x130
push ebx
push ebp
push esi
push edi
xor edi, edi
push edi
push edi
push 1
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov ecx, eax
xor eax, eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
cmp ecx, edi
je 0x404116
mov ebp, dword [esp + 0x144]
push edi
push ebp
mov dword [esp + 0x3c], ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x403f79
mov eax, dword [esp + 0x158]
push str.Elsevier.DaTong
push edi
mov dword [eax], 1
mov dword [esp + 0x18], str.Terminate_event_was_signaled.
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
push edi
lea ecx, [esp + 0x14]
push ecx
push edi
push 1
push edi
push edi
push edi
mov esi, eax
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
jmp 0x404116
mov esi, dword [esp + 0x14c]
mov ebx, dword [esp + 0x150]
push edi
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x28]
push ecx
mov dword [esp + 0x30], edi
mov edi, dword [esp + 0x158]
mov eax, dword [edi]
push 1
lea edx, [esp + 0x4c]
push edx
push eax
mov dword [esp + 0x58], esi
mov dword [esp + 0x54], ebx
call dword [sym.imp.WS2_32.dll_WSARecv]
cmp eax, 0xffffffff
jne 0x403fe6
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x403fe6
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push str.WSARecv_fail.
mov ecx, eax
call fcn.00401e00
add esp, 4
jmp 0x404116
mov ecx, dword [esp + 0x18]
push 0
push 0xffffffffffffffff
push 0
lea edx, [esp + 0x4c]
push edx
push 2
mov dword [esp + 0x54], ebp
mov dword [esp + 0x58], ecx
call dword [sym.imp.WS2_32.dll_WSAWaitForMultipleEvents]
mov eax, dword [esp + 0x40]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x404044
mov ecx, dword [esp + 0x158]
push str.Terminate_event_was_signaled.
mov dword [ecx], 1
call fcn.00401dc0
mov edx, dword [edi]
add esp, 4
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [edi], 0xffffffff
jmp 0x404116
lea eax, [esp + 0x20]
push eax
mov eax, dword [edi]
push 1
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x30]
push edx
push eax
call dword [sym.imp.WS2_32.dll_WSAGetOverlappedResult]
test eax, eax
jne 0x404080
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
call esi
push str.WSAGetOverlappedResult_fail.
mov ecx, eax
call fcn.00401e00
add esp, 4
jmp 0x404116
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x404097
push str.ftp_server_Gracefully_close.
call fcn.00401dc0
add esp, 4
jmp 0x404116
mov ebp, dword [esp + 0x154]
test ebp, ebp
je 0x4040a5
mov dword [ebp], eax
mov ecx, dword [esp + 0x15c]
test ecx, ecx
je 0x40416c
cmp eax, ebx
ja 0x4040bc
mov byte [eax + esi], 0
push ecx
push 0x417fb8
push esi
call fcn.00407758
movsx ecx, byte [esi]
add esp, 0xc
push ecx
call fcn.0040896c
add esp, 4
test eax, eax
je 0x4040e5
cmp byte [esi + 3], 0x2d
jne 0x40416c
mov eax, dword [esp + 0x158]
mov ecx, dword [esp + 0x144]
lea edx, [esp + 0x10]
push edx
push eax
push ebp
push ebx
push esi
push edi
push ecx
mov dword [esp + 0x2c], 0
call fcn.00403ee0
add esp, 0x1c
mov dword [esp + 0x14], eax
test eax, eax
jne 0x40414e
push str.Elsevier.DaTong
push 0
mov dword [esp + 0x18], str.FtpRecv_fail.
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
push 0
lea edx, [esp + 0x14]
push edx
push 0
push 1
push 0
push 0
push 0
mov esi, eax
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40415d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x130
ret
mov dword [esp + 0x14], 1
jmp 0x40414e