Function at 0x406769
Capabilities:
Delete file
Get common file path

Disassembly:
mov eax, 0x441ab8
call fcn.00440d70
sub esp, 0x38
push ebx
push esi
push edi
mov dword [ebp - 0x3c], ecx
call sub.MFC42.DLL_AfxGetModuleState
mov ecx, dword [eax + 4]
call fcn.00422cef
xor edi, edi
cmp eax, edi
je 0x406b57
mov dword [ebp - 0x14], edi
mov ecx, dword [eax + 0xc]
add eax, 0xc
lea edx, [ebp - 0x14]
mov dword [ebp - 4], edi
push edx
push 0x44acd0
push eax
call dword [ecx]
cmp eax, edi
jge 0x4067bd
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
cmp eax, edi
jmp 0x406ae6
push edi
push ecx
mov esi, 0x45dbec
mov ecx, esp
mov dword [ebp - 0x38], esp
push esi
call sub.MFC42.DLL_CString::CString_2
and byte [ebp - 4], 0
lea eax, [ebp - 0x18]
push eax
call fcn.00429d0a
add esp, 0xc
push edi
push ecx
mov ecx, esp
mov dword [ebp - 0x38], esp
push esi
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString_2
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 2
push eax
call fcn.00429d0a
add esp, 0xc
mov eax, dword [ebp - 0x18]
mov byte [ebp - 4], 4
cmp dword [eax - 8], edi
je 0x406b7c
mov ecx, dword [ebp - 0x10]
cmp dword [ecx - 8], edi
je 0x406b7c
or ebx, 0xffffffff
push ebx
push eax
call fcn.0040a3d7
pop ecx
mov dword [ebp - 0x38], eax
pop ecx
mov eax, dword [ebp - 0x14]
push edi
push dword [ebp - 0x38]
mov byte [ebp - 4], 5
mov ecx, dword [eax]
push eax
call dword [ecx + 0x24]
push dword [ebp - 0x38]
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [ebp - 0x34], eax
mov byte [ebp - 4], 4
call esi
cmp dword [ebp - 0x34], edi
jl 0x4068e7
push ebx
push dword [ebp - 0x10]
call fcn.0040a3d7
pop ecx
mov dword [ebp - 0x38], eax
pop ecx
mov eax, dword [ebp - 0x14]
push 1
push dword [ebp - 0x38]
mov byte [ebp - 4], 6
mov ecx, dword [eax]
push eax
call dword [ecx + 0x24]
push dword [ebp - 0x38]
mov dword [ebp - 0x34], eax
mov byte [ebp - 4], 4
call esi
cmp dword [ebp - 0x34], edi
jl 0x4068e7
lea ecx, [ebp - 0x20]
call sub.MFC42.DLL_CString::CString_4
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 7
call sub.MFC42.DLL_CString::CString_4
push dword [ebp - 0x18]
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 8
push eax
call fcn.004297a1
pop ecx
cmp eax, edi
pop ecx
je 0x4068cf
push dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
call esi
push dword [ebp - 0x10]
lea eax, [ebp - 0x1c]
push eax
call fcn.004297a1
pop ecx
cmp eax, edi
pop ecx
jne 0x406907
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 7
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
and byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], ebx
jmp 0x4067b3
push dword [ebp - 0x10]
call esi
mov eax, dword [ebp - 0x20]
lea ecx, [ebp - 0x24]
mov esi, dword [eax - 8]
mov eax, dword [ebp - 0x1c]
mov ebx, dword [eax - 8]
call sub.MFC42.DLL_CString::CString_4
lea eax, [ebx + esi + 8]
lea ecx, [ebp - 0x24]
push eax
mov byte [ebp - 4], 9
mov dword [ebp - 0x38], eax
call sub.MFC42.DLL_CString::GetBuffer
push esi
mov edi, eax
call dword [sym.imp.WS2_32.dll_htonl]
push ebx
mov dword [ebp - 0x40], eax
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x40]
push 4
push eax
push edi
call sub.MSVCRT.dll_memcpy
lea eax, [ebp - 0x44]
push 4
push eax
lea eax, [edi + 4]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0x18
lea ecx, [ebp - 0x20]
push esi
push esi
call sub.MFC42.DLL_CString::GetBuffer
push eax
lea eax, [edi + 8]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
lea ecx, [ebp - 0x1c]
push ebx
push ebx
call sub.MFC42.DLL_CString::GetBuffer
push eax
lea eax, [edi + esi + 8]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
lea ecx, [ebp - 0x20]
push esi
call sub.MFC42.DLL_CString::ReleaseBuffer
push ebx
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::ReleaseBuffer
push dword [ebp - 0x38]
lea ecx, [ebp - 0x24]
call sub.MFC42.DLL_CString::ReleaseBuffer
lea ecx, [ebp - 0x2c]
call sub.MFC42.DLL_CString::CString_4
mov edi, 0x104
lea ecx, [ebp - 0x2c]
push edi
mov byte [ebp - 4], 0xa
call sub.MFC42.DLL_CString::GetBuffer
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push edi
lea ecx, [ebp - 0x2c]
call sub.MFC42.DLL_CString::ReleaseBuffer
lea ecx, [ebp - 0x28]
call sub.MFC42.DLL_CString::CString_4
mov eax, dword [ebp - 0x24]
mov byte [ebp - 4], 0xb
mov edi, dword [eax - 8]
lea eax, [edi + edi]
push edi
push edi
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x30], eax
call sub.MFC42.DLL_CString::GetBuffer
push eax
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x28]
push dword [ebp - 0x30]
call sub.MFC42.DLL_CString::GetBuffer
push eax
call fcn.00439c20
add esp, 0x10
lea ecx, [ebp - 0x24]
push edi
call sub.MFC42.DLL_CString::ReleaseBuffer
push dword [ebp - 0x30]
lea ecx, [ebp - 0x28]
call sub.MFC42.DLL_CString::ReleaseBuffer
mov eax, 0x200000
cmp esi, eax
jg 0x406b6b
cmp dword [ebp - 0x30], eax
ja 0x406b6b
mov eax, dword [ebp - 0x3c]
mov esi, dword [ebp + 8]
push dword [eax + 0x5878]
push dword [ebp - 0x2c]
push str._sUserList__d.tmp
push esi
call sub.MFC42.DLL_CString::Format
add esp, 0x10
lea eax, [ebp - 0x28]
push dword [esi]
push ecx
mov ecx, esp
mov dword [ebp + 8], esp
push eax
call sub.MFC42.DLL_CString::CString_3
mov byte [ebp - 4], 0xb
call fcn.0042981a
pop ecx
test eax, eax
pop ecx
jne 0x406af2
push dword [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0xa
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 9
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 8
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 7
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
and byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x14]
or dword [ebp - 4], 0xffffffff
test eax, eax
je 0x406aee
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
jmp 0x406b5a
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0xa
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 9
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 8
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 7
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
and byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x14]
or dword [ebp - 4], 0xffffffff
test eax, eax
je 0x406b57
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 1
pop eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4
mov ecx, dword [ebp - 0x3c]
push 0x67
push 1
call fcn.00408fbe
jmp 0x406a89
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
and byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::CString
jmp 0x4067af