Function at 0x42fc38
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x12
push 0
push 0
dec ecx
jne 0x42fc40
push ebx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x43010a
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x4157a0]
call fcn.00403fb0
mov dword [ebp - 0x20], eax
xor eax, eax
push ebp
push 0x4300c3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov edx, dword [eax]
call dword [edx + 0x14]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jle 0x42fd09
lea eax, [ebp - 0x10]
mov edx, dword [0x446b40]
mov edx, dword [edx]
call fcn.00404fdc
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x30], eax
mov byte [ebp - 0x2c], 0xb
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
mov edx, dword [0x446c84]
mov edx, dword [edx]
call fcn.00404fdc
mov eax, dword [ebp - 0x34]
xor ecx, ecx
pop edx
call fcn.0040b93c
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [ebp - 0xc]
dec eax
test eax, eax
jl 0x42fd09
inc eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 8], 0
lea ecx, [ebp - 0x38]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov edx, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc dword [ebp - 8]
dec dword [ebp - 0x24]
jne 0x42fce5
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
mov edx, dword [eax]
call dword [edx + 0x14]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jle 0x42fda1
lea eax, [ebp - 0x10]
mov edx, dword [0x446b40]
mov edx, dword [edx + 4]
call fcn.00404fdc
lea eax, [ebp - 0x3c]
push eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x30], eax
mov byte [ebp - 0x2c], 0xb
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x40]
mov edx, dword [0x446c84]
mov edx, dword [edx]
call fcn.00404fdc
mov eax, dword [ebp - 0x40]
xor ecx, ecx
pop edx
call fcn.0040b93c
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [ebp - 0xc]
dec eax
test eax, eax
jl 0x42fda1
inc eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 8], 0
lea ecx, [ebp - 0x44]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
mov edx, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov edx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc dword [ebp - 8]
dec dword [ebp - 0x24]
jne 0x42fd7d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov edx, dword [eax]
call dword [edx + 0x14]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jle 0x42fe39
lea eax, [ebp - 0x10]
mov edx, dword [0x446b40]
mov edx, dword [edx + 8]
call fcn.00404fdc
lea eax, [ebp - 0x48]
push eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x30], eax
mov byte [ebp - 0x2c], 0xb
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x4c]
mov edx, dword [0x446c84]
mov edx, dword [edx]
call fcn.00404fdc
mov eax, dword [ebp - 0x4c]
xor ecx, ecx
pop edx
call fcn.0040b93c
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [ebp - 0xc]
dec eax
test eax, eax
jl 0x42fe39
inc eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 8], 0
lea ecx, [ebp - 0x50]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov edx, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov edx, dword [ebp - 0x50]
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc dword [ebp - 8]
dec dword [ebp - 0x24]
jne 0x42fe15
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x40]
mov edx, dword [eax]
call dword [edx + 0x14]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jle 0x42fed1
lea eax, [ebp - 0x10]
mov edx, dword [0x446b40]
mov edx, dword [edx + 0xc]
call fcn.00404fdc
lea eax, [ebp - 0x54]
push eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x30], eax
mov byte [ebp - 0x2c], 0xb
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x58]
mov edx, dword [0x446c84]
mov edx, dword [edx]
call fcn.00404fdc
mov eax, dword [ebp - 0x58]
xor ecx, ecx
pop edx
call fcn.0040b93c
mov edx, dword [ebp - 0x54]
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [ebp - 0xc]
dec eax
test eax, eax
jl 0x42fed1
inc eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 8], 0
lea ecx, [ebp - 0x5c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x40]
mov edx, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov edx, dword [ebp - 0x5c]
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc dword [ebp - 8]
dec dword [ebp - 0x24]
jne 0x42fead
mov eax, dword [ebp - 0x20]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jle 0x4300ad
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov eax, dword [eax + 4]
mov dword [ebp - 0x74], eax
mov byte [ebp - 0x70], 0xb
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
mov dword [ebp - 0x6c], eax
mov byte [ebp - 0x68], 0xb
mov eax, dword [0x446a7c]
mov eax, dword [eax]
mov dword [ebp - 0x64], eax
mov byte [ebp - 0x60], 6
lea edx, [ebp - 0x74]
mov ecx, 2
mov eax, 0x430120
call fcn.0040b93c
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
call dword [ecx + 0x74]
cmp word [ebp + 0xa], 0
je 0x42ff4f
lea eax, [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
mov edx, 0x430134
call fcn.00405118
mov ecx, dword [ebp - 0x10]
xor edx, edx
mov eax, dword [ebp + 0xc]
call dword [ebp + 8]
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov eax, dword [eax + 4]
mov dword [ebp - 0x84], eax
mov byte [ebp - 0x80], 0xb
mov eax, dword [0x446a7c]
mov eax, dword [eax]
mov dword [ebp - 0x7c], eax
mov byte [ebp - 0x78], 6
lea edx, [ebp - 0x84]
mov ecx, 1
mov eax, 0x430164
call fcn.0040b93c
mov eax, dword [ebp - 0x18]
call fcn.0041b4e0
test al, al
je 0x4300ad
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
call dword [ecx + 0x74]
lea eax, [ebp - 0x88]
mov edx, dword [0x446c08]
mov edx, dword [edx]
call fcn.00404fdc
mov ecx, dword [ebp - 0x88]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov edx, dword [eax + 4]
lea eax, [ebp - 0x1c]
call fcn.00405118
mov eax, dword [ebp - 0x1c]
call fcn.0041b4e0
test al, al
je 0x43003b
mov eax, dword [ebp - 0x1c]
call fcn.00405290
push eax
call sub.kernel32.dll_DeleteFileA
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x43003b
cmp word [ebp + 0xa], 0
je 0x43003b
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0xc], eax
push 0x430178
push dword [ebp - 0x1c]
push 0x43018c
lea edx, [ebp - 0x8c]
mov eax, dword [ebp - 0xc]
call fcn.0040e8bc
push dword [ebp - 0x8c]
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00405194
mov ecx, dword [ebp - 0x10]
or edx, 0xffffffff
mov eax, dword [ebp + 0xc]
call dword [ebp + 8]
mov eax, dword [ebp - 0x1c]
call fcn.00405290
push eax
mov eax, dword [ebp - 0x18]
call fcn.00405290
push eax
call sub.kernel32.dll_MoveFileA
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x4300ad
cmp word [ebp + 0xa], 0
je 0x4300ad
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0xc], eax
push 0x4301a0
push dword [ebp - 0x18]
push 0x4301b4
push dword [ebp - 0x1c]
push 0x43018c
lea edx, [ebp - 0x90]
mov eax, dword [ebp - 0xc]
call fcn.0040e8bc
push dword [ebp - 0x90]
lea eax, [ebp - 0x10]
mov edx, 6
call fcn.00405194
mov ecx, dword [ebp - 0x10]
or edx, 0xffffffff
mov eax, dword [ebp + 0xc]
call dword [ebp + 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4300ca
mov eax, dword [ebp - 0x20]
call fcn.00403fe0
ret