Function at 0x413a50
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x419065
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xb4
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov eax, dword [esp + 0xd8]
lea edx, [esp + 0xd4]
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push edx
mov dword [esp + 0xd8], 2
mov dword [esp + 0x28], 0
call sub.MFC42.DLL_CString::CString_1
lea ebp, [edi + 8]
mov ecx, ebp
call fcn.00404670
mov esi, eax
test esi, esi
je 0x413e41
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_3
mov eax, dword [edi + 0x184]
mov ecx, dword [edi + 0x180]
mov edx, dword [esp + 0xe8]
push eax
push ecx
push edx
lea eax, [esp + 0x20]
push str._s_.0f.rar
push eax
mov byte [esp + 0xe0], 3
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esp + 0x28]
add esp, 0x14
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [esp + 0xe0]
mov ebx, dword [esp + 0xdc]
mov edx, dword [esp + 0xe4]
push eax
lea ecx, [esp + 0x48]
push 0x4211d4
push ecx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], edx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea edx, [esp + 0x3c]
mov ecx, ebp
push 0x88
push edx
push esi
call fcn.00404800
test eax, eax
jne 0x413b4b
push esi
call dword [sym.imp.WSOCK32.dll_closesocket]
jmp 0x413e30
lea eax, [esp + 0x28]
push 0x14
push eax
push esi
mov ecx, ebp
call fcn.004047b0
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp + 0x28]
lea edx, [esp + 0x18]
push ecx
push 0x422918
push edx
mov byte [esp + 0xd8], 4
call sub.MFC42.DLL_CString::Format
add esp, 8
lea eax, [esp + 0x1c]
mov ecx, esp
mov dword [esp + 0x14], esp
push eax
call sub.MFC42.DLL_CString::CString_1
mov ecx, 0x422c90
call fcn.00402730
mov al, byte [esp + 0x28]
cmp al, 0x54
jne 0x413c8e
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_2
mov bl, 5
lea ecx, [esp + 0x10]
mov byte [esp + 0xcc], bl
call sub.MFC42.DLL_CString::TrimRight
mov edx, dword [0x422cf8]
lea ecx, [esp + 0x10]
push edx
call fcn.00413ea0
push ecx
dec eax
mov ecx, esp
mov dword [esp + 0x2c], esp
push eax
push ecx
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::Right
push esi
push ecx
lea edx, [edi + 0x50]
mov ecx, esp
mov dword [esp + 0x30], esp
push edx
mov byte [esp + 0xe0], 6
call sub.MFC42.DLL_CString::CString_1
mov ecx, ebp
mov byte [esp + 0xdc], bl
call fcn.00404920
test eax, eax
jne 0x413c33
push esi
call dword [sym.imp.WSOCK32.dll_closesocket]
lea ecx, [esp + 0x10]
mov byte [esp + 0xcc], 4
call sub.MFC42.DLL_CString::CString
jmp 0x413e1f
mov eax, dword [esp + 0x14]
push 0
push eax
call dword [sym.imp.MSVCRT.dll__access]
add esp, 8
test eax, eax
jl 0x413c69
push 0
push ecx
lea edx, [esp + 0xe8]
mov ecx, esp
mov dword [esp + 0x28], esp
push edx
call sub.MFC42.DLL_CString::CString_1
push 0x1c9c
mov ecx, edi
call fcn.00413970
lea ecx, [esp + 0x10]
mov byte [esp + 0xcc], 4
call sub.MFC42.DLL_CString::CString
push esi
call dword [sym.imp.WSOCK32.dll_closesocket]
mov dword [esp + 0x1c], 1
jmp 0x413e1f
cmp al, 0x57
jne 0x413cf5
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
mov ebp, 0x1d
mov eax, dword [0x422d04]
test eax, eax
jne 0x413cd9
mov eax, dword [edi + 0x5c]
test eax, eax
je 0x413cb4
mov ebp, 0x1e
jmp 0x413cc8
mov eax, dword [esp + 0x14]
push 0
push eax
call dword [sym.imp.MSVCRT.dll__access]
add esp, 8
test eax, eax
jge 0x413cd9
push 0xc8
call ebx
dec ebp
test ebp, ebp
jg 0x413c9d
jmp 0x413e18
test ebp, ebp
jle 0x413e18
push esi
call dword [sym.imp.WSOCK32.dll_closesocket]
mov dword [esp + 0x1c], 1
jmp 0x413e1f
cmp al, 0x50
jne 0x413e0d
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x10]
mov byte [esp + 0xcc], 7
call sub.MFC42.DLL_CString::TrimRight
push esi
call dword [sym.imp.WSOCK32.dll_closesocket]
push ecx
lea edx, [esp + 0xec]
mov ecx, esp
mov dword [esp + 0x24], esp
push edx
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [esp + 0xe8]
lea edx, [esp + 0xe4]
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push edx
mov byte [esp + 0xdc], 8
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [0x422cf8]
push ebx
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0xe0], 9
call fcn.00413ea0
push ecx
dec eax
mov ecx, esp
mov dword [esp + 0x34], esp
push eax
push ecx
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CString::Right
mov ecx, edi
mov byte [esp + 0xe4], 7
call fcn.00413a50
lea ecx, [esp + 0x10]
mov esi, eax
mov byte [esp + 0xcc], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0xcc], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0xcc], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xd4]
mov byte [esp + 0xcc], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xe0]
mov byte [esp + 0xcc], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xe8]
mov dword [esp + 0xcc], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, esi
jmp 0x413e84
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
call dword [sym.imp.WSOCK32.dll_closesocket]
lea ecx, [esp + 0x18]
mov byte [esp + 0xcc], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0xcc], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xd4]
mov byte [esp + 0xcc], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xe0]
mov byte [esp + 0xcc], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xe8]
mov dword [esp + 0xcc], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0xc4]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xc0
ret 0x18