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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1011f639
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x1016e750]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x18], edi
mov dword [ebp - 4], 0
mov dword [edi + 0x70], 0
mov dword [edi + 0x74], 0
mov dword [edi + 0x78], 0
mov byte [ebp - 4], 1
call fcn.10022690
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x10035069
push 0x80004005
call fcn.100223c0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi + 0x80], eax
push ecx
mov byte [ebp - 4], 2
mov ecx, esp
mov dword [ebp - 0x14], esp
push 0x1013b6e4
call fcn.10023fc0
push ecx
mov byte [ebp - 4], 3
mov esi, esp
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.10024750
add eax, 0x10
lea ecx, [ebp - 0x10]
mov dword [esi], eax
mov byte [ebp - 4], 2
call fcn.10045090
add esp, 8
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edx, dword [ebp - 0x10]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
add edx, 0xfffffff0
or ebx, 0xffffffff
mov dword [ebp - 0x14], ecx
mov eax, ebx
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x100350e6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x14], 0
je 0x1003516a
push ecx
mov eax, esp
push str.constructor:_separate_data_file_found
push eax
call fcn.10044f30
add esp, 8
call fcn.10034f40
push ecx
mov ecx, esp
mov dword [ebp - 0x1c], esp
push 0x1013b6e4
call fcn.10023fc0
push ecx
mov byte [ebp - 4], 4
mov esi, esp
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.10024750
add eax, 0x10
lea ecx, [ebp - 0x14]
mov dword [esi], eax
mov byte [ebp - 4], 2
call fcn.10045090
add esp, 8
push eax
lea ecx, [edi + 0x80]
mov byte [ebp - 4], 5
call fcn.100244b0
mov byte [ebp - 4], 2
mov ecx, ebx
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x10035179
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x10035179
lea eax, [ebp + 8]
push eax
lea ecx, [edi + 0x80]
call fcn.100244b0
mov eax, dword [ebp + 0xc]
mov dword [edi + 0x10], eax
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x3c], eax
lea eax, [edi + 0x40]
push eax
mov dword [edi], 0xffffffff
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x68], 0
mov dword [edi + 0x6c], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x7c], 0
mov dword [edi + 0x38], 0
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
xor edx, edx
mov eax, 0x400000
div dword [edi + 0x5c]
mov ecx, edi
imul eax, dword [edi + 0x5c]
mov dword [edi + 0x64], eax
call fcn.100356b0
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x10035230
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
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 0xc