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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cefeb
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x512f18]
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.0047afe0
mov byte [ebp - 4], 1
call fcn.0049eef3
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x4783b7
push 0x80004005
call fcn.00421000
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.0049eef3
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x4783f0
push 0x80004005
call fcn.00421000
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 0x478434
mov ecx, str..dat
movzx eax, cx
push eax
mov dword [ebp - 0x14], eax
call fcn.004a6e27
cmp eax, esi
je 0x47844e
mov edx, dword [ebp - 0x14]
push edx
push eax
mov ecx, ebx
call fcn.00423ccc
jmp 0x47844e
push str..dat
call fcn.004ad5da
add esp, 4
push eax
push str..dat
mov ecx, ebx
call fcn.0042424f
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.004242c0
add eax, 0x10
mov dword [ebx], eax
lea eax, [ebp - 0x10]
add esp, 4
push eax
mov byte [ebp - 4], 2
call fcn.00464c40
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 0x4784ad
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp ebx, esi
je 0x4785a8
push ecx
mov ecx, esp
mov dword [ebp - 0x20], esp
push str.constructor:_separate_data_file_found
push ecx
call fcn.00464a80
add esp, 8
call fcn.00478290
push ecx
mov ebx, esp
mov dword [ebp - 0x20], esp
mov dword [ebp - 0x1c], ebx
call fcn.0049eef3
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x4784f1
push 0x80004005
call fcn.00421000
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 0x47852b
mov ecx, str..dat
movzx eax, cx
push eax
mov dword [ebp - 0x18], eax
call fcn.004a6e27
cmp eax, esi
je 0x478545
mov edx, dword [ebp - 0x18]
push edx
push eax
mov ecx, ebx
call fcn.00423ccc
jmp 0x478545
push str..dat
call fcn.004ad5da
add esp, 4
push eax
push str..dat
mov ecx, ebx
call fcn.0042424f
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.004242c0
add eax, 0x10
mov dword [ebx], eax
lea eax, [ebp - 0x14]
add esp, 4
push eax
mov byte [ebp - 4], 2
call fcn.00464c40
add esp, 0xc
push eax
lea ecx, [edi + 0x8c]
mov byte [ebp - 4], 7
call fcn.00423d5a
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 0x4785b7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x4785b7
lea ecx, [ebp + 0xc]
push ecx
lea ecx, [edi + 0x8c]
call fcn.00423d5a
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.00478b50
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 0x47863d
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