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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x748266
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x8606e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x44], ecx
lea ecx, [ebp - 0x58]
call fcn.00411bf0
lea ecx, [ebp - 0x50]
mov dword [ebp - 4], 0
push ecx
mov ecx, dword [eax]
call fcn.00412c30
mov byte [ebp - 4], 3
mov esi, dword [ebp - 0x54]
test esi, esi
je 0x405354
or edi, 0xffffffff
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x405354
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x405354
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov byte [ebp - 4], 2
mov ebx, dword [ebp - 0x50]
mov esi, ebx
mov edi, dword [ebp - 0x4c]
cmp ebx, edi
je 0x4054aa
nop dword [eax + eax]
cmp dword [esi + 0x10], 0
je 0x40549f
mov edx, dword [ebp - 0x44]
lea ecx, [ebp - 0x40]
push 0x81fcb8
call fcn.0040a2b0
push esi
mov edx, eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x28]
call fcn.0040a430
add esp, 8
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x4053f3
mov ecx, dword [ebp - 0x40]
inc eax
cmp eax, 0x7fffffff
ja 0x4054db
add eax, eax
cmp eax, 0x1000
jb 0x4053ea
test cl, 0x1f
jne 0x4054db
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x4054db
sub ecx, eax
cmp ecx, 4
jb 0x4054db
cmp ecx, 0x23
ja 0x4054db
mov ecx, eax
push ecx
call fcn.00435ced
add esp, 4
xor eax, eax
mov dword [ebp - 0x2c], 7
cmp dword [ebp - 0x14], 8
mov word [ebp - 0x40], ax
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
mov dword [ebp - 0x30], 0
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40545c
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40545c
test al, 0x10
je 0x40544a
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
call fcn.004037a0
jmp 0x40545c
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x40549f
mov ecx, dword [ebp - 0x28]
inc eax
cmp eax, 0x7fffffff
ja 0x4054db
add eax, eax
cmp eax, 0x1000
jb 0x405496
test cl, 0x1f
jne 0x4054db
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x4054db
sub ecx, eax
cmp ecx, 4
jb 0x4054db
cmp ecx, 0x23
ja 0x4054db
mov ecx, eax
push ecx
call fcn.00435ced
add esp, 4
add esi, 0x18
cmp esi, edi
jne 0x405370
test ebx, ebx
je 0x405524
push dword [ebp - 0x44]
mov edx, edi
push ecx
mov ecx, ebx
call fcn.0040ab10
mov ecx, dword [ebp - 0x48]
mov eax, 0x2aaaaaab
sub ecx, ebx
add esp, 8
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 0xaaaaaaa
jbe 0x4054e0
call fcn.00632f50
lea eax, [eax + eax*2]
shl eax, 3
cmp eax, 0x1000
jb 0x40551b
test bl, 0x1f
je 0x4054f7
call fcn.00632f50
mov eax, dword [ebx - 4]
cmp eax, ebx
jb 0x405503
call fcn.00632f50
sub ebx, eax
cmp ebx, 4
jae 0x40550f
call fcn.00632f50
cmp ebx, 0x23
jbe 0x405519
call fcn.00632f50
mov ebx, eax
push ebx
call fcn.00435ced
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004ccd8f
mov esp, ebp
pop ebp
ret