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

Disassembly:
push 0xffffffffffffffff
push 0x4c85e0
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push ebp
push edi
mov eax, dword [0x4fcb54]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov eax, 1
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], eax
call fcn.00484590
xor ecx, ecx
xor edi, edi
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x41e07f
push 0x80004005
call fcn.004021e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x28], eax
push 0x4dfd54
lea ecx, [esp + 0x18]
mov dword [esp + 0x3c], edi
call fcn.00402520
mov byte [esp + 0x38], 1
mov eax, dword [esi + 0x2c]
xor ebx, ebx
cmp eax, edi
mov dword [esi + 0x44], eax
jle 0x41e334
jmp 0x41e0c0
cmp dword [esp + 0x10], 0
je 0x41e334
test edi, edi
jl 0x41e3c2
cmp ebx, dword [esi + 0x2c]
jge 0x41e3c2
mov eax, dword [esi + 0x28]
add eax, edi
test byte [eax + 8], 0x10
jne 0x41e325
cmp ebx, dword [esi + 0x2c]
jge 0x41e3c2
mov eax, dword [esi + 0x28]
add eax, edi
mov eax, dword [eax + 4]
push ecx
sub eax, 0x10
mov dword [esp + 0x28], esp
mov ebp, esp
push eax
call fcn.00402860
add eax, 0x10
mov dword [ebp], eax
mov edx, dword [esi]
mov eax, dword [edx + 4]
add esp, 4
mov ecx, esi
call eax
add dword [esi + 0x48], 1
cmp ebx, dword [esi + 0x2c]
mov ecx, dword [esi + 0x1c]
push ecx
jge 0x41e3c2
mov eax, dword [esi + 0x28]
add eax, edi
mov eax, dword [eax + 4]
push ecx
sub eax, 0x10
mov dword [esp + 0x2c], esp
mov ebp, esp
push eax
call fcn.00402860
add esp, 4
lea edx, [esp + 0x28]
add eax, 0x10
push edx
mov dword [ebp], eax
call fcn.0041ebb0
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x3c], 2
call fcn.004028f0
mov byte [esp + 0x38], 1
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 0x41e18e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x28], esp
mov ebp, esp
push eax
call fcn.00402860
add eax, 0x10
add esp, 4
mov ecx, esi
mov dword [ebp], eax
call fcn.0041e630
xor ebp, ebp
test eax, eax
jne 0x41e1c0
mov dword [esp + 0x18], ebp
mov dword [esp + 0x10], ebp
cmp dword [esi + 0x4c], ebp
je 0x41e1ca
call fcn.00469700
push esi
call fcn.0041e6d0
test eax, eax
je 0x41e1dc
mov dword [esp + 0x18], ebp
mov dword [esp + 0x10], ebp
cmp ebx, dword [esi + 0x2c]
jge 0x41e3c2
mov eax, dword [esi + 0x28]
add eax, edi
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp dword [esp + 0x10], ebp
je 0x41e325
cmp eax, 0xffffffff
jne 0x41e22a
mov dword [esp + 0x18], ebp
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push str.Delete_failed
mov dword [esp + 0x18], ebp
call fcn.00402520
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
jmp 0x41e325
test al, 6
je 0x41e240
cmp dword [esi + 0x10], ebp
jne 0x41e240
add dword [esi + 0x44], 0xffffffff
mov dword [esp + 0x10], ebp
jmp 0x41e325
cmp ebx, dword [esi + 0x2c]
jge 0x41e3c2
mov eax, dword [esi + 0x28]
add eax, edi
mov eax, dword [eax + 4]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x41e26a
cmp dword [esi + 0xc], ebp
mov dword [esp + 0x18], ebp
je 0x41e207
cmp ebx, dword [esi + 0x2c]
jge 0x41e3c2
mov eax, dword [esi + 0x28]
add eax, edi
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
jne 0x41e2dd
push str.Delete_failed
call fcn.00402520
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
cmp dword [esi + 0xc], ebp
mov dword [esp + 0x18], ebp
jne 0x41e2ad
mov dword [esp + 0x10], ebp
push 1
lea ebp, [esi + 0x20]
push 0x4e3474
mov ecx, ebp
call fcn.004107a0
cmp ebx, dword [esi + 0x2c]
jge 0x41e3c2
mov eax, dword [esi + 0x28]
add eax, edi
mov eax, dword [eax + 4]
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ecx, ebp
call fcn.004107a0
jmp 0x41e325
push str.Delete_successful
call fcn.00402520
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
cmp dword [esi + 0x14], ebp
je 0x41e325
cmp ebx, dword [esi + 0x2c]
jge 0x41e3c2
mov eax, dword [esi + 0x28]
add eax, edi
mov eax, dword [eax + 4]
push ecx
sub eax, 0x10
mov dword [esp + 0x28], esp
mov ebp, esp
push eax
call fcn.00402860
add esp, 4
add eax, 0x10
push esi
mov dword [ebp], eax
call fcn.0041e730
add ebx, 1
add edi, 0x40
cmp ebx, dword [esi + 0x2c]
jl 0x41e0c0
cmp dword [esi + 0x2c], 0
mov dword [esp + 0x1c], 0
jle 0x41e5b3
mov dword [esp + 0x20], 0
mov edi, edi
cmp dword [esp + 0x10], 0
je 0x41e5b3
mov ecx, dword [esp + 0x20]
test ecx, ecx
jl 0x41e3c2
mov edx, dword [esp + 0x1c]
cmp edx, dword [esi + 0x2c]
jge 0x41e3c2
mov eax, dword [esi + 0x28]
add eax, ecx
test byte [eax + 8], 0x10
je 0x41e59a
add dword [esi + 0x48], 1
mov eax, dword [esi + 0x1c]
mov ecx, edx
cmp ecx, dword [esi + 0x2c]
push eax
jge 0x41e3c2
mov eax, dword [esi + 0x28]
add eax, dword [esp + 0x24]
push ecx
mov edi, dword [eax + 4]
mov ecx, dword [edi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
sub edi, 0x10
mov dword [esp + 0x34], esp
mov ebx, esp
call eax
cmp dword [edi + 0xc], 0
lea edx, [edi + 0xc]
jl 0x41e3c7
cmp eax, dword [edi]
jne 0x41e3c7
mov ebp, edi
mov ecx, 1
lock xadd dword [edx], ecx
jmp 0x41e3fd
jmp fcn.00484c83
mov ecx, dword [edi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 1
push ecx
mov ecx, eax
call edx
mov ebp, eax
test ebp, ebp
je 0x41e624
mov eax, dword [edi + 4]
mov dword [ebp + 4], eax
mov eax, dword [edi + 4]
add eax, 1
push eax
add edi, 0x10
push edi
push eax
lea ecx, [ebp + 0x10]
push ecx
call fcn.004a2ec4
add esp, 0x10
lea edx, [esp + 0x2c]
add ebp, 0x10
push edx
mov dword [ebx], ebp
call fcn.0041ebb0
mov byte [esp + 0x38], 3
mov ecx, dword [eax]
mov edi, dword [esp + 0x14]
lea eax, [ecx - 0x10]
add edi, 0xfffffff0
cmp eax, edi
je 0x41e468
cmp dword [edi + 0xc], 0
lea ebx, [edi + 0xc]
jl 0x41e45a
mov edx, dword [eax]
cmp edx, dword [edi]
jne 0x41e45a
push eax
call fcn.00402860
mov ebp, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x41e451
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
add ebp, 0x10
mov dword [esp + 0x14], ebp
jmp 0x41e468
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x1c]
call fcn.00402430
mov byte [esp + 0x38], 1
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41e48d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0x14]
push ecx
mov ecx, dword [edi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
add edi, 0xfffffff0
mov dword [esp + 0x30], esp
mov ebx, esp
call eax
cmp dword [edi + 0xc], 0
lea ecx, [edi + 0xc]
jl 0x41e4bf
cmp eax, dword [edi]
jne 0x41e4bf
mov ebp, edi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x41e4f5
mov ecx, dword [edi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 1
push ecx
mov ecx, eax
call edx
mov ebp, eax
test ebp, ebp
je 0x41e624
mov eax, dword [edi + 4]
mov dword [ebp + 4], eax
mov eax, dword [edi + 4]
add eax, 1
push eax
add edi, 0x10
push edi
push eax
lea ecx, [ebp + 0x10]
push ecx
call fcn.004a2ec4
add esp, 0x10
add ebp, 0x10
mov ecx, esi
mov dword [ebx], ebp
call fcn.0041e630
xor ecx, ecx
cmp eax, ecx
jne 0x41e514
mov dword [esp + 0x18], ecx
mov dword [esp + 0x10], ecx
jmp 0x41e59a
mov edx, dword [esp + 0x1c]
cmp edx, dword [esi + 0x2c]
jge 0x41e3c2
mov eax, dword [esi + 0x28]
add eax, dword [esp + 0x20]
push ecx
mov edi, dword [eax + 4]
mov ecx, dword [edi - 0x10]
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
sub edi, 0x10
mov dword [esp + 0x30], esp
mov ebx, esp
call edx
cmp dword [edi + 0xc], 0
lea edx, [edi + 0xc]
jl 0x41e559
cmp eax, dword [edi]
jne 0x41e559
mov ebp, edi
mov eax, 1
lock xadd dword [edx], eax
jmp 0x41e58f
mov ecx, dword [edi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 1
push ecx
mov ecx, eax
call edx
mov ebp, eax
test ebp, ebp
je 0x41e624
mov eax, dword [edi + 4]
mov dword [ebp + 4], eax
mov eax, dword [edi + 4]
add eax, 1
push eax
add edi, 0x10
push edi
push eax
lea ecx, [ebp + 0x10]
push ecx
call fcn.004a2ec4
add esp, 0x10
add ebp, 0x10
push esi
mov dword [ebx], ebp
call fcn.0041e930
mov eax, dword [esp + 0x1c]
add dword [esp + 0x20], 0x40
add eax, 1
cmp eax, dword [esi + 0x2c]
mov dword [esp + 0x1c], eax
jl 0x41e350
lea edi, [esi + 0x20]
mov eax, 0x4e3474
call fcn.0040d410
mov byte [esp + 0x38], 0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41e5e5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x38], 0xffffffff
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41e60d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
add esp, 0x2c
ret
jmp fcn.00402330