Function at 0x4017a0
Capabilities:
Delete file
Get file attributes
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x432550
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push ebp
push esi
push edi
mov eax, dword [0x441618]
xor eax, esp
push eax
lea eax, [esp + 0x4c]
mov dword fs:[0], eax
lea ecx, [esp + 0x30]
mov dword [esp + 0x54], 0
call fcn.00405c18
mov byte [esp + 0x54], 1
call fcn.00404229
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4017f7
push 0x80004005
call fcn.00404110
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebp, [eax + 0x10]
mov dword [esp + 0x18], ebp
mov byte [esp + 0x54], 2
call fcn.00404229
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x401826
push 0x80004005
call fcn.00404110
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
mov byte [esp + 0x54], 3
mov ecx, dword [esp + 0x5c]
push ecx
lea edx, [esp + 0x20]
push str._s.
push edx
call fcn.00403cb0
mov eax, dword [esp + 0x28]
add esp, 0xc
push 0
push eax
lea ecx, [esp + 0x38]
call fcn.00405cd5
test eax, eax
je 0x401ae9
lea ebx, [ebx]
lea ecx, [esp + 0x30]
call fcn.004058fa
mov edx, dword [esp + 0x30]
mov dword [esp + 0x28], eax
mov eax, dword [edx + 0x38]
push 0x10
lea ecx, [esp + 0x34]
call eax
test eax, eax
je 0x4019a6
lea ecx, [esp + 0x30]
call fcn.00405bd9
test eax, eax
jne 0x401ade
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x34]
call fcn.00405f47
mov byte [esp + 0x54], 4
mov edx, dword [eax]
push edx
lea eax, [esp + 0x1c]
push 0x438758
push eax
call fcn.00403cb0
mov byte [esp + 0x60], 3
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
add esp, 0xc
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4018f2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esp + 0x30]
mov eax, dword [edx + 0x38]
push 1
lea ecx, [esp + 0x34]
call eax
mov ebp, dword [esp + 0x18]
test eax, eax
je 0x40191b
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
and eax, 0xfffffffe
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ecx
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
lea esi, [ebp - 0x10]
mov dword [esp + 0x30], esp
mov ebx, esp
call eax
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x401959
cmp eax, dword [esi]
jne 0x401959
mov edi, esi
mov edx, 1
lock xadd dword [ecx], edx
add edi, 0x10
mov dword [ebx], edi
call fcn.004017a0
add esp, 4
jmp 0x401ade
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
je 0x401ba6
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 4]
lea ecx, [eax + eax + 2]
push ecx
add esi, 0x10
lea edx, [eax + eax + 2]
push esi
push edx
lea eax, [edi + 0x10]
push eax
call fcn.0041e768
add edi, 0x10
add esp, 0x10
mov dword [ebx], edi
call fcn.004017a0
add esp, 4
jmp 0x401ade
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x34]
call fcn.00405f47
mov byte [esp + 0x54], 5
mov edx, dword [eax]
push edx
lea eax, [esp + 0x1c]
push 0x438758
push eax
call fcn.00403cb0
mov byte [esp + 0x60], 3
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
add esp, 0xc
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4019f3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esp + 0x30]
mov eax, dword [edx + 0x38]
push 1
lea ecx, [esp + 0x34]
call eax
mov ebp, dword [esp + 0x18]
test eax, eax
je 0x401a1c
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
and eax, 0xfffffffe
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
lea esi, [ebp - 0x10]
call eax
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x401a43
cmp eax, dword [esi]
jne 0x401a43
mov edi, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x401a7e
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
je 0x401ba6
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 4]
lea ecx, [eax + eax + 2]
push ecx
add esi, 0x10
lea edx, [eax + eax + 2]
push esi
push edx
lea eax, [edi + 0x10]
push eax
call fcn.0041e768
add esp, 0x10
lea esi, [edi + 0x10]
call fcn.00404229
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x4017ed
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, edi
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401ac2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401ade
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x28], 0
jne 0x401870
lea ecx, [esp + 0x30]
call fcn.00405814
mov eax, dword [esp + 0x5c]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x30], esp
mov esi, esp
push eax
call fcn.00403e10
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.00401c20
mov byte [esp + 0x58], 2
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401b3b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
mov byte [esp + 0x54], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401b5c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x54], 0
call fcn.00405c41
mov dword [esp + 0x54], 0xffffffff
mov eax, dword [esp + 0x5c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401b92
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret
call fcn.00404040
int3