Function at 0x40c5ab
Capabilities:
Delete file
Move file

Disassembly:
sub esp, 0x1c
inc dword [0x4460f8]
or dword [esp + 4], 0xffffffff
push 0x18ab0
call fcn.00401000
mov dword [esp + 0x18], eax
test eax, eax
je 0x40c8f5
and dword [esp + 8], 0
push ebx
push ebp
push esi
push edi
lea ebx, [eax + 0x104]
lea edi, [ebx + 0x104]
push 0x4437fc
push dword [esp + 0x34]
lea ebp, [edi + 0x104]
mov dword [esp + 0x2c], edi
lea esi, [ebp + 0x104]
call fcn.0040213a
push ebx
mov dword [esp + 0x18], eax
call fcn.0040b554
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x439108
push edi
call fcn.004025d5
push 0
push edi
call dword [sym.imp.KERNEL32.dll__lcreat]
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
jne 0x40c63e
mov dword [esp + 0x14], 0xfffffffe
jmp 0x40c8f1
push 0
push ebx
mov byte [ebp], 0
call fcn.00404b34
mov dword [esp + 0x1c], eax
mov edi, 0x186a0
test eax, eax
je 0x40c761
push edi
push esi
push eax
jmp 0x40c6b5
push 0x443040
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x40c6a3
push edi
push esi
push dword [esp + 0x24]
call fcn.00404bb9
push 0
push esi
call fcn.00401547
cmp eax, dword [esp + 0x18]
jle 0x40c68d
mov dword [esp + 0x18], eax
cmp eax, dword [esp + 0x14]
je 0x40c709
push 1
push 0x443040
push dword [esp + 0x18]
call fcn.0040476d
push 1
push esi
push dword [esp + 0x18]
call fcn.0040476d
push edi
push esi
push dword [esp + 0x24]
call fcn.00404bb9
test eax, eax
jne 0x40c660
jmp 0x40c766
push 0x3d
push esi
call fcn.004018cc
cmp eax, 1
mov dword [esp + 0x20], eax
jle 0x40c6f9
push eax
push 0x443830
push esi
call fcn.0040143c
test eax, eax
jne 0x40c6f9
mov eax, dword [esp + 0x20]
push 0x104
lea eax, [eax + esi + 1]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push 0x443044
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x40c718
push edi
push esi
push dword [esp + 0x24]
call fcn.00404bb9
test eax, eax
jne 0x40c6c3
push edi
push esi
push 0x443830
push dword [esp + 0x3c]
call fcn.004020a8
push str.gilfjgj
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x40c766
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x40c766
push dword [esp + 0x1c]
call fcn.00404b9e
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll__lclose]
and dword [esp + 0x14], 0
jmp 0x40c8f1
and dword [esp + 0x14], 0
cmp dword [esp + 0x14], 0
jne 0x40c776
mov eax, dword [esp + 0x18]
inc eax
mov dword [esp + 0x14], eax
push 1
push 0x443040
push dword [esp + 0x18]
call fcn.0040476d
push dword [esp + 0x14]
push 0x44300c
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 1
push esi
push dword [esp + 0x18]
call fcn.0040476d
cmp byte [str.Subj1], 0
mov dword [esp + 0x18], str.Subj1
je 0x40c89d
push edi
push esi
push dword [esp + 0x20]
push dword [esp + 0x3c]
call fcn.004020a8
push esi
call fcn.00402d69
cmp byte [esi], 0
je 0x40c887
push esi
call fcn.00401bbe
push 0x443828
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x40c805
push 0x438e88
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x40c887
push 0x443830
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x40c835
push str.gilfjgj
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x40c835
cmp byte [ebp], al
je 0x40c887
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0
push dword [esp + 0x1c]
push dword [esp + 0x18]
call fcn.0040476d
push 0
push 0x439104
push dword [esp + 0x18]
call fcn.0040476d
push 0x4390f8
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x40c87b
push eax
push 0x438f60
push dword [esp + 0x18]
call fcn.0040476d
call fcn.0040b4f8
push 1
push esi
push dword [esp + 0x18]
call fcn.0040476d
push dword [esp + 0x18]
call fcn.00401429
cmp byte [eax], 0
mov dword [esp + 0x18], eax
jne 0x40c7ba
push 1
push 0x443044
push dword [esp + 0x18]
call fcn.0040476d
mov ebp, dword [esp + 0x1c]
test ebp, ebp
je 0x40c8cf
jmp 0x40c8c3
push 1
push esi
push dword [esp + 0x18]
call fcn.0040476d
push edi
push esi
push ebp
call fcn.00404bb9
test eax, eax
jne 0x40c8b7
push ebp
call fcn.00404b9e
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll__lclose]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ebx
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_MoveFileA]
pop edi
pop esi
pop ebp
pop ebx
push dword [esp + 0x18]
call fcn.00401019
dec dword [0x4460f8]
mov eax, dword [esp + 4]
add esp, 0x1c
ret 4