Function at 0x404470
Capabilities:
Check if file exists
Delete file
Read file on windows
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x44944f
mov eax, dword fs:[0]
push eax
sub esp, 0xc30
mov eax, dword [0x460df4]
xor eax, esp
mov dword [esp + 0xc2c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x460df4]
xor eax, esp
push eax
lea eax, [esp + 0xc44]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, dword [esi + 0x180]
mov dword [esi + 0x94], 2
call fcn.00407880
test eax, eax
mov ecx, dword [esi + 0x180]
je 0x404565
call fcn.00408960
mov eax, dword [esi + 0x1c]
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0x64
push 0x5402
push eax
call ebx
call fcn.00418b02
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x404504
push 0x80004005
call fcn.004010a0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x1c], edi
push 0x90
mov dword [esp + 0xc50], 0
call fcn.00418ab1
test eax, eax
je 0x404540
push 0x90
push eax
lea ecx, [esp + 0x24]
call fcn.00401540
mov edi, dword [esp + 0x1c]
mov ecx, dword [esi + 0x1c]
push 0
push edi
push 0x5400
push ecx
call ebx
mov edx, dword [esi + 0x1c]
push 0
push 0x44c8cf
push 0x5401
push edx
call ebx
jmp 0x404f48
call fcn.00407870
test eax, eax
jne 0x404602
call fcn.00418b02
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40458c
push 0x80004005
call fcn.004010a0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x1c], edi
push 0x71
mov dword [esp + 0xc50], 1
call fcn.00418ab1
test eax, eax
je 0x4045c2
push 0x71
push eax
lea ecx, [esp + 0x24]
call fcn.00401540
mov edi, dword [esp + 0x1c]
mov ecx, dword [esi + 0x1c]
push 0
push edi
push 0x5404
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
lea eax, [edi - 0x10]
mov dword [esp + 0xc4c], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4045fb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
jmp 0x404f71
cmp dword [esi + 0xd4], 0x10
jb 0x404613
mov eax, dword [esi + 0xc0]
jmp 0x404619
lea eax, [esi + 0xc0]
push 0
push 0
lea ecx, [esp + 0x448]
push ecx
lea edx, [esp + 0x84c]
push edx
push eax
call fcn.00432dec
add esp, 0x14
lea eax, [esp + 0x440]
push eax
lea ecx, [esp + 0x844]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
mov ecx, dword [esi + 0x180]
mov dword [esp + 0x1c], 0
call fcn.00407890
test eax, eax
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
jle 0x404c34
lea ecx, [ecx]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esi + 0x180]
push edx
call fcn.00407e00
lea ebx, [eax + 0x38]
mov eax, dword [ebx + 4]
test eax, eax
mov dword [esp + 0x34], ebx
je 0x4046a8
mov ecx, dword [ebx + 8]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
jne 0x4046ad
call fcn.004334ac
mov eax, dword [ebx + 4]
add eax, 0x1c
cmp dword [eax + 0x18], 0x10
jb 0x4046be
mov ecx, dword [eax + 4]
jmp 0x4046c1
lea ecx, [eax + 4]
lea edx, [esp + 0x440]
mov al, byte [ecx]
mov byte [edx], al
add ecx, 1
add edx, 1
test al, al
jne 0x4046c8
call fcn.00418b02
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x4044fa
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x24], eax
mov dword [esp + 0xc4c], 2
call fcn.00418b02
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x4044fa
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x20], eax
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x44]
push ecx
lea edx, [esp + 0x450]
push edx
mov byte [esp + 0xc60], 3
mov dword [esp + 0x4c], 3
call fcn.00422729
test eax, eax
je 0x404c61
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
push eax
lea ecx, [esp + 0x18]
call fcn.004017b0
mov ecx, dword [esp + 0x20]
xor eax, eax
test ecx, ecx
setne al
mov byte [esp + 0xc4c], 5
test eax, eax
je 0x4044fa
push ecx
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0043322f
add esp, 8
test eax, eax
sete al
test al, al
jne 0x404d30
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea edx, [esp + 0x840]
mov byte [esp + 0x40], al
push edx
lea eax, [esp + 0x44]
push eax
call edi
mov ecx, dword [esp + 0x14]
push ecx
lea edx, [esp + 0x44]
push edx
call edi
call fcn.00418b02
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x4044fa
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x28], eax
mov ecx, dword [esp + 0x14]
push ecx
lea edx, [esp + 0x2c]
push 0x85
push edx
mov byte [esp + 0xc58], 7
call fcn.00403490
mov eax, dword [esp + 0x34]
mov ecx, dword [esi + 0x1c]
add esp, 0xc
push 0
push eax
push 0x5400
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
lea edx, [esp + 0x40]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x404a1e
lea eax, [esp + 0x40]
push 0x44cb3c
push eax
call fcn.004339bc
mov edi, eax
add esp, 8
test edi, edi
jne 0x4048db
push 0x80
lea ecx, [esp + 0x44]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea edx, [esp + 0x40]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x404a1e
lea ecx, [esp + 0x40]
push ecx
push str.Can_not_delete:__s
lea edx, [esp + 0x448]
push edx
call fcn.00433f59
mov ecx, dword [esi + 0x1c]
add esp, 0xc
push 0
lea eax, [esp + 0x444]
push eax
push 0x5404
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [esp + 0x28]
call fcn.004014a0
lea ecx, [esp + 0x14]
call fcn.004014a0
lea ecx, [esp + 0x20]
call fcn.004014a0
lea ecx, [esp + 0x24]
call fcn.004014a0
xor al, al
jmp 0x404f71
push 2
push 0
push edi
call fcn.00433ed4
push edi
call fcn.00433ddf
mov ebp, eax
add esp, 0x10
cmp ebp, 4
ja 0x404953
push edi
call fcn.004336d5
add esp, 4
push 0x80
lea eax, [esp + 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [esp + 0x40]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x404a1e
lea edx, [esp + 0x40]
push edx
lea eax, [esp + 0x444]
push str.Can_not_delete:_s
push eax
call fcn.00433f59
mov edx, dword [esi + 0x1c]
add esp, 0xc
push 0
lea ecx, [esp + 0x444]
push ecx
push 0x5404
push edx
jmp 0x4048aa
push ebp
call fcn.0041688f
push 0
push 0
push edi
mov ebx, eax
call fcn.00433ed4
push edi
push ebp
push 1
push ebx
call fcn.00433c2c
push edi
call fcn.004336d5
lea edx, [esp + 0x3c]
push edx
lea eax, [ebp - 4]
push eax
push ebx
mov dword [esp + 0x48], 0
call fcn.004057d0
add esp, 0x30
test eax, eax
je 0x4049e4
push 0x80
lea ecx, [esp + 0x44]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea edx, [esp + 0x40]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x404a11
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x444]
push str.Can_not_delete:_s
push ecx
call fcn.00433f59
mov eax, dword [esi + 0x1c]
add esp, 0xc
push 0
lea edx, [esp + 0x444]
push edx
push 0x5404
push eax
jmp 0x4048aa
mov ebp, dword [ebx + ebp - 4]
cmp ebp, dword [esp + 0x18]
je 0x404a11
push 0x80
lea eax, [esp + 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [esp + 0x40]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x404dd4
push ebx
call fcn.00416894
mov ebx, dword [esp + 0x38]
add esp, 4
lea edx, [esp + 0x40]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x404afb
push eax
mov ecx, ebx
call fcn.004025d0
add eax, 0x1c
cmp dword [eax + 0x18], 0x10
jb 0x404a47
mov eax, dword [eax + 4]
jmp 0x404a4a
add eax, 4
mov edi, dword [esi + 0x9c]
mov ecx, dword [esi + 0x98]
mov edx, dword [ecx]
push 1
push edi
lea edi, [esp + 0x48]
push edi
push eax
mov eax, dword [edx + 0x10]
call eax
mov ecx, dword [esi + 0x98]
mov edx, dword [ecx]
mov eax, dword [edx + 0x18]
call eax
mov ecx, dword [esi + 0x98]
mov edx, dword [ecx]
mov eax, dword [edx + 0x20]
push 1
call eax
mov ecx, dword [esi + 0x98]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
and eax, 0xffff0000
cmp eax, 0x20000
jne 0x404de3
mov ecx, dword [esi + 0x98]
mov edx, dword [ecx]
mov eax, dword [edx + 0x14]
call eax
lea ecx, [esp + 0x30]
call fcn.00401470
mov ecx, dword [esp + 0x14]
push ecx
lea edx, [esp + 0x34]
push 0x8f
push edx
mov byte [esp + 0xc58], 9
call fcn.00403490
mov eax, dword [esp + 0x3c]
mov ecx, dword [esi + 0x1c]
add esp, 0xc
push 0
push eax
push 0x5400
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [esp + 0x30]
mov byte [esp + 0xc4c], 7
call fcn.004014a0
call fcn.00418b02
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x4044fa
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x2c], eax
mov edi, dword [esp + 0x1c]
lea ecx, [esp + 0x2c]
push ecx
mov ecx, dword [esi + 0x180]
lea edx, [esp + 0x44]
push edx
push edi
mov byte [esp + 0xc58], 0xa
call fcn.0040e640
test eax, eax
je 0x404e2c
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
mov byte [esp + 0xc4c], 7
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404b71
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
mov byte [esp + 0xc4c], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404b99
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0xc4c], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404bc1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0xc4c], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404be9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov dword [esp + 0xc4c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404c14
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esi + 0x180]
add edi, 1
mov dword [esp + 0x1c], edi
call fcn.00407890
cmp edi, eax
jl 0x404670
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [esi + 0x1c]
push 0
push 0x64
push 0x5402
push ecx
call ebx
call fcn.00418b02
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x404ee4
push 0x80004005
call fcn.004010a0
call fcn.00418b02
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x404c7b
push 0x80004005
call fcn.004010a0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x18], edi
push 0x72
mov byte [esp + 0xc50], 4
call fcn.00418ab1
test eax, eax
je 0x404cae
push 0x72
push eax
lea ecx, [esp + 0x20]
call fcn.00401540
mov edi, dword [esp + 0x18]
mov ecx, dword [esi + 0x1c]
push 0
push edi
push 0x5404
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
lea eax, [edi - 0x10]
mov byte [esp + 0xc4c], 3
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x404ce4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0xc4c], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404d0c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov dword [esp + 0xc4c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x4045ef
call fcn.00418b02
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x404d4a
push 0x80004005
call fcn.004010a0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x18], edi
push 0x72
mov byte [esp + 0xc50], 6
call fcn.00418ab1
test eax, eax
je 0x404d7d
push 0x72
push eax
lea ecx, [esp + 0x20]
call fcn.00401540
mov edi, dword [esp + 0x18]
mov ecx, dword [esi + 0x1c]
push 0
push edi
push 0x5404
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
lea eax, [edi - 0x10]
mov byte [esp + 0xc4c], 5
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x404db3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0xc4c], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x404cd8
lea ecx, [esp + 0x40]
push ecx
push str.Can_not_delete:_s
jmp 0x404887
lea ecx, [esp + 0x1c]
call fcn.00401470
mov edx, dword [esp + 0x14]
push edx
lea eax, [esp + 0x20]
push 0x73
push eax
mov byte [esp + 0xc58], 8
call fcn.00403490
mov ecx, dword [esp + 0x28]
mov edx, dword [esi + 0x1c]
add esp, 0xc
push 0
push ecx
push 0x5404
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [esp + 0x1c]
call fcn.004014a0
jmp 0x4048b0
mov ecx, dword [esi + 0x180]
call fcn.00408960
lea ecx, [esp + 0x18]
call fcn.00401470
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x14]
push eax
push ecx
lea edx, [esp + 0x20]
push 0x7a
push edx
mov byte [esp + 0xc5c], 0xb
call fcn.00403490
mov edi, dword [esp + 0x28]
mov eax, dword [esi + 0x1c]
add esp, 0x10
push 0
push edi
push 0x5404
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
lea eax, [edi - 0x10]
mov byte [esp + 0xc4c], 0xa
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404e9b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
mov byte [esp + 0xc4c], 7
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404ec3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
mov byte [esp + 0xc4c], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x404da7
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x18], edi
push 0x90
mov dword [esp + 0xc50], 0xc
call fcn.00418ab1
test eax, eax
je 0x404f20
push 0x90
push eax
lea ecx, [esp + 0x20]
call fcn.00401540
mov edi, dword [esp + 0x18]
mov ecx, dword [esi + 0x1c]
push 0
push edi
push 0x5400
push ecx
call ebx
mov edx, dword [esi + 0x1c]
push 0
push 0x44c8cf
push 0x5401
push edx
call ebx
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [edi - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov dword [esp + 0xc4c], 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404f6f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
mov ecx, dword [esp + 0xc44]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xc2c]
xor ecx, esp
call fcn.00432a13
add esp, 0xc3c
ret