Function at 0x40449f
Capabilities:
Check if file exists
Delete file
Get disk information
Get file attributes
Set file attributes

Disassembly:
sub esp, 0x20
mov eax, dword [0x40e678]
push ebx
push ebp
mov dword [esp + 0x10], edx
push esi
mov dword [eax + 0x44], ecx
xor ebx, ebx
push edi
mov dl, 0x72
lea ecx, [eax + 0x13b6c]
mov dword [eax + 0x2c], ebx
call fcn.00401e68
mov ecx, dword [0x40e678]
cmp eax, 0xffffffff
mov dword [ecx + 0x48], eax
jne 0x4044e2
add ecx, 0x13b6c
call fcn.00404364
jmp 0x404f0d
push 2
mov ecx, eax
pop edx
push ebx
push ebx
call fcn.00401be0
and eax, edx
cmp eax, 0xffffffff
je 0x404526
mov eax, dword [0x40e678]
mov ecx, dword [eax + 0x48]
call fcn.00401ec7
mov ecx, dword [0x40e678]
push ebx
mov dword [ecx + 0x20], eax
mov dword [ecx + 0x24], edx
push dword [ecx + 0x356b]
mov ecx, dword [ecx + 0x48]
xor edx, edx
call fcn.00401be0
and eax, edx
cmp eax, 0xffffffff
jne 0x404530
call fcn.00402e3c
jmp 0x404f0d
mov eax, dword [0x40e678]
mov ecx, dword [eax + 0x48]
call fcn.00401ec7
mov ecx, dword [0x40e678]
cmp edx, dword [ecx + 0x24]
jl 0x404559
jg 0x40454f
cmp eax, dword [ecx + 0x20]
jbe 0x404559
call fcn.004042f6
jmp 0x404f0d
add ecx, 0x13e74
push 4
lea eax, [esp + 0x18]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
cmp byte [esp + 0x14], bl
mov byte [esp + 0x16], 0x5c
mov byte [esp + 0x17], bl
mov dword [esp + 0x1c], ebx
je 0x40458d
cmp byte [esp + 0x15], 0x3a
jne 0x40458d
lea eax, [esp + 0x14]
jmp 0x40458f
xor eax, eax
push ebx
lea ecx, [esp + 0x28]
push ebx
push ecx
lea ecx, [esp + 0x28]
push ecx
push ebx
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov eax, dword [0x40e678]
test byte [eax + 0x37c4], 4
je 0x4045c4
push dword [eax + 0x48]
lea ecx, [eax + 0x3564]
push 2
pop edx
call fcn.00401ee2
mov cx, 0xa001
call fcn.00402b6d
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcmpA]
mov word [0x40e6c4], bx
mov edi, 0x104
mov ecx, dword [0x40e678]
mov dword [ecx + 0x37c6], ebx
push dword [ecx + 0x48]
lea ecx, [esp + 0x16]
push 2
pop edx
call fcn.00401ee2
cmp eax, 2
jne 0x404e0d
cmp word [esp + 0x12], bx
je 0x404e0d
movzx eax, word [esp + 0x12]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ecx, dword [0x40e678]
cmp eax, ebx
mov dword [ecx + 0x37c6], eax
je 0x404d01
mov dx, word [esp + 0x12]
push dword [ecx + 0x48]
mov word [eax], dx
lea ecx, [eax + 2]
movzx edx, word [esp + 0x16]
dec edx
dec edx
call fcn.00401ee2
movzx ecx, word [esp + 0x12]
dec ecx
dec ecx
cmp eax, ecx
jne 0x404e08
mov eax, dword [0x40e678]
mov eax, dword [eax + 0x37c6]
cmp word [eax + 2], 0x6c2d
jne 0x404e08
cmp byte [eax + 4], 0x68
jne 0x404e08
cmp byte [eax + 6], 0x2d
jne 0x404e08
movzx eax, byte [eax + 5]
push eax
push str.04567d
call fcn.00405bc0
pop ecx
test eax, eax
pop ecx
je 0x404e08
mov eax, dword [0x40e678]
mov ecx, dword [eax + 0x37c6]
lea edx, [eax + 0x37da]
lea esi, [ecx + 0x18]
mov ecx, dword [ecx + 0xb]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ebx
mov ecx, dword [eax + 0x37c6]
mov ecx, dword [ecx + 7]
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ebx
mov dword [eax + 0x50], ebx
mov word [eax + 0x368], bx
mov ecx, dword [eax + 0x37c6]
movzx cx, byte [ecx + 0x13]
mov word [eax + 0x366], cx
mov eax, dword [eax + 0x37c6]
mov ecx, dword [eax + 0xf]
call fcn.004043a4
mov eax, dword [0x40e678]
lea edx, [eax + 0x37ca]
lea ecx, [eax + 0x37da]
call fcn.0040383e
mov eax, dword [0x40e678]
lea edx, [eax + 0x37d2]
lea ecx, [eax + 0x37da]
call fcn.0040383e
mov ax, word [esi]
cmp ax, bx
je 0x40475f
mov ecx, dword [0x40e678]
movzx edi, ax
mov eax, esi
sub eax, dword [ecx + 0x37c6]
add eax, edi
cmp eax, 0x1000
jg 0x404e08
mov edx, edi
lea ecx, [esi + 2]
call fcn.00403849
mov ax, word [esi + edi]
add esi, edi
cmp ax, bx
jne 0x404727
mov edi, 0x104
mov eax, dword [0x40e678]
mov ecx, dword [eax + 0x50]
cmp ecx, ebx
je 0x404e08
mov word [ecx], bx
mov word [eax + 0x36c], bx
movzx edx, word [esp + 0x12]
mov ecx, dword [eax + 0x37c6]
call fcn.00402bb9
mov ecx, dword [0x40e678]
cmp ax, word [ecx + 0x364]
jne 0x404e08
mov ax, word [ecx + 0x368]
cmp ax, bx
je 0x4047ca
cmp ax, di
jae 0x4047b3
movzx eax, ax
inc eax
jmp 0x4047b5
mov eax, edi
mov edx, dword [ecx + 0x54]
push eax
add ecx, 0x137ea
call fcn.00401f89
mov ecx, dword [0x40e678]
movzx eax, word [ecx + 0x368]
movzx edx, word [ecx + 0x36a]
mov esi, edi
sub esi, eax
cmp edx, esi
jge 0x4047e3
lea esi, [edx + 1]
mov edx, dword [ecx + 0x58]
push esi
lea ecx, [ecx + eax + 0x137ea]
call fcn.00401f89
mov eax, dword [0x40e678]
mov dl, 0x2f
lea ecx, [eax + 0x137ea]
call fcn.0040274f
cmp dword [esp + 0x18], 1
jne 0x404896
mov eax, dword [0x40e678]
mov ecx, dword [eax + 0x37c6]
mov cx, word [ecx + 0x15]
xor word [0x40e6c4], cx
cmp dword [eax + 0x40], ebx
je 0x404846
add eax, 0x137ea
push 0x40b91c
push eax
call ebp
test eax, eax
je 0x404857
mov eax, dword [0x40e678]
cmp dword [eax + 0x40], ebx
jne 0x40486b
add eax, 0x137ea
push 0x40b918
push eax
call ebp
test eax, eax
jne 0x404866
mov ecx, dword [0x40e678]
mov byte [ecx + 0x356a], 1
jmp 0x40488d
mov eax, dword [0x40e678]
add eax, 0x137ea
push 0x40b914
push eax
call ebp
test eax, eax
jne 0x404cef
mov ecx, dword [0x40e678]
mov byte [ecx + 0x356a], 2
or dword [ecx + 0x4c], 0xffffffff
jmp 0x404b2c
mov eax, dword [0x40e678]
push 0x40b91c
add eax, 0x137ea
push eax
call ebp
test eax, eax
je 0x404cef
mov eax, dword [0x40e678]
push 0x40b918
add eax, 0x137ea
push eax
call ebp
test eax, eax
je 0x404cef
mov eax, dword [0x40e678]
push 0x40b914
add eax, 0x137ea
push eax
call ebp
test eax, eax
je 0x404cef
mov eax, dword [0x40e678]
push edi
mov edx, 0x204
lea ecx, [eax + 0x137ea]
push ecx
lea ecx, [eax + 0x13e74]
push ecx
lea ecx, [eax + 0x13c70]
call fcn.004029c4
mov eax, dword [0x40e678]
mov dl, 0x2f
lea ecx, [eax + 0x13c70]
call fcn.0040274f
mov eax, dword [0x40e678]
cmp byte [eax + 0x13c70], bl
lea ecx, [eax + 0x13c70]
je 0x40493c
cmp byte [eax + 0x13c71], 0x3a
jne 0x40493c
lea ecx, [eax + 0x13c72]
xor eax, eax
cmp dword [esp + 0x1c], 0xff
mov edx, 0x202
sete al
push eax
call fcn.00403b06
mov eax, dword [0x40e678]
push 0x20
lea edx, [eax + 0x13c70]
lea ecx, [eax + 0x17f74]
call fcn.00402aad
mov eax, dword [0x40e678]
lea ecx, [eax + 0x17f74]
push ecx
push 0x65
push dword [eax + 0x44]
call dword [0x40e70c]
push ebx
push ebx
push ebx
push ebx
call fcn.00403539
mov eax, dword [0x40e678]
lea ecx, [eax + 0x13c70]
call fcn.004027a2
mov eax, dword [0x40e678]
lea ecx, [eax + 0x13c70]
call fcn.00402647
mov eax, dword [0x40e678]
lea edx, [eax + 0x37e2]
lea ecx, [eax + 0x37da]
call fcn.0040383e
cmp dword [0x40e690], ebx
jne 0x4049da
mov eax, dword [0x40e678]
lea ecx, [eax + 0x37e2]
call fcn.00403954
mov ecx, dword [0x40e678]
mov eax, dword [ecx + 0x37c6]
cmp byte [eax + 5], 0x64
je 0x404ad3
add ecx, 0x13c70
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
mov dword [esp + 0x20], eax
je 0x404acd
mov eax, dword [0x40e678]
lea edx, [esp + 0x28]
lea ecx, [eax + 0x13c70]
call fcn.004043df
mov eax, dword [0x40e678]
push dword [eax + 0x7c]
lea ecx, [eax + 0x13c70]
add eax, 0x17f74
push ecx
push str.__s___s
push eax
call fcn.00405c80
add esp, 0x10
cmp dword [0x40e6b0], ebx
je 0x404a66
mov eax, dword [0x40e678]
add eax, 0x37e2
push eax
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
jl 0x404a66
push 7
jmp 0x404a70
cmp dword [0x40e5e8], ebx
je 0x404a73
push 6
pop eax
jmp 0x404a94
mov eax, dword [0x40e678]
push 0x2023
lea ecx, [eax + 0x19864]
push ecx
lea ecx, [eax + 0x17f74]
push ecx
push dword [eax + 0x44]
call dword [0x40e680]
cmp eax, 2
je 0x404d2e
cmp eax, 7
je 0x404cef
mov ecx, dword [0x40e678]
cmp byte [ecx + 0x37c5], bl
je 0x404ad3
test byte [esp + 0x20], 0x10
jne 0x404ad3
add ecx, 0x13c70
push 0x80
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov ecx, dword [0x40e678]
mov eax, dword [ecx + 0x37c6]
cmp byte [eax + 5], 0x64
je 0x404b00
mov dl, 0x77
add ecx, 0x13c70
call fcn.00401e68
mov ecx, dword [0x40e678]
cmp eax, 0xffffffff
mov dword [ecx + 0x4c], eax
je 0x404d40
jmp 0x404b2c
cmp dword [0x40e690], 1
jle 0x404b2c
push ebx
push 0x2000080
push 3
push ebx
push ebx
mov edx, 0x40000000
add ecx, 0x13c70
call fcn.0040195e
mov ecx, dword [0x40e678]
mov dword [ecx + 0x4c], eax
mov word [ecx + 0x36c], bx
or dword [ecx], 0xffffffff
mov eax, dword [ecx + 0x37c6]
mov dl, byte [eax + 5]
cmp dl, 0x30
jne 0x404b4f
push ebx
push dword [eax + 0xb]
call fcn.00403799
jmp 0x404b59
cmp dl, 0x64
je 0x404b5f
call fcn.004035c8
mov ecx, dword [0x40e678]
cmp dword [esp + 0x18], 1
jne 0x404bc0
cmp dword [ecx + 0x2c], ebx
jne 0x404d50
mov al, byte [ecx + 0x356a]
cmp al, 1
jne 0x404ba6
lea eax, [ecx + 0x19864]
push 0x2024
push eax
lea eax, [ecx + 0x17f74]
push eax
push dword [ecx + 0x44]
call dword [0x40e680]
mov ecx, dword [0x40e678]
cmp eax, 7
je 0x404d34
jmp 0x404bb5
cmp al, 2
jne 0x404bb5
call fcn.00403ee7
mov ecx, dword [0x40e678]
mov byte [ecx + 0x356a], bl
jmp 0x4045e5
cmp dword [ecx + 0x2c], ebx
je 0x404bcf
cmp dword [ecx + 0x4c], 0xffffffff
jne 0x404d5b
cmp dword [0x40e690], ebx
jne 0x404c08
add ecx, 0x37ca
call fcn.00403954
mov eax, dword [0x40e678]
lea ecx, [eax + 0x37da]
call fcn.00403954
mov eax, dword [0x40e678]
lea ecx, [eax + 0x37d2]
call fcn.00403954
mov ecx, dword [0x40e678]
mov eax, dword [ecx + 0x37c6]
cmp byte [eax + 5], 0x64
je 0x404c81
mov ecx, dword [ecx + 0x4c]
call fcn.004019a5
test eax, eax
je 0x404e01
mov eax, dword [0x40e678]
lea ecx, [eax + 0x37da]
lea edx, [eax + 0x37ca]
push ecx
lea ecx, [eax + 0x37d2]
push ecx
mov ecx, dword [eax + 0x4c]
call fcn.00401e3e
test eax, eax
je 0x404e01
mov eax, dword [0x40e678]
mov ecx, dword [eax + 0x4c]
call fcn.00401ea6
test eax, eax
jne 0x404d9c
mov ecx, dword [0x40e678]
mov eax, dword [ecx + 0x37c6]
mov dx, word [ecx + 0x36c]
cmp dx, word [eax + 0x15]
jne 0x404dcf
jmp 0x404cc9
cmp dword [0x40e690], 1
jle 0x404cc9
lea eax, [ecx + 0x37da]
lea edx, [ecx + 0x37ca]
push eax
lea eax, [ecx + 0x37d2]
mov ecx, dword [ecx + 0x4c]
push eax
call fcn.00401e3e
test eax, eax
je 0x404e01
mov eax, dword [0x40e678]
mov ecx, dword [eax + 0x4c]
call fcn.00401988
test eax, eax
je 0x404dad
mov ecx, dword [0x40e678]
cmp byte [ecx + 0x37c5], bl
je 0x4045e5
movzx eax, word [ecx + 0x366]
add ecx, 0x13c70
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
jmp 0x4045df
call fcn.00404318
test eax, eax
je 0x404e0d
jmp 0x4045df
lea eax, [ecx + 0x19864]
push 0x2010
push eax
push dword [ecx + 0x88]
push dword [ecx + 0x44]
call dword [0x40e680]
mov ecx, dword [0x40e678]
mov dword [ecx + 0x2c], 0x801d
jmp 0x404e13
mov ecx, dword [0x40e678]
mov dword [ecx + 0x2c], 0x8020
jmp 0x404e13
add ecx, 0x13c70
call fcn.00404364
jmp 0x404e0d
mov byte [ecx + 0x356a], bl
jmp 0x404e13
mov eax, dword [ecx + 0x37c6]
cmp byte [eax + 5], 0x64
je 0x404d85
mov ecx, dword [ecx + 0x4c]
call fcn.00401ea6
mov eax, dword [0x40e678]
add eax, 0x13c70
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x404e0d
cmp dword [0x40e690], 1
jle 0x404e13
mov ecx, dword [ecx + 0x4c]
call fcn.00401988
jmp 0x404e0d
mov eax, dword [0x40e678]
add eax, 0x13c70
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [0x40e678]
mov ecx, dword [eax + 0x68]
lea edx, [eax + 0x13c70]
call fcn.00402b31
mov ecx, dword [0x40e678]
mov dword [ecx + 0x2c], 0x803c
jmp 0x404e13
add ecx, 0x13c70
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [0x40e678]
mov ecx, dword [eax + 0x80]
lea edx, [eax + 0x13c70]
call fcn.00402b31
mov ecx, dword [0x40e678]
mov dword [ecx + 0x2c], 0x800c
jmp 0x404e13
call fcn.00402e5e
jmp 0x404e0d
call fcn.00404382
mov ecx, dword [0x40e678]
mov ecx, dword [ecx + 0x48]
call fcn.00401ea6
cmp dword [esp + 0x18], 1
mov eax, dword [0x40e678]
jne 0x404e5f
cmp dword [eax + 0x2c], ebx
jne 0x404e64
test byte [eax + 0x37c4], 4
je 0x404e5f
mov cx, word [0x40e6c4]
cmp cx, word [eax + 0x3564]
je 0x404e5f
mov ecx, dword [eax + 0x74]
lea edx, [eax + 0x13c70]
call fcn.00402b31
mov eax, dword [0x40e678]
mov dword [eax + 0x2c], 0x800a
cmp dword [eax + 0x2c], ebx
je 0x404e7d
push 0x2010
push str.WinSFX32
push dword [eax + 0x160]
push ebx
call dword [0x40e680]
jmp 0x404ee2
cmp dword [esp + 0x18], ebx
jne 0x404ee7
mov ecx, dword [eax + 0x44]
call fcn.004041b3
mov eax, dword [0x40e678]
cmp byte [eax + 0x36c1], bl
lea edx, [eax + 0x36c1]
je 0x404ee7
lea ecx, [eax + 0x17f74]
call fcn.00403b88
mov esi, eax
mov eax, dword [0x40e678]
mov edx, 0x400
lea ecx, [eax + 0x17f74]
call fcn.00404443
mov al, byte [esi]
neg al
sbb eax, eax
push 5
and eax, esi
push ebx
push eax
mov eax, dword [0x40e678]
lea ecx, [eax + 0x17f74]
push ecx
push ebx
push dword [eax + 0x44]
call dword [0x40e6b8]
mov eax, dword [0x40e678]
mov ecx, dword [eax + 0x37c6]
cmp ecx, ebx
je 0x404f03
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [0x40e678]
mov dword [eax + 0x37c6], ebx
xor ecx, ecx
cmp dword [eax + 0x2c], ebx
sete cl
mov eax, ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret