Function at 0x5804e0
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d3269
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x638fe4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], 0
mov ecx, dword [0x6441c8]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x30], 0x644170
mov dword [ebp - 0x34], 2
mov eax, dword [ecx]
call dword [eax + 0x18]
mov ecx, dword [0x6441c8]
mov dword [ebp - 0x18], eax
mov eax, dword [ecx]
call dword [eax + 0x28]
inc eax
mov byte [0x6441e0], 0
push 0x6441c0
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push 0x6441bc
push eax
lea eax, [ebp - 0x14]
push eax
call dword [0x643b50]
test al, al
jne 0x580674
push 0x6441b4
call dword [0x643b34]
mov eax, dword [0x6441b4]
shr eax, 8
mov byte [0x6441e0], al
cmp al, 0xa
je 0x580674
cmp al, 0xb
je 0x580674
cmp al, 0xc
je 0x580674
cmp al, 0xd
je 0x580674
cmp al, 0x1b
je 0x580674
cmp al, 0x1c
je 0x580674
cmp al, 0x94
je 0x580674
mov ecx, dword [0x6441c8]
mov eax, dword [ecx]
call dword [eax + 0x28]
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, eax
mov edi, edi
cmp edi, dword [ebp - 0x14]
jae 0x58065f
mov ecx, dword [0x6441c8]
mov eax, dword [ecx]
call dword [eax + 0x18]
mov edx, eax
lea ecx, [ebp - 0x1c]
call fcn.005b0d00
mov byte [ebp - 4], 1
mov ecx, dword [0x6441c8]
mov eax, dword [ecx]
call dword [eax + 0x14]
push eax
lea ecx, [ebp + 0xc]
call fcn.00403280
lea ecx, [ebp + 0x14]
call fcn.00402be0
mov byte [ebp - 4], 3
lea eax, [ebp + 0x14]
push dword [ebp - 0x1c]
push edi
push 4
push dword [ebp + 0xc]
push str._s__0d_s
push eax
call fcn.00402e70
mov esi, dword [ebp + 0x14]
add esp, 0x18
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x58063d
push esi
call ebx
lea ecx, [ebp + 0x14]
call fcn.00402b90
lea ecx, [ebp + 0xc]
call fcn.00402b90
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0
call fcn.00402b90
inc edi
jmp 0x5805d0
push 0x62e4b0
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 0x6e4
push eax
call fcn.005479aa
mov ecx, dword [0x6441c8]
mov eax, dword [ecx]
call dword [eax + 0x28]
mov esi, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x14]
sub ecx, eax
mov dword [esi], ecx
add dword [0x6441c4], ecx
cmp dword [ebp - 0x18], 0x10e6
jne 0x5806be
mov ecx, dword [0x6441c8]
mov eax, dword [ecx]
call dword [eax + 0x28]
inc eax
cmp dword [ebp - 0x14], eax
jb 0x5806b8
mov ecx, dword [0x6441c8]
mov eax, dword [ecx]
call dword [eax + 0x28]
inc eax
mov dword [ebp - 0x14], eax
mov dword [esi], 1
mov ecx, dword [0x6441c8]
mov eax, dword [ecx]
call dword [eax + 0x18]
mov edx, eax
lea ecx, [ebp - 0x24]
call fcn.005b0d00
mov byte [ebp - 4], 4
mov ecx, dword [0x6441c8]
mov eax, dword [ecx]
call dword [eax + 0x14]
push eax
lea ecx, [ebp - 0x20]
call fcn.00403280
mov byte [ebp - 4], 5
call fcn.00418413
mov ecx, eax
test ecx, ecx
jne 0x580704
push 0x80004005
call fcn.00402650
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x580719
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x58071b
call edx
add eax, 0x10
mov dword [ebp + 0x14], eax
mov byte [ebp - 4], 6
lea eax, [ebp + 0x14]
push dword [ebp - 0x24]
push dword [ebp - 0x14]
push 4
push dword [ebp - 0x20]
push str._s__0d_s
push eax
call fcn.00402e70
mov esi, dword [ebp + 0x14]
add esp, 0x18
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x580756
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [0x6441c8]
mov eax, dword [ecx]
call dword [eax + 0x28]
cmp dword [ebp - 0x14], eax
jne 0x5807ec
mov eax, dword [0x644188]
sub eax, dword [0x644184]
cmp eax, 4
jae 0x58078a
mov eax, dword [0x644194]
sub eax, dword [0x644190]
cmp eax, 4
jb 0x580793
cmp dword [ebp + 0xc], 0x1faf
jne 0x5807ec
movzx eax, byte [0x6441e0]
add eax, 0xfffffff6
cmp eax, 3
ja case.default.0x5807a2
jmp dword [eax*4 + 0x580900]
mov dword [0x6441b4], 0x90a00
jmp case.default.0x5807a2
mov dword [0x6441b4], 0x90b00
jmp case.default.0x5807a2
mov dword [0x6441b4], 0x90a01
jmp case.default.0x5807a2
mov dword [0x6441b4], 0x90b01
push 0x62e4b0
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0x709
push eax
call fcn.005479aa
mov ecx, dword [0x6441c8]
push dword [ebp - 0x18]
mov eax, dword [ecx]
call dword [eax + 0x12c]
or edi, 0xffffffff
mov byte [ebp - 4], 5
mov ebx, 1
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x580845
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x580843
mov ecx, dword [ecx + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x580843
push 0
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x580845
call edx
mov byte [ebp - 4], 4
mov eax, edi
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x58088a
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x580886
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x580886
push 0
push dword [edx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x58088a
mov ecx, edx
call esi
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], edi
dec edi
test edi, edi
jg 0x5808ea
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x5808c9
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x5808c9
push 0
push dword [edx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x5808ea
mov ecx, edx
call esi
jmp 0x5808ea
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10