Function at 0x401a37
Capabilities:
Delete file
Move file

Disassembly:
mov eax, 0x41044c
call fcn.0040f350
sub esp, 0xd4
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x10], esp
xor edi, edi
push edi
push 3
push 7
push 0x40000000
mov eax, ebx
lea esi, [ebp - 0x14]
mov dword [ebp - 4], edi
call fcn.00402f1a
push 0x55
lea esi, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.0040237c
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.00402edd
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x1c]
or eax, dword [ebp - 0x18]
je 0x401ac7
mov eax, dword [ebp - 0x28]
sub eax, dword [ebp - 0x2c]
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x50], eax
cmp edi, dword [ebp - 0x18]
ja 0x401aae
jb 0x401aa9
cmp eax, dword [ebp - 0x1c]
jae 0x401aae
lea eax, [ebp - 0x50]
jmp 0x401ab1
lea eax, [ebp - 0x1c]
mov esi, dword [eax]
push esi
push dword [ebp - 0x2c]
lea eax, [ebp - 0x14]
call fcn.00402e9a
sub dword [ebp - 0x1c], esi
sbb dword [ebp - 0x18], edi
jmp 0x401a89
cmp dword [ebp - 0x2c], edi
je 0x401ad5
push dword [ebp - 0x2c]
call fcn.00409b84
pop ecx
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], edi
cmp dword [ebp - 0x14], edi
je 0x401af2
cmp dword [ebp - 0x14], 0xffffffff
je 0x401af2
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 4], 0xffffffff
jmp 0x401b07
xor eax, eax
push 0x4138d0
lea esi, [ebp - 0x6c]
mov dword [ebp - 0x58], 7
mov dword [ebp - 0x5c], edi
mov word [ebp - 0x6c], ax
call fcn.00402de4
push 0x20
mov eax, esi
push eax
lea eax, [ebp - 0xdc]
push eax
push dword [ebp + 8]
mov dword [ebp - 4], 4
call fcn.004023c6
mov esi, eax
lea eax, [ebp - 0xa4]
push eax
mov eax, ebx
mov byte [ebp - 4], 5
call fcn.00405a77
lea ecx, [ebp - 0xc0]
push 0x5c
push ecx
mov byte [ebp - 4], 6
call fcn.004023a5
mov ecx, eax
mov eax, esi
lea edi, [ebp - 0x88]
mov byte [ebp - 4], 7
call fcn.00402486
push str..tmp
push eax
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 8
call fcn.004024cd
add esp, 0x14
push 1
xor edi, edi
lea esi, [ebp - 0x88]
call fcn.00402d33
push 1
lea esi, [ebp - 0xc0]
call fcn.00402d33
push 1
lea esi, [ebp - 0xa4]
call fcn.00402d33
push 1
lea esi, [ebp - 0xdc]
call fcn.00402d33
push 1
lea esi, [ebp - 0x6c]
mov byte [ebp - 4], 0xe
call fcn.00402d33
mov ecx, dword [ebp - 0x48]
push 8
pop edi
cmp dword [ebp - 0x34], edi
jae 0x401bdf
lea ecx, [ebp - 0x48]
cmp dword [ebx + 0x14], edi
jb 0x401be8
mov eax, dword [ebx]
jmp 0x401bea
mov eax, ebx
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
push edi
push ecx
push eax
call esi
test eax, eax
jne 0x401c05
push 0xffffffffffffffff
push eax
push ebx
lea eax, [ebp - 0x48]
call fcn.00402b4f
mov eax, dword [ebp - 0x48]
cmp dword [ebp - 0x34], edi
jae 0x401c10
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x401c4a
mov eax, dword [ebx + 0x10]
cmp dword [ebx + 0x14], edi
jb 0x401c25
mov ebx, dword [ebx]
mov edi, eax
mov eax, dword [ebp - 0x38]
push ebx
lea ecx, [ebp - 0x48]
call fcn.004027b7
test eax, eax
je 0x401c4a
cmp dword [ebp - 0x34], 8
mov eax, dword [ebp - 0x48]
jae 0x401c43
lea eax, [ebp - 0x48]
push 4
push 0
push eax
call esi
push 1
xor edi, edi
lea esi, [ebp - 0x48]
call fcn.00402d33
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 8