Function at 0x406840
Capabilities:
Delete file
Get common file path
Move file

Disassembly:
sub esp, 0x56c
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x58c]
mov eax, dword [edi + 8]
test eax, eax
jle 0x40685f
mov eax, dword [edi + 4]
mov eax, dword [eax]
jmp 0x406861
xor eax, eax
lea ecx, [esp + 0x164]
push ecx
push eax
call fcn.00406280
mov ecx, dword [esp + 0x588]
add esp, 8
lea edx, [esp + 0x164]
mov dword [esp + 0x36c], eax
mov eax, dword [esp + 0x584]
push edx
push 0x405be0
push eax
push 0x78
push ecx
mov byte [esp + 0x27c], 0
mov dword [esp + 0x384], edi
call dword [sym.imp.USER32.dll_DialogBoxParamA]
cmp eax, 1
je 0x4068bf
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x56c
ret
push 0x7f02
push 0
call dword [sym.imp.USER32.dll_LoadCursorA]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
mov edx, dword [esp + 0x590]
mov dword [esp + 0x30], eax
xor ebx, ebx
mov dword [edx + 0x10], 1
mov eax, dword [edi + 8]
test eax, eax
mov dword [esp + 0x10], ebx
jle 0x406a37
xor ebp, ebp
mov eax, dword [esp + 0x370]
cmp ebx, dword [eax + 8]
jge 0x406910
test ebx, ebx
jl 0x406910
mov eax, dword [eax + 4]
mov eax, dword [eax + ebx*4]
jmp 0x406912
xor eax, eax
mov edx, dword [esp + 0x36c]
lea ecx, [esp + 0x60]
push ecx
lea ecx, [ebx + edx]
lea edx, [esp + 0x26c]
push ecx
push edx
push eax
call fcn.00406360
add esp, 0x10
lea eax, [esp + 0x60]
push 0
push eax
call fcn.00498c50
add esp, 8
test eax, eax
jne 0x406988
mov eax, dword [edi + 8]
xor esi, esi
test eax, eax
jle 0x406980
cmp esi, eax
jge 0x40695f
test esi, esi
jl 0x40695f
mov ecx, dword [edi + 4]
mov eax, dword [ecx + esi*4]
jmp 0x406961
xor eax, eax
lea edx, [esp + 0x60]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x40697b
mov eax, dword [edi + 8]
inc esi
cmp esi, eax
jl 0x406953
jmp 0x406980
mov ebp, 1
test ebp, ebp
je 0x4068f8
lea eax, [esp + 0x60]
push eax
call fcn.0043c610
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x406a27
mov ecx, dword [esp + 0x590]
mov eax, dword [ecx + 0xc]
mov esi, dword [ecx + 8]
lea edx, [eax + 1]
cmp esi, edx
jne 0x406a17
mov esi, ecx
mov ecx, dword [esi + 0x14]
add ecx, eax
lea edx, [ecx*4 + 4]
push edx
call fcn.004985f0
mov ebx, eax
mov eax, dword [esi + 0xc]
mov esi, dword [esi + 4]
mov edi, ebx
lea ecx, [eax*4 + 4]
add esp, 4
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x590]
mov eax, dword [esi + 4]
push eax
call fcn.00498600
mov ecx, dword [esi + 0x14]
mov eax, dword [esi + 0xc]
mov edi, dword [esp + 0x590]
add esp, 4
add eax, ecx
mov dword [esi + 4], ebx
mov ebx, dword [esp + 0x10]
mov dword [esi + 0xc], eax
mov ecx, esi
mov edx, dword [ecx + 8]
mov eax, dword [ecx + 4]
mov dword [eax + edx*4], ebp
mov eax, dword [ecx + 8]
inc eax
mov dword [ecx + 8], eax
mov eax, dword [edi + 8]
inc ebx
cmp ebx, eax
mov dword [esp + 0x10], ebx
jl 0x4068f6
mov ecx, dword [str.ACDSee_32]
mov edx, dword [esp + 0x584]
mov edi, dword [esp + 0x580]
push 0x1f4
push ecx
push edx
push edi
call fcn.0043ff40
mov esi, dword [esp + 0x59c]
add esp, 0x10
mov ebp, eax
lea ecx, [esp + 0x38]
mov eax, dword [esi + 8]
push eax
push 0xa8
push edi
push ecx
call fcn.0043e2a0
add esp, 0x10
lea edx, [esp + 0x38]
push edx
push 0x71
push ebp
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
mov eax, dword [esi + 8]
xor ebx, ebx
add eax, eax
and eax, 0xffff
shl eax, 0x10
push eax
push ebx
push 0x401
push 0x82
push ebp
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
mov esi, dword [esi + 8]
lea ecx, [esi*4]
push ecx
call fcn.004985f0
mov edx, dword [esp + 0x594]
mov dword [esp + 0x1c], eax
add esp, 4
dec esi
mov eax, dword [edx + 8]
mov dword [esp + 0x1c], ebx
cmp eax, ebx
mov dword [esp + 0x20], esi
jle 0x406c8a
mov eax, dword [0x4cb0dc]
test eax, eax
jne 0x406c8a
mov al, byte [0x4caf4c]
mov ecx, 0x40
mov byte [esp + 0x60], al
xor eax, eax
lea edi, [esp + 0x61]
mov esi, dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x60]
stosw word es:[edi], ax
push ecx
push 0
push 0x4be29c
push 0x4be298
stosb byte es:[edi], al
call esi
test eax, eax
jne 0x406b3a
lea edx, [esp + 0x60]
push edx
push eax
push 0x4be29c
push 0x4be298
call esi
test eax, eax
je 0x406c21
lea eax, [esp + 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esi, dword [esp + 0x58c]
cmp ebx, dword [esi + 8]
jge 0x406b5d
test ebx, ebx
jl 0x406b5d
mov ecx, dword [esi + 4]
mov eax, dword [ecx + ebx*4]
jmp 0x406b5f
xor eax, eax
lea edx, [esp + 0x60]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
je 0x406c44
lea eax, [esp + 0x60]
push eax
call fcn.0043c610
add esp, 4
mov dword [esp + 0x34], eax
test eax, eax
je 0x406bed
mov ecx, dword [esp + 0x20]
lea esi, [ecx + 1]
mov ecx, dword [esp + 0x1c]
cmp ecx, esi
jne 0x406bdd
mov edx, dword [esp + 0x20]
lea eax, [edx*4 + 0x104]
push eax
call fcn.004985f0
mov ecx, esi
mov esi, dword [esp + 0x1c]
mov edi, eax
add esp, 4
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x10], eax
push ecx
call fcn.00498600
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x14]
add esp, 4
add eax, 0x40
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov dword [edx + ecx*4], eax
inc ecx
mov dword [esp + 0x1c], ecx
lea esi, [ebx + 1]
push 0
push esi
push 0x402
push 0x82
push ebp
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
push ebp
call fcn.0043ff80
mov eax, dword [esp + 0x594]
mov ebx, esi
add esp, 4
cmp ebx, dword [eax + 8]
jl 0x406add
jmp 0x406c8a
lea ecx, [esp + 0x60]
lea edx, [esp + 0x374]
push ecx
push str.GetTempFileName___failed____s
push edx
call fcn.00498ca0
add esp, 0xc
lea eax, [esp + 0x374]
jmp 0x406c79
cmp ebx, dword [esi + 8]
jge 0x406c55
test ebx, ebx
jl 0x406c55
mov edx, dword [esi + 4]
mov eax, dword [edx + ebx*4]
jmp 0x406c57
xor eax, eax
lea ecx, [esp + 0x60]
lea edx, [esp + 0x374]
push ecx
push eax
push str.MoveFile__s___s__failed
push edx
call fcn.00498ca0
add esp, 0x10
lea eax, [esp + 0x374]
mov ecx, dword [esp + 0x584]
push eax
push ecx
call fcn.0043cf40
add esp, 8
mov edx, dword [esp + 0x590]
mov eax, dword [edx + 8]
cmp ebx, eax
jge 0x406d41
push ebp
call dword [sym.imp.USER32.dll_DestroyWindow]
xor esi, esi
test ebx, ebx
jle 0x406ce7
mov ebp, dword [esp + 0x58c]
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileA]
cmp esi, dword [ebp + 8]
jge 0x406cc7
test esi, esi
jl 0x406cc7
mov eax, dword [ebp + 4]
mov ecx, dword [eax + esi*4]
jmp 0x406cc9
xor ecx, ecx
cmp esi, dword [esp + 0x1c]
jge 0x406cdc
test esi, esi
jl 0x406cdc
mov edx, dword [esp + 0x18]
mov eax, dword [edx + esi*4]
jmp 0x406cde
xor eax, eax
push ecx
push eax
call edi
inc esi
cmp esi, ebx
jl 0x406cb6
mov eax, dword [esp + 0x30]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
mov eax, dword [esp + 0x1c]
xor esi, esi
test eax, eax
jle 0x406f0b
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
cmp esi, ebx
jge 0x406d14
test esi, esi
jl 0x406d14
mov eax, dword [edi]
jmp 0x406d16
xor eax, eax
push eax
call fcn.00498600
add esp, 4
inc esi
add edi, 4
cmp esi, ebx
jl 0x406d04
mov ecx, dword [esp + 0x18]
push ecx
call fcn.00498600
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x56c
ret
xor esi, esi
test eax, eax
jle 0x406dcc
mov ebx, dword [esp + 0x590]
mov edi, dword [sym.imp.USER32.dll_SendDlgItemMessageA]
mov ecx, dword [0x4cb0dc]
test ecx, ecx
jne 0x406e28
cmp esi, eax
jge 0x406d76
test esi, esi
jl 0x406d76
mov edx, dword [ebx + 4]
mov ecx, dword [edx + esi*4]
jmp 0x406d78
xor ecx, ecx
cmp esi, dword [esp + 0x1c]
jge 0x406d8b
test esi, esi
jl 0x406d8b
mov eax, dword [esp + 0x18]
mov eax, dword [eax + esi*4]
jmp 0x406d8d
xor eax, eax
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
je 0x406e28
mov ecx, dword [esp + 0x58c]
push 0
mov edx, dword [ecx + 8]
lea eax, [esi + edx + 1]
push eax
push 0x402
push 0x82
push ebp
call edi
push ebp
call fcn.0043ff80
mov eax, dword [ebx + 8]
add esp, 4
inc esi
cmp esi, eax
jl 0x406d58
push ebp
call dword [sym.imp.USER32.dll_DestroyWindow]
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.USER32.dll_SetCursor]
mov edi, dword [esp + 0x1c]
xor esi, esi
test edi, edi
jle 0x406e0b
mov ebx, dword [esp + 0x18]
cmp esi, edi
jge 0x406df8
test esi, esi
jl 0x406df8
mov eax, dword [ebx]
jmp 0x406dfa
xor eax, eax
push eax
call fcn.00498600
add esp, 4
inc esi
add ebx, 4
cmp esi, edi
jl 0x406df0
mov eax, dword [esp + 0x18]
push eax
call fcn.00498600
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x56c
ret
push ebp
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [0x4cb0dc]
test eax, eax
jne 0x406e52
mov ecx, dword [esp + 0x584]
mov edx, dword [esp + 0x580]
push 0x6a
push ecx
push edx
call fcn.0043cfa0
add esp, 0xc
mov ebp, dword [sym.imp.KERNEL32.dll_MoveFileA]
xor edi, edi
test esi, esi
jle 0x406e8f
cmp edi, dword [esp + 0x1c]
jge 0x406e71
test edi, edi
jl 0x406e71
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + edi*4]
jmp 0x406e73
xor ecx, ecx
cmp edi, dword [ebx + 8]
jge 0x406e84
test edi, edi
jl 0x406e84
mov edx, dword [ebx + 4]
mov eax, dword [edx + edi*4]
jmp 0x406e86
xor eax, eax
push ecx
push eax
call ebp
inc edi
cmp edi, esi
jl 0x406e5e
mov eax, dword [ebx + 8]
xor esi, esi
test eax, eax
jle 0x406ed3
mov edi, dword [esp + 0x58c]
cmp esi, dword [edi + 8]
jge 0x406eb0
test esi, esi
jl 0x406eb0
mov eax, dword [edi + 4]
mov ecx, dword [eax + esi*4]
jmp 0x406eb2
xor ecx, ecx
cmp esi, dword [esp + 0x1c]
jge 0x406ec5
test esi, esi
jl 0x406ec5
mov edx, dword [esp + 0x18]
mov eax, dword [edx + esi*4]
jmp 0x406ec7
xor eax, eax
push ecx
push eax
call ebp
mov eax, dword [ebx + 8]
inc esi
cmp esi, eax
jl 0x406e9f
mov eax, dword [esp + 0x30]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
mov ebx, dword [esp + 0x1c]
xor esi, esi
test ebx, ebx
jle 0x406f0b
mov edi, dword [esp + 0x18]
cmp esi, ebx
jge 0x406ef8
test esi, esi
jl 0x406ef8
mov eax, dword [edi]
jmp 0x406efa
xor eax, eax
push eax
call fcn.00498600
add esp, 4
inc esi
add edi, 4
cmp esi, ebx
jl 0x406ef0
mov ecx, dword [esp + 0x18]
push ecx
call fcn.00498600
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x56c
ret