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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x508b32
mov eax, dword fs:[0]
push eax
sub esp, 0x168
mov eax, dword [0x53b0f8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x134], 0
mov dword [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.00411e30
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4162d1
mov byte [ebp - 0x129], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00422090
mov al, byte [ebp - 0x129]
jmp 0x416709
lea ecx, [ebp - 0x124]
call fcn.0042d0c0
mov byte [ebp - 4], 1
mov dword [ebp - 0x128], 0
mov dword [ebp - 0x138], 0
push 0
lea eax, [ebp - 0x98]
push eax
lea ecx, [ebp + 8]
call fcn.00422270
mov dword [ebp - 0x140], eax
mov ecx, dword [ebp - 0x140]
mov dword [ebp - 0x144], ecx
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x134]
or edx, 1
mov dword [ebp - 0x134], edx
mov ecx, dword [ebp - 0x144]
call fcn.00411e10
push eax
lea ecx, [ebp - 0x124]
call fcn.0042f2c0
movzx eax, al
test eax, eax
je 0x41636e
lea ecx, [ebp - 0x124]
call fcn.004185c0
mov dword [ebp - 0x138], eax
cmp dword [ebp - 0x138], 0
je 0x41636e
mov dword [ebp - 0x13c], 0
jmp 0x416378
mov dword [ebp - 0x13c], 1
mov cl, byte [ebp - 0x13c]
mov byte [ebp - 0x12a], cl
mov dword [ebp - 4], 1
mov edx, dword [ebp - 0x134]
and edx, 1
je 0x4163a8
and dword [ebp - 0x134], 0xfffffffe
lea ecx, [ebp - 0x98]
call fcn.0040b260
movzx eax, byte [ebp - 0x12a]
test eax, eax
je 0x4163e3
mov byte [ebp - 0x12b], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x124]
call fcn.00417c00
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00422090
mov al, byte [ebp - 0x12b]
jmp 0x416709
push 0x510668
mov ecx, dword [ebp - 0x138]
call fcn.00418080
mov dword [ebp - 0x130], eax
cmp dword [ebp - 0x130], 0
je 0x4166d3
push str.language
mov ecx, dword [ebp - 0x130]
call fcn.0042e140
push eax
lea ecx, [ebp - 0xb4]
call fcn.00423820
mov byte [ebp - 4], 3
push str.coreitems
mov ecx, dword [ebp - 0x130]
call fcn.00418080
mov dword [ebp - 0x128], eax
cmp dword [ebp - 0x128], 0
je 0x41657c
push 0x51068c
mov ecx, dword [ebp - 0x128]
call fcn.00418080
mov dword [ebp - 0x128], eax
cmp dword [ebp - 0x128], 0
je 0x41657c
push 0x510694
mov ecx, dword [ebp - 0x128]
call fcn.0042e140
push eax
lea ecx, [ebp - 0x48]
call fcn.00423820
mov byte [ebp - 4], 4
push 0x5106a0
mov ecx, dword [ebp - 0x128]
call fcn.0042e140
push eax
lea ecx, [ebp - 0x2c]
call fcn.00423820
mov byte [ebp - 4], 5
push 0
lea ecx, [ebp - 0x160]
call fcn.004179b0
mov byte [ebp - 4], 6
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x170], esp
lea edx, [ebp - 0x48]
push edx
call fcn.00423970
call fcn.00416730
add esp, 0x1c
mov dword [ebp - 0x148], eax
mov eax, dword [ebp - 0x148]
mov dword [ebp - 0x14c], eax
push 0x2001f
push 0
mov ecx, dword [ebp - 0x14c]
push ecx
lea ecx, [ebp - 0x160]
call fcn.00418180
test eax, eax
jne 0x41653f
lea ecx, [ebp - 0x28]
call fcn.00411e30
push eax
lea ecx, [ebp - 0x160]
call fcn.00418220
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x160]
call fcn.00417be0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2c]
call fcn.00422090
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x48]
call fcn.00422090
jmp 0x41657c
mov ecx, dword [ebp - 0x128]
call fcn.00418160
mov dword [ebp - 0x128], eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x160]
call fcn.00417be0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2c]
call fcn.00422090
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x48]
call fcn.00422090
jmp 0x41645f
push str.appitems
mov ecx, dword [ebp - 0x130]
call fcn.00418080
mov dword [ebp - 0x128], eax
cmp dword [ebp - 0x128], 0
je 0x4166a9
push str.item
mov ecx, dword [ebp - 0x128]
call fcn.00418080
mov dword [ebp - 0x128], eax
cmp dword [ebp - 0x128], 0
je 0x4166a9
push str.rootpath
mov ecx, dword [ebp - 0x128]
call fcn.0042e140
push eax
lea ecx, [ebp - 0x80]
call fcn.00423820
mov byte [ebp - 4], 7
push 0x5106c8
mov ecx, dword [ebp - 0x128]
call fcn.0042e140
push eax
lea ecx, [ebp - 0x64]
call fcn.00423820
mov byte [ebp - 4], 8
push 0
lea ecx, [ebp - 0x16c]
call fcn.004179b0
mov byte [ebp - 4], 9
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x174], esp
lea edx, [ebp - 0x80]
push edx
call fcn.00423970
call fcn.00416730
add esp, 0x1c
mov dword [ebp - 0x150], eax
mov eax, dword [ebp - 0x150]
mov dword [ebp - 0x154], eax
push 0x2001f
push 0
mov ecx, dword [ebp - 0x154]
push ecx
lea ecx, [ebp - 0x16c]
call fcn.00418180
test eax, eax
jne 0x41666c
lea ecx, [ebp - 0x60]
call fcn.00411e30
push eax
lea ecx, [ebp - 0x16c]
call fcn.00418220
mov ecx, dword [ebp - 0x128]
call fcn.00418160
mov dword [ebp - 0x128], eax
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x16c]
call fcn.00417be0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x64]
call fcn.00422090
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x80]
call fcn.00422090
jmp 0x4165b5
push str.registry
mov ecx, dword [ebp - 0x130]
call fcn.00418140
mov dword [ebp - 0x130], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xb4]
call fcn.00422090
jmp 0x4163f9
lea ecx, [ebp - 0x124]
call fcn.0042e400
mov byte [ebp - 0x12c], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x124]
call fcn.00417c00
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00422090
mov al, byte [ebp - 0x12c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00434475
mov esp, ebp
pop ebp
ret