Function at 0x490280
Capabilities:
Check if file exists
Get file attributes
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f07ab
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x541100]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
lea eax, [edi + 0x70]
xor esi, esi
push eax
mov dword [ebp - 4], esi
call fcn.00492f00
mov byte [ebp - 4], 1
call fcn.004bdbe3
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x4902d7
push 0x80004005
call fcn.00420000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [edi + 0x8c], eax
push ecx
mov byte [ebp - 4], 2
mov ebx, esp
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x20], ebx
call fcn.004bdbe3
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x490310
push 0x80004005
call fcn.00420000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebx], eax
mov eax, str..dat
shr eax, 0x10
mov byte [ebp - 4], 3
mov dword [ebp - 0x18], eax
cmp eax, esi
jne 0x490354
mov ecx, str..dat
movzx eax, cx
push eax
mov dword [ebp - 0x14], eax
call fcn.004c5d7f
cmp eax, esi
je 0x49036e
mov edx, dword [ebp - 0x14]
push edx
push eax
mov ecx, ebx
call fcn.00422eb3
jmp 0x49036e
push str..dat
call fcn.004ccd1a
add esp, 4
push eax
push str..dat
mov ecx, ebx
call fcn.00423404
mov byte [ebp - 4], 4
mov eax, dword [ebp + 0xc]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x20], esp
mov ebx, esp
push eax
call fcn.00423475
add eax, 0x10
mov dword [ebx], eax
lea eax, [ebp - 0x10]
add esp, 4
push eax
mov byte [ebp - 4], 2
call fcn.004779a0
mov ecx, dword [ebp - 0x10]
add esp, 0xc
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ebx, ebx
cmp eax, 0xffffffff
mov eax, dword [ebp - 0x10]
setne bl
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4903cd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp ebx, esi
je 0x4904c8
push ecx
mov ecx, esp
mov dword [ebp - 0x20], esp
push str.constructor:_separate_data_file_found
push ecx
call fcn.004777e0
add esp, 8
call fcn.004901b0
push ecx
mov ebx, esp
mov dword [ebp - 0x20], esp
mov dword [ebp - 0x1c], ebx
call fcn.004bdbe3
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x490411
push 0x80004005
call fcn.00420000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebx], eax
mov byte [ebp - 4], 5
cmp dword [ebp - 0x18], esi
jne 0x49044b
mov ecx, str..dat
movzx eax, cx
push eax
mov dword [ebp - 0x18], eax
call fcn.004c5d7f
cmp eax, esi
je 0x490465
mov edx, dword [ebp - 0x18]
push edx
push eax
mov ecx, ebx
call fcn.00422eb3
jmp 0x490465
push str..dat
call fcn.004ccd1a
add esp, 4
push eax
push str..dat
mov ecx, ebx
call fcn.00423404
mov byte [ebp - 4], 6
mov eax, dword [ebp + 0xc]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x1c], esp
mov ebx, esp
push eax
call fcn.00423475
add eax, 0x10
mov dword [ebx], eax
lea eax, [ebp - 0x14]
add esp, 4
push eax
mov byte [ebp - 4], 2
call fcn.004779a0
add esp, 0xc
push eax
lea ecx, [edi + 0x8c]
mov byte [ebp - 4], 7
call fcn.00422f41
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4904d7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x4904d7
lea ecx, [ebp + 0xc]
push ecx
lea ecx, [edi + 0x8c]
call fcn.00422f41
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0x14]
lea ecx, [edi + 0x40]
push ecx
mov dword [edi], 0xffffffff
mov dword [edi + 4], esi
mov dword [edi + 8], esi
mov dword [edi + 0xc], esi
mov dword [edi + 0x10], edx
mov dword [edi + 0x68], esi
mov dword [edi + 0x6c], esi
mov dword [edi + 0x18], esi
mov dword [edi + 0x1c], esi
mov dword [edi + 0x20], esi
mov dword [edi + 0x28], esi
mov dword [edi + 0x2c], esi
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], esi
mov dword [edi + 0x88], esi
mov dword [edi + 0x38], esi
mov dword [edi + 0x3c], eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [edi + 0x5c]
xor edx, edx
mov eax, 0x400000
div ecx
imul eax, ecx
mov dword [edi + 0x64], eax
call fcn.00490a70
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x49055d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10