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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42e3f0
mov eax, dword fs:[0]
push eax
sub esp, 0x2a4
mov eax, dword [0x439004]
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 - 4], 0
mov ecx, dword [ebp + 0x18]
test ecx, ecx
je 0x4082d0
mov esi, dword [ebp + 0x1c]
lea eax, [ebp + 8]
mov edi, dword [ebp + 8]
cmp esi, 8
cmovae eax, edi
cmp word [eax + ecx*2 - 2], 0x5c
jne 0x4082d0
lea edx, [ecx - 1]
cmp ecx, edx
jb 0x4084f6
cmp esi, 8
mov dword [ebp + 0x18], edx
lea eax, [ebp + 8]
cmovae eax, edi
xor ecx, ecx
mov word [eax + edx*2], cx
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x58]
call fcn.00404030
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x44]
mov eax, edx
mov ecx, dword [ebp - 0x48]
sub eax, ecx
cmp eax, 0x16
jb 0x40831a
cmp edx, 8
lea esi, [ebp - 0x58]
push 0x2c
cmovae esi, dword [ebp - 0x58]
lea edi, [ecx + 0x16]
push str.System32Kernel32.dll
mov dword [ebp - 0x48], edi
lea eax, [esi + ecx*2]
push eax
call fcn.00415ee0
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
jmp 0x408338
push 0x16
push str.System32Kernel32.dll
mov byte [ebp - 0x2ac], 0
lea ecx, [ebp - 0x58]
push dword [ebp - 0x2ac]
push 0x16
call fcn.00404100
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x40]
call fcn.00404030
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x2c]
mov eax, edx
mov ecx, dword [ebp - 0x30]
sub eax, ecx
cmp eax, 0x19
jb 0x408382
cmp edx, 8
lea esi, [ebp - 0x40]
push 0x32
cmovae esi, dword [ebp - 0x40]
lea edi, [ecx + 0x19]
push str.System32configSOFTWARE
mov dword [ebp - 0x30], edi
lea eax, [esi + ecx*2]
push eax
call fcn.00415ee0
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
jmp 0x4083a0
push 0x19
push str.System32configSOFTWARE
mov byte [ebp - 0x2ac], 0
lea ecx, [ebp - 0x40]
push dword [ebp - 0x2ac]
push 0x19
call fcn.00404100
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x28]
call fcn.00404030
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x14]
mov eax, edx
mov ecx, dword [ebp - 0x18]
sub eax, ecx
cmp eax, 0x17
jb 0x4083ea
cmp edx, 8
lea esi, [ebp - 0x28]
push 0x2e
cmovae esi, dword [ebp - 0x28]
lea edi, [ecx + 0x17]
push str.System32configSYSTEM
mov dword [ebp - 0x18], edi
lea eax, [esi + ecx*2]
push eax
call fcn.00415ee0
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
jmp 0x408408
push 0x17
push str.System32configSYSTEM
mov byte [ebp - 0x2ac], 0
lea ecx, [ebp - 0x28]
push dword [ebp - 0x2ac]
push 0x17
call fcn.00404100
cmp dword [ebp - 0x2c], 8
lea esi, [ebp - 0x40]
cmovae esi, dword [ebp - 0x40]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, dword [sym.imp.KERNEL32.dll_FindClose]
cmp eax, 0xffffffff
jne 0x408448
lea eax, [ebp - 0x2a8]
push eax
push esi
call ebx
cmp eax, 0xffffffff
je 0x4084b4
push eax
call edi
mov eax, dword [ebp - 0x2a8]
cmp eax, 0xffffffff
je 0x4084b4
cmp dword [ebp - 0x14], 8
lea esi, [ebp - 0x28]
cmovae esi, dword [ebp - 0x28]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40847c
lea eax, [ebp - 0x2a8]
push eax
push esi
call ebx
cmp eax, 0xffffffff
je 0x4084b4
push eax
call edi
mov eax, dword [ebp - 0x2a8]
cmp eax, 0xffffffff
je 0x4084b4
cmp dword [ebp - 0x44], 8
lea esi, [ebp - 0x58]
cmovae esi, dword [ebp - 0x58]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4084b0
lea eax, [ebp - 0x2a8]
push eax
push esi
call ebx
cmp eax, 0xffffffff
je 0x4084b4
push eax
call edi
mov eax, dword [ebp - 0x2a8]
cmp eax, 0xffffffff
je 0x4084b4
mov bl, 1
jmp 0x4084b6
xor bl, bl
lea ecx, [ebp - 0x28]
call fcn.004019e0
lea ecx, [ebp - 0x40]
call fcn.004019e0
lea ecx, [ebp - 0x58]
call fcn.004019e0
lea ecx, [ebp + 8]
call fcn.004019e0
mov al, bl
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.00414df1
mov esp, ebp
pop ebp
ret 0x18
call fcn.00409f00
int3