Function at 0x402860
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x424227
mov eax, dword fs:[0]
push eax
sub esp, 0xf4
mov eax, dword [0x437008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, edx
mov dword [ebp - 0xfc], eax
mov edi, ecx
mov dword [ebp - 0x30], eax
lea ecx, [ebp - 0x34]
lea eax, [ebp + 8]
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x2c], eax
call fcn.00402f80
test eax, eax
jne 0x402989
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 5
jne 0x4029cf
mov edx, edi
lea ecx, [ebp - 0xf8]
call fcn.00409340
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, dword [ebp - 0xf8]
mov ebx, eax
test ecx, ecx
je 0x4028fc
lea eax, [ecx - 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
jne 0x4028fc
push eax
call fcn.00410cbd
add esp, 4
cmp ebx, 0xffffffff
je 0x4029cf
test bl, 1
je 0x4029cf
mov edx, edi
lea ecx, [ebp - 0xf8]
call fcn.00409340
push 0x80
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ecx, dword [ebp - 0xf8]
mov dword [ebp - 0xf4], eax
test ecx, ecx
je 0x40294e
add ecx, 0xfffffff4
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
jne 0x40294e
push ecx
call fcn.00410cbd
add esp, 4
cmp dword [ebp - 0xf4], 0
je 0x4029cf
lea ecx, [ebp - 0x34]
call fcn.00402f80
test eax, eax
je 0x4029a5
mov edx, dword [ebp - 0xfc]
lea ecx, [ebp - 0xf4]
call fcn.00409340
push ebx
push dword [eax]
mov eax, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
call eax
lea ecx, [ebp - 0xf4]
call fcn.00405180
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00410a2e
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, edi
lea ecx, [ebp - 0xf4]
mov esi, eax
call fcn.00409340
push ebx
push dword [eax]
mov eax, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
call eax
lea ecx, [ebp - 0xf4]
call fcn.00405180
xor eax, eax
lea ecx, [ebp - 0x70]
push 0x1a
push str.Cannot_move_file__x_to__y.
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], eax
call fcn.00406180
mov edx, edi
mov dword [ebp - 4], 0
lea ecx, [ebp - 0xbc]
call fcn.004019e0
sub esp, 0xc
mov byte [ebp - 4], 1
mov ecx, eax
call fcn.004068c0
mov edx, eax
xor eax, eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov ecx, dword [edx]
mov dword [ebp - 0x58], ecx
mov eax, dword [edx + 4]
mov dword [ebp - 0x54], eax
mov eax, dword [edx + 8]
mov dword [ebp - 0x50], eax
mov eax, dword [edx + 0xc]
mov dword [ebp - 0x4c], eax
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x48], eax
mov eax, dword [edx + 0x14]
mov dword [ebp - 0x44], eax
mov dword [edx + 0x10], 0
lea ecx, [ebp - 0xa0]
mov dword [edx + 0x14], 7
xor eax, eax
mov word [edx], ax
mov edx, dword [ebp - 0xfc]
mov byte [ebp - 4], 2
call fcn.004019e0
sub esp, 0xc
mov byte [ebp - 4], 3
mov ecx, eax
call fcn.004068c0
mov edx, eax
xor eax, eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov ecx, dword [edx]
mov dword [ebp - 0x40], ecx
mov eax, dword [edx + 4]
mov dword [ebp - 0x3c], eax
mov eax, dword [edx + 8]
mov dword [ebp - 0x38], eax
mov eax, dword [edx + 0xc]
mov dword [ebp - 0x34], eax
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x30], eax
mov eax, dword [edx + 0x14]
mov dword [ebp - 0x2c], eax
mov dword [edx + 0x10], 0
xor eax, eax
mov dword [edx + 0x14], 7
mov word [edx], ax
mov byte [ebp - 4], 4
lea edx, [ebp - 0x70]
lea ecx, [ebp - 0x88]
call fcn.00401550
push dword [ebp - 0x100]
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 5
push eax
mov edx, 0x42c914
lea ecx, [ebp - 0x88]
call fcn.00407520
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 7
mov word [ebp - 0x88], ax
push dword [ebp - 0x100]
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 6
push eax
mov edx, 0x42cb80
lea ecx, [ebp - 0x28]
call fcn.00407520
mov eax, dword [ebp - 0x28]
add esp, 0x10
mov dword [ebp - 0xd4], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0xd0], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0xcc], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0xc8], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0xc4], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xc0], eax
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x2c]
cmp ecx, 8
jb 0x402be6
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x402bdc
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402f1b
push ecx
push edx
call fcn.00410cc2
add esp, 8
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x8c]
cmp ecx, 8
jb 0x402c3e
mov edx, dword [ebp - 0xa0]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x402c34
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402f1b
push ecx
push edx
call fcn.00410cc2
add esp, 8
xor eax, eax
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x8c], 7
mov word [ebp - 0xa0], ax
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x44]
cmp ecx, 8
jb 0x402c99
mov edx, dword [ebp - 0x58]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x402c8f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402f1b
push ecx
push edx
call fcn.00410cc2
add esp, 8
xor eax, eax
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0xa8]
cmp ecx, 8
jb 0x402cf1
mov edx, dword [ebp - 0xbc]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x402ce7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402f1b
push ecx
push edx
call fcn.00410cc2
add esp, 8
xor eax, eax
mov dword [ebp - 0xac], 0
mov dword [ebp - 0xa8], 7
mov word [ebp - 0xbc], ax
mov byte [ebp - 4], 0xc
mov ecx, dword [ebp - 0x5c]
cmp ecx, 8
jb 0x402d4c
mov edx, dword [ebp - 0x70]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x402d42
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402f1b
push ecx
push edx
call fcn.00410cc2
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0xa
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov eax, dword [str.MoveFileEx]
mov dword [ebp - 0x28], eax
mov eax, dword [0x42cbcc]
mov dword [ebp - 0x24], eax
mov ax, word [0x42cbd0]
mov dword [ebp - 0x14], 0xf
mov word [ebp - 0x20], ax
push esi
lea edx, [ebp - 0x28]
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0xbc]
call fcn.0040c750
add esp, 4
mov byte [ebp - 4], 0xf
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
jb 0x402dca
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x402dc0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402f20
push ecx
push edx
call fcn.00410cc2
add esp, 8
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
cmp esi, 0x20
je 0x402dea
cmp esi, 0x21
jne 0x402ed9
push ecx
mov edx, edi
lea ecx, [ebp - 0xa0]
call fcn.00404610
add esp, 4
mov byte [ebp - 4], 0x10
cmp dword [ebp - 0x90], 0
je 0x402eca
xor eax, eax
lea ecx, [ebp - 0x70]
push 0x26
push str.The_file_is_locked_by_another_process:
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], eax
call fcn.00406180
lea edx, [ebp - 0x70]
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x40]
call fcn.00401550
push 0xa
mov edx, eax
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x58]
call fcn.00405470
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 0x13
push ecx
mov edx, eax
lea ecx, [ebp - 0x88]
call fcn.004053a0
add esp, 8
lea ecx, [ebp - 0xbc]
push eax
call fcn.00404ce0
lea ecx, [ebp - 0x88]
call fcn.00401aa0
lea ecx, [ebp - 0x58]
call fcn.00401aa0
lea ecx, [ebp - 0x40]
call fcn.00401aa0
mov byte [ebp - 4], 0x10
mov ecx, dword [ebp - 0x5c]
cmp ecx, 8
jb 0x402eca
mov edx, dword [ebp - 0x70]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x402ec0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402f25
push ecx
push edx
call fcn.00410cc2
add esp, 8
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 0xf
call fcn.00401aa0
cmp esi, 0x11
je 0x402f2a
cmp byte [ebp + 8], 0
jne 0x402ef1
cmp esi, 0xb7
je 0x402f54
cmp esi, 0x50
je 0x402f54
lea eax, [ebp - 0xbc]
push eax
lea eax, [ebp - 0xd4]
push eax
lea ecx, [ebp - 0xf0]
call fcn.004016e0
push 0x435ff8
lea eax, [ebp - 0xf0]
push eax
call fcn.00413c3e
call fcn.004159de
call fcn.004159de
call fcn.004159de
lea eax, [ebp - 0xbc]
push eax
lea eax, [ebp - 0xd4]
push eax
lea ecx, [ebp - 0xa4]
call fcn.004018f0
push 0x435edc
lea eax, [ebp - 0xa4]
push eax
call fcn.00413c3e
lea eax, [ebp - 0xbc]
push eax
lea eax, [ebp - 0xd4]
push eax
lea ecx, [ebp - 0xa4]
call fcn.004018c0
push 0x435f30
lea eax, [ebp - 0xa4]
push eax
call fcn.00413c3e
int3