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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x44206c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x238], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x210], 0x1b937f76
mov dword [ebp - 0x23c], edx
mov edx, 0x1bd7a932
mov dword [ebp - 0x240], eax
mov eax, dword [ebp - 0x210]
sub edx, eax
push ebx
push esi
mov dword [ebp - 0x214], ecx
mov ecx, 0x30a802da
mov esi, dword [edx]
mov dword [ebp - 0x210], 0x3063d91e
mov eax, dword [ebp - 0x210]
sub ecx, eax
mov ax, word [0x442a18]
push edi
mov edi, dword [ecx]
mov ecx, 0xffff
add edi, 0x1a15a168
cmp ax, cx
jne 0x401176
lea eax, [ebp - 0x264]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov ax, word [ebp - 0x264]
mov word [0x442a18], ax
test ax, ax
jne 0x401197
mov ebx, dword [sym.imp.KERNEL32.dll_OpenProcess]
lea eax, [esi*2 + 0x2eda7434]
mov edi, 1
mov esi, 0x6710f36a
jmp 0x401258
cmp dword [0x444044], 0
jne 0x4011d5
lea eax, [edi + edi]
mov ecx, 0x6c61c276
sub ecx, eax
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ecx, eax
test ecx, ecx
je 0x4011cb
mov eax, 0x3652b94f
sub eax, edi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x444040], eax
mov dword [0x444044], 1
cmp dword [0x444040], 0
mov ebx, dword [sym.imp.KERNEL32.dll_OpenProcess]
je 0x40124a
sub esp, 0xc
xor edx, edx
call fcn.0040a6f0
add esp, 0xc
neg eax
sbb eax, eax
and eax, 0xc00
push dword [ebp - 0x214]
add eax, 0x400
push 0
push eax
call ebx
mov dword [ebp - 0x210], eax
test eax, eax
je 0x40124a
lea ecx, [ebp - 0x234]
push ecx
push eax
call dword [0x444040]
push dword [ebp - 0x210]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
neg edi
lea eax, [esi*2 + 0x2eda7434]
sbb edi, edi
and edi, dword [ebp - 0x234]
je 0x401253
mov esi, 0x6710f36a
jmp 0x401258
xor edi, edi
lea eax, [esi*2 + 0x2eda7434]
mov esi, 0x6710f382
sub esi, eax
lea eax, [ebp - 0x20c]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call fcn.004158d2
mov edx, eax
add esp, 8
test edx, edx
jne 0x40129b
pop edi
pop esi
mov eax, 3
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004146e0
mov esp, ebp
pop ebp
ret
add edx, 2
lea eax, [ebp - 0x20c]
mov ecx, edx
sub ecx, eax
mov eax, 0x104
sar ecx, 1
push esi
sub eax, ecx
push eax
push edx
call fcn.0041a06a
add esp, 0xc
test eax, eax
jne 0x401285
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xffffffff
jne 0x40130e
call esi
lea ecx, [eax - 2]
cmp ecx, 1
jbe 0x4013bf
push dword [ebp - 0x214]
push 0
push 0x47a
call ebx
mov ebx, eax
test ebx, ebx
jne 0x401328
call esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004146e0
mov esp, ebp
pop ebp
ret
test al, 0x10
je 0x4012e6
pop edi
pop esi
mov eax, 2
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004146e0
mov esp, ebp
pop ebp
ret
xor eax, eax
mov dword [ebp - 0x230], 0x1020000
mov dword [ebp - 0x21c], eax
lea edx, [ebp - 0x20c]
mov dword [ebp - 0x228], eax
mov word [ebp - 0x218], ax
mov eax, dword [ebp - 0x238]
mov dword [ebp - 0x22c], eax
mov eax, dword [ebp - 0x23c]
mov dword [ebp - 0x224], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x220], eax
mov ax, word [ebp + 0x10]
push ecx
mov word [ebp - 0x21c], ax
mov ecx, ebx
lea eax, [ebp - 0x230]
push edi
push eax
call fcn.004013d0
add esp, 0xc
mov esi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x4013af
pop edi
pop esi
mov eax, 0x42a
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004146e0
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x240]
mov eax, dword [ebp - 0x21a]
mov dword [ecx], eax
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004146e0
mov esp, ebp
pop ebp
ret