Function at 0x41bde0
Capabilities:
Check if file exists
Delete file
Move file
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4f358b
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x52a6ec]
xor eax, esp
mov dword [esp + 0x68], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x52a6ec]
xor eax, esp
push eax
lea eax, [esp + 0x80]
mov dword fs:[0], eax
mov eax, dword [esp + 0x90]
mov edi, ecx
lea ecx, [esp + 0x14]
push ecx
mov ecx, 0x506c24
mov dword [esp + 0x38], edi
mov dword [esp + 0x2c], eax
call fcn.00405cc0
xor ebp, ebp
mov dword [esp + 0x88], ebp
mov ecx, dword [edi]
cmp ecx, ebp
je 0x41be52
mov edx, dword [ecx]
mov edx, dword [edx + 4]
lea eax, [esp + 0x14]
push eax
push 7
call edx
mov dword [esp + 0x88], 0xffffffff
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 0x41be7d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0xf04
call fcn.004c83da
add esp, 4
mov dword [esp + 0x30], eax
mov dword [esp + 0x88], 1
cmp eax, ebp
je 0x41bec2
push fcn.0041c370
push 0x41c310
push 0x40
lea esi, [eax + 4]
push 0x3c
push esi
mov dword [eax], 0x40
call fcn.004cc4e8
mov ebx, esi
mov dword [esp + 0x18], ebx
jmp 0x41bec8
mov dword [esp + 0x18], ebp
mov ebx, ebp
mov dword [esp + 0x3c], ebx
push 0xf00
push ebp
push ebx
mov dword [esp + 0x94], 2
call fcn.004cf830
lea ecx, [ebx + 0x20]
mov dword [esp + 0x20], ebp
add esp, 0xc
mov dword [esp + 0x24], ecx
mov ebp, 0x5052a0
jmp 0x41bf04
mov edi, dword [esp + 0x34]
cmp byte [edi + 0xd], 0
je 0x41bf14
cmp byte [ebp - 4], 0
jne 0x41c19f
cmp dword [ebp - 8], 0
je 0x41c19f
mov ecx, dword [ebp]
test ecx, ecx
jne 0x41bf28
mov ecx, dword [ebp - 0x10]
lea edx, [esp + 0x2c]
push edx
call fcn.00405cc0
lea eax, [esp + 0x2c]
mov byte [esp + 0x88], 3
mov ecx, dword [ebp - 0xc]
push eax
push ecx
lea edx, [esp + 0x38]
push edx
call fcn.00417ef0
add esp, 0xc
mov byte [esp + 0x88], 4
mov eax, dword [eax]
sub eax, 0x10
call fcn.00406260
add eax, 0x10
mov dword [esp + 0x20], eax
mov byte [esp + 0x88], 6
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41bf91
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x88], 7
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41bfb9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x3c]
push edx
mov ebx, str..new
call fcn.00419130
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x28]
push ecx
mov ebx, str..org
mov byte [esp + 0x98], 8
call fcn.00419130
add esp, 0x10
mov byte [esp + 0x88], 9
mov edx, dword [esp + 0x1c]
push 0x80
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [ebp - 8]
xor edi, edi
xor ecx, ecx
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x38]
mov word [esp + 0x44], cx
mov ebx, 7
mov ecx, eax
mov dword [esp + 0x58], ebx
mov dword [esp + 0x54], edi
lea edx, [ecx + 2]
lea ebx, [ebx]
mov si, word [ecx]
add ecx, 2
cmp si, di
jne 0x41c030
sub ecx, edx
sar ecx, 1
push ecx
lea esi, [esp + 0x48]
call fcn.00404e70
mov byte [esp + 0x88], 0xa
mov eax, dword [esp + 0x1c]
xor edx, edx
mov ecx, eax
mov word [esp + 0x60], dx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x70], edi
lea edx, [ecx + 2]
lea esp, [esp]
mov si, word [ecx]
add ecx, 2
cmp si, di
jne 0x41c070
sub ecx, edx
sar ecx, 1
push ecx
lea esi, [esp + 0x64]
call fcn.00404e70
mov esi, dword [esp + 0x24]
mov byte [esp + 0x88], 0xb
mov eax, dword [esp + 0x40]
mov dword [esi - 0x20], eax
push edi
lea edx, [esi - 0x1c]
or eax, 0xffffffff
lea ecx, [esp + 0x48]
call fcn.004068f0
push edi
or eax, 0xffffffff
lea ecx, [esp + 0x64]
mov edx, esi
call fcn.004068f0
inc dword [esp + 0x14]
add esi, 0x3c
mov dword [esp + 0x24], esi
mov ebx, 8
mov byte [esp + 0x88], 0xc
cmp dword [esp + 0x74], ebx
jb 0x41c0e6
mov ecx, dword [esp + 0x60]
push ecx
call fcn.004c9387
add esp, 4
xor edx, edx
mov esi, 7
mov byte [esp + 0x88], 9
mov dword [esp + 0x74], esi
mov dword [esp + 0x70], edi
mov word [esp + 0x60], dx
cmp dword [esp + 0x58], ebx
jb 0x41c115
mov eax, dword [esp + 0x44]
push eax
call fcn.004c9387
add esp, 4
mov byte [esp + 0x88], bl
mov eax, dword [esp + 0x1c]
xor ecx, ecx
add eax, 0xfffffff0
mov word [esp + 0x44], cx
mov dword [esp + 0x58], esi
mov dword [esp + 0x54], edi
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41c14b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x88], 7
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41c173
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x88], 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 0x41c19b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [esp + 0x18]
add ebp, 0x18
cmp ebp, 0x5058a0
jl 0x41bf00
mov ecx, dword [esp + 0x14]
push ecx
mov ecx, ebx
call fcn.00420830
add esp, 4
test al, al
jne 0x41c1f7
mov dword [esp + 0x88], 0xffffffff
test ebx, ebx
je 0x41c1ed
mov edx, dword [ebx - 4]
push fcn.0041c370
lea esi, [ebx - 4]
push edx
push 0x3c
push ebx
call fcn.004c9e70
push esi
call fcn.004c9b0b
add esp, 4
mov eax, 0xc
jmp 0x41c2d5
mov eax, dword [esp + 0x28]
mov esi, dword [eax]
mov eax, dword [eax + 4]
sub eax, esi
sar eax, 4
xor ebp, ebp
test eax, eax
je 0x41c2a7
xor edi, edi
mov ecx, dword [edi + esi + 8]
xor eax, eax
test ecx, ecx
setne al
test eax, eax
je 0x41c2f9
mov eax, dword [edi + esi + 4]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41c24e
test dx, dx
je 0x41c24a
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41c24e
add eax, 4
add ecx, 4
test dx, dx
jne 0x41c228
xor eax, eax
jmp 0x41c253
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
setne al
test al, al
je 0x41c28d
mov eax, dword [edi + esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x41c28d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x41c28d
mov esi, dword [edi + esi + 4]
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov ecx, dword [esp + 0x34]
mov byte [ecx + 0xc], 1
mov eax, dword [esp + 0x28]
mov esi, dword [eax]
mov edx, dword [eax + 4]
sub edx, esi
inc ebp
sar edx, 4
add edi, 0x10
cmp ebp, edx
jb 0x41c211
mov dword [esp + 0x88], 0xffffffff
test ebx, ebx
je 0x41c2d3
mov eax, dword [ebx - 4]
push fcn.0041c370
lea esi, [ebx - 4]
push eax
push 0x3c
push ebx
call fcn.004c9e70
push esi
call fcn.004c9b0b
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.004c9392
add esp, 0x78
ret 4
push 0x80004005
call fcn.004065a0
int3