Function at 0x42075e
Capabilities:
Delete file
Move file

Disassembly:
sub esp, 0x1c
push 0xd390
call fcn.00401000
mov dword [esp + 0x14], eax
test eax, eax
je 0x420a78
push ebx
push ebp
push esi
push edi
lea esi, [eax + 0x208]
push 0x104
push esi
push dword [0x445f50]
lea edi, [esi + 0x104]
lea ebx, [edi + 0x104]
lea ebp, [ebx + 0x30c]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push dword [esp + 0x34]
push esi
call fcn.00402610
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x4445e1
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push esi
lea eax, [ebx + 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x439108
lea eax, [ebx + 0x104]
push eax
call fcn.004025d5
push 0x64
push dword [esp + 0x34]
call fcn.00402787
and dword [esp + 0x1c], 0
mov dword [esp + 0x28], eax
test eax, eax
jle 0x420a74
push 0
push dword [esp + 0x20]
push 0x187
push 0x64
push dword [esp + 0x40]
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
test eax, eax
je 0x420a62
push 0x104
push ebx
push dword [0x445f50]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push edi
push dword [esp + 0x20]
push 0x189
push 0x64
push dword [esp + 0x40]
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
push edi
push ebx
call fcn.00402610
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x4445d9
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x5b
push 0
push edi
call fcn.004012ec
push 0x5d
push edi
call fcn.00401255
push esi
call fcn.00404046
push 0
test eax, eax
jne 0x4208e5
push esi
call dword [sym.imp.KERNEL32.dll__lcreat]
mov dword [esp + 0x18], eax
cmp eax, 0xffffffff
je 0x420a62
push dword [esp + 0x30]
push ebx
call fcn.00404b34
mov dword [esp + 0x14], eax
test eax, eax
je 0x4208d6
push 1
push edi
jmp 0x4208aa
push 1
push ebp
push dword [esp + 0x20]
call fcn.0040476d
push 0xcc74
push ebp
push dword [esp + 0x1c]
call fcn.00404bb9
test eax, eax
jne 0x4208a7
push dword [esp + 0x14]
call fcn.00404b9e
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll__lclose]
jmp 0x420a62
lea eax, [ebx + 0x104]
push eax
mov byte [esp + 0x1b], 0
call dword [sym.imp.KERNEL32.dll__lcreat]
mov dword [esp + 0x18], eax
cmp eax, 0xffffffff
je 0x420a62
push dword [esp + 0x30]
push esi
call fcn.00404b34
mov dword [esp + 0x14], eax
test eax, eax
je 0x420a35
push 0xcc74
push ebp
mov byte [ebx + 0x208], 0
push eax
jmp 0x42094c
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x420957
push 1
push ebp
push dword [esp + 0x20]
call fcn.0040476d
push 0xcc74
push ebp
push dword [esp + 0x1c]
call fcn.00404bb9
test eax, eax
jne 0x42092a
jmp 0x4209b9
push dword [esp + 0x34]
push edi
push 0x43c0d0
push dword [esp + 0x30]
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push 4
push dword [esp + 0x28]
push dword [esp + 0x38]
call fcn.0040258f
cmp eax, 6
je 0x420996
push dword [esp + 0x14]
call fcn.00404b9e
jmp 0x4208d6
cmp byte [ebp], 0x5b
je 0x4209ab
push 0xcc74
push ebp
push dword [esp + 0x1c]
call fcn.00404bb9
test eax, eax
jne 0x420990
jmp 0x4209b9
push ebp
lea eax, [ebx + 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push dword [esp + 0x30]
push ebx
call fcn.00404b34
mov dword [esp + 0x20], eax
test eax, eax
je 0x4209f8
push 1
push edi
jmp 0x4209d3
push 1
push ebp
push dword [esp + 0x20]
call fcn.0040476d
push 0xcc74
push ebp
push dword [esp + 0x28]
call fcn.00404bb9
test eax, eax
jne 0x4209d0
push dword [esp + 0x20]
call fcn.00404b9e
lea eax, [ebx + 0x208]
cmp byte [eax], 0
je 0x420a27
push 1
push eax
jmp 0x420a0b
push 1
push ebp
push dword [esp + 0x20]
call fcn.0040476d
push 0xcc74
push ebp
push dword [esp + 0x1c]
call fcn.00404bb9
test eax, eax
jne 0x420a08
push dword [esp + 0x14]
mov byte [esp + 0x17], 1
call fcn.00404b9e
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll__lclose]
cmp byte [esp + 0x13], 0
je 0x420a62
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push esi
lea eax, [ebx + 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
inc dword [esp + 0x1c]
mov eax, dword [esp + 0x1c]
cmp eax, dword [esp + 0x28]
jl 0x4207fd
pop edi
pop esi
pop ebp
pop ebx
push dword [esp + 0x14]
call fcn.00401019
xor eax, eax
inc eax
add esp, 0x1c
ret 8