Function at 0x402d10
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4154e9
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x41b050]
xor eax, esp
mov dword [esp + 0x3c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x41b050]
xor eax, esp
push eax
lea eax, [esp + 0x54]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x5c], ebx
mov ebp, dword [esp + 0x64]
mov dword [esp + 0x2c], ebx
mov esi, ecx
mov dword [ebp + 0x18], 7
mov dword [ebp + 0x14], ebx
mov dword [esp + 0x28], esi
mov dword [esp + 0x30], ebp
mov word [ebp + 4], bx
mov dword [esp + 0x5c], ebx
mov eax, 1
mov dword [esp + 0x2c], eax
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x5c], eax
push esi
lea ecx, [esp + 0x1c]
call fcn.00402b00
mov edi, dword [esp + 0x1c]
cmp edi, ebx
je 0x402dde
mov ecx, dword [esp + 0x20]
sub ecx, edi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, ebx
je 0x402dde
lea esi, [eax - 1]
cmp esi, eax
jb 0x402dc4
call fcn.0040a917
mov edi, dword [esp + 0x1c]
lea eax, [esi*8]
sub eax, esi
push 0xffffffffffffffff
lea eax, [edi + eax*4]
push ebx
mov ecx, ebp
call fcn.00401500
mov esi, dword [esp + 0x28]
cmp dword [ebp + 0x14], ebx
je 0x402fe0
lea ecx, [esp + 0x34]
push ecx
mov edi, ebp
mov byte [esp + 0x1b], bl
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
call fcn.00401110
add esp, 4
test al, al
je 0x402f6b
mov eax, dword [esi + 0x1c]
mov ecx, dword [esp + 0x34]
cmp eax, ecx
jl 0x402e56
jg 0x402f6b
mov eax, dword [esi + 0x20]
mov ecx, dword [esp + 0x38]
cmp eax, ecx
jl 0x402e56
jg 0x402f6b
mov eax, dword [esi + 0x24]
mov ecx, dword [esp + 0x3c]
cmp eax, ecx
jl 0x402e56
jg 0x402f6b
mov eax, dword [esi + 0x28]
mov ecx, dword [esp + 0x40]
cmp eax, ecx
jl 0x402e56
jg 0x402f6b
push 0xffffffffffffffff
push ebx
mov eax, esi
lea ecx, [esp + 0x3c]
mov dword [esp + 0x54], 7
mov dword [esp + 0x50], ebx
mov word [esp + 0x40], bx
call fcn.00401500
mov byte [esp + 0x5c], 2
cmp dword [esp + 0x48], ebx
je 0x402ed1
push 0xb
push 0x417c70
lea ecx, [esp + 0x3c]
call fcn.00402110
push 1
push 0x417c6c
lea ecx, [esp + 0x3c]
call fcn.00402110
push ebx
push ebp
or eax, 0xffffffff
lea esi, [esp + 0x3c]
call fcn.00402210
push 1
push 0x417c6c
mov ecx, esi
call fcn.00402110
mov edx, esi
push edx
mov ecx, ebp
call fcn.00403220
mov esi, dword [esp + 0x28]
mov byte [esp + 0x17], 1
jmp 0x402ed8
mov edi, ebp
call fcn.00403180
mov byte [esp + 0x5c], 1
cmp dword [esp + 0x4c], 8
jb 0x402ef1
mov eax, dword [esp + 0x38]
push eax
call fcn.0040a31e
add esp, 4
cmp byte [esp + 0x17], bl
mov edi, 7
mov dword [esp + 0x4c], edi
mov dword [esp + 0x48], ebx
mov word [esp + 0x38], bx
je 0x402f6b
lea ecx, [esp + 0x34]
push ebp
push ecx
call fcn.00404320
add esp, 8
mov byte [esp + 0x5c], 3
cmp dword [esp + 0x4c], 8
mov eax, dword [esp + 0x38]
jae 0x402f2b
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x402f3b
test al, 0x10
je 0x402f3f
mov byte [esp + 0x17], bl
mov byte [esp + 0x5c], 1
cmp dword [esp + 0x4c], 8
jb 0x402f58
mov edx, dword [esp + 0x38]
push edx
call fcn.0040a31e
add esp, 4
cmp byte [esp + 0x17], bl
mov dword [esp + 0x4c], edi
mov dword [esp + 0x48], ebx
mov word [esp + 0x38], bx
jne 0x402fe0
mov edi, ebp
call fcn.00403180
push esi
lea esi, [esp + 0x38]
call fcn.00402a60
mov byte [esp + 0x5c], 4
cmp dword [esp + 0x48], ebx
mov esi, 8
je 0x402fb7
cmp dword [esp + 0x4c], esi
mov eax, dword [esp + 0x38]
jae 0x402f9a
lea eax, [esp + 0x38]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [esp + 0x4c], esi
mov eax, dword [esp + 0x38]
jae 0x402fb0
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [esp + 0x5c], 1
cmp dword [esp + 0x4c], esi
jb 0x402fcf
mov eax, dword [esp + 0x38]
push eax
call fcn.0040a31e
add esp, 4
mov dword [esp + 0x4c], 7
mov dword [esp + 0x48], ebx
mov word [esp + 0x38], bx
mov byte [esp + 0x5c], bl
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x403007
mov ecx, dword [esp + 0x30]
mov edi, dword [esp + 0x20]
push ecx
call fcn.004044c0
mov edx, dword [esp + 0x20]
push edx
call fcn.0040a31e
add esp, 8
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov eax, ebp
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.00409fae
add esp, 0x4c
ret 4