Function at 0x40a390
Capabilities:
Delete file
Move file

Disassembly:
push 0xffffffffffffffff
push 0x44fe77
mov eax, dword fs:[0]
push eax
sub esp, 0x404
mov eax, dword [0x469644]
xor eax, esp
mov dword [esp + 0x400], eax
push ebp
push esi
push edi
mov eax, dword [0x469644]
xor eax, esp
push eax
lea eax, [esp + 0x414]
mov dword fs:[0], eax
push 0x3e8
lea eax, [esp + 0x2c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x14]
call fcn.004015d0
mov dword [esp + 0x41c], 0
call fcn.0041c4e4
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40a40f
push 0x80004005
call fcn.00401470
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebp, [eax + 0x10]
mov dword [esp + 0x24], ebp
mov byte [esp + 0x41c], 1
mov ecx, dword [esp + 0x10]
push 0x5c
push ecx
call fcn.0043752a
add esp, 8
test eax, eax
jne 0x40a43f
or eax, 0xffffffff
jmp 0x40a443
sub eax, dword [esp + 0x10]
push eax
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x18]
call fcn.0040af20
push str.ShellClient.Old
lea ecx, [esp + 0x24]
mov byte [esp + 0x420], 2
call fcn.004015d0
mov esi, eax
lea eax, [esp + 0x1c]
push eax
lea edi, [esp + 0x1c]
mov byte [esp + 0x420], 3
call fcn.0040afa0
push esi
push eax
lea ecx, [esp + 0x20]
push ecx
mov byte [esp + 0x42c], 4
call fcn.00402160
mov byte [esp + 0x42c], 3
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
add esp, 0x10
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40a4bf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x41c], 2
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a4e7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push 2
push edx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
mov esi, eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a526
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x41c], 1
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a54e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
mov byte [esp + 0x41c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a572
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x41c], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a59d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x414]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x400]
xor ecx, esp
call fcn.004366ef
add esp, 0x410
ret