Function at 0x408530
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40d3c2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x254
push ebx
push esi
mov esi, ecx
push edi
lea eax, [esi + 4]
mov dword [ebp - 0x10], esp
xor ebx, ebx
push eax
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x14], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], ebx
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_3]
mov edi, dword [esi + 0x74]
cmp edi, ebx
mov byte [ebp - 4], 1
mov dword [esi + 0x1c], ebx
mov dword [ebp - 0x28], edi
je 0x4086e2
mov ecx, esi
call fcn.00407630
cmp eax, ebx
je 0x4086e2
xor eax, eax
cmp eax, edi
mov dword [ebp - 0x20], eax
jge 0x4086e2
cmp eax, ebx
mov dword [ebp - 0x1c], 1
jl 0x408790
cmp eax, dword [esi + 0x74]
jge 0x408790
mov ecx, dword [esi + 0x70]
mov edi, dword [ecx + eax*4]
cmp edi, ebx
mov dword [ebp - 0x30], edi
je 0x408787
lea ecx, [esi + 0x34]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
lea edx, [ebp - 0x138]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, edi
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
lea eax, [ebp - 0x138]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
push edi
lea ecx, [esi + 0x3c]
push ecx
lea edx, [ebp - 0x34]
push edx
call fcn.00402e80
add esp, 0xc
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call dword [0x40e230]
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 1
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [ebp - 0x18]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
call dword [sym.imp.SHLWAPI.dll_StrDupA]
mov ecx, dword [esi + 0x30]
cmp ecx, ebx
je 0x408650
push ebx
push eax
push 0x503
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
lea esp, [esp]
lea ecx, [ebp - 0x18]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x260]
push eax
lea ecx, [ebp - 0x138]
push ecx
mov dword [ebp - 0x260], ebx
mov dword [ebp - 0x25c], ebx
mov dword [ebp - 0x258], ebx
mov dword [ebp - 0x254], ebx
mov dword [ebp - 0x250], ebx
mov dword [ebp - 0x24c], ebx
call sub.MFC71.DLL_CFile::GetStatus
cmp eax, ebx
je 0x4086a0
mov dword [ebp - 0x14], 1
jmp 0x4086da
mov edx, dword [ebp - 0x24]
push edx
mov ecx, esi
xor edi, edi
call fcn.004076a0
test eax, eax
je 0x4086d4
push 1
lea eax, [ebp - 0x138]
push eax
mov ecx, esi
call fcn.00407dd0
mov edi, eax
mov eax, dword [esi + 0x2c]
cmp eax, ebx
je 0x4086d4
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [esi + 0x2c], ebx
mov dword [ebp - 0x14], edi
mov edi, dword [ebp - 0x30]
cmp dword [esi + 0x1c], ebx
je 0x40871d
mov dword [ebp - 0x14], ebx
mov eax, dword [esi + 0x2c]
cmp eax, ebx
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
je 0x4086f5
push eax
call edi
mov dword [esi + 0x2c], ebx
mov eax, dword [esi + 0x28]
cmp eax, ebx
je 0x408702
push eax
call edi
mov dword [esi + 0x28], ebx
mov eax, dword [esi + 0x24]
cmp eax, ebx
je 0x40870f
push eax
call edi
mov dword [esi + 0x24], ebx
lea ecx, [ebp - 0x18]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
jmp 0x4087a0
cmp dword [ebp - 0x14], ebx
je 0x408759
push ebx
lea ecx, [edi + 0x18]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
lea ecx, [ebp - 0x138]
push ecx
mov ecx, esi
call fcn.00406ed0
cmp eax, ebx
jne 0x408784
cmp dword [ebp - 0x1c], ebx
je 0x408784
lea edx, [ebp - 0x138]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [ebp - 0x1c], ebx
jmp 0x408650
lea eax, [ebp - 0x138]
push eax
call dword [sym.imp.SHLWAPI.dll_StrDupA]
mov ecx, dword [esi + 0x30]
cmp ecx, ebx
je 0x4086e2
push ebx
push eax
push 0x505
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x4086e2
mov eax, dword [ebp - 0x20]
mov edi, dword [ebp - 0x28]
inc eax
jmp 0x40859a
jmp fcn.0040936c
lea ecx, [esi + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edi, dword [ebp - 0x14]
cmp edi, ebx
je 0x4087c6
mov esi, dword [esi + 0x30]
cmp esi, ebx
je 0x4087c6
push ebx
push ebx
push 0x506
push esi
call dword [sym.imp.USER32.dll_PostMessageA]
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret