Function at 0x40ff60
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42ce5a
mov eax, dword fs:[0]
push eax
sub esp, 0x258
mov eax, dword [0x440068]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [ebp - 0x260]
mov dword [ebp - 0x264], 0
call fcn.0040fcd0
mov dword [ebp - 4], 0
cmp dword [ebp - 0x250], 0
je 0x410257
cmp dword [ebp - 0x24c], 8
lea eax, [ebp - 0x260]
cmovae eax, dword [ebp - 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40ffe0
test al, 0x10
je 0x410257
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00417b20
add esp, 0xc
lea ecx, [ebp - 0x248]
mov edx, esi
call fcn.004060a0
cmp dword [eax + 0x14], 8
jb 0x41000b
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0041b7af
mov edx, dword [ebp - 0x234]
add esp, 0xc
cmp edx, 8
jb 0x410060
mov ecx, dword [ebp - 0x248]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x410056
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4102b2
push edx
push ecx
call fcn.004152ff
add esp, 8
push str.Desktop.ico
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
xor eax, eax
mov dword [ebp - 0x220], 0
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4100a0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x230]
call fcn.00404280
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 1
push eax
sub esp, 8
call fcn.00406b00
mov byte [ebp - 4], 0
mov bl, al
mov edx, dword [ebp - 0x21c]
cmp edx, 8
jb 0x41011b
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x410111
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4102b7
push edx
push ecx
call fcn.004152ff
add esp, 8
test bl, bl
je 0x410178
xor eax, eax
mov dword [ebp - 0x220], 0
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x410145
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x230]
call fcn.00404280
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 2
mov ebx, 1
jmp 0x410190
push esi
lea ecx, [ebp - 0x248]
call fcn.004041a0
mov dword [ebp - 4], 3
mov ebx, 2
push ecx
push eax
lea edx, [ebp - 0x260]
mov dword [ebp - 0x264], ebx
mov ecx, esi
call fcn.004132d0
add esp, 8
mov esi, eax
test bl, 2
je 0x41020f
mov edx, dword [ebp - 0x234]
and ebx, 0xfffffffd
cmp edx, 8
jb 0x4101f2
mov ecx, dword [ebp - 0x248]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4101e8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4102bc
push edx
push ecx
call fcn.004152ff
add esp, 8
xor eax, eax
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 7
mov word [ebp - 0x248], ax
test bl, 1
je 0x410250
mov edx, dword [ebp - 0x21c]
cmp edx, 8
jb 0x410250
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x410246
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4102c1
push edx
push ecx
call fcn.004152ff
add esp, 8
test esi, esi
setns bl
jmp 0x410259
mov bl, 1
mov edx, dword [ebp - 0x24c]
cmp edx, 8
jb 0x410295
mov ecx, dword [ebp - 0x260]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41028b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4102c6
push edx
push ecx
call fcn.004152ff
add esp, 8
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00415024
mov esp, ebp
pop ebp
ret
call fcn.0041b091
call fcn.0041b091
call fcn.0041b091
call fcn.0041b091
call fcn.0041b091
int3