Function at 0x404820
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c4c5a
mov eax, dword fs:[0]
push eax
sub esp, 0x98
mov eax, dword [0x4fad60]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x78], eax
mov eax, dword [0x4ff1e4]
xor ebx, ebx
cmp eax, ebx
je 0x4048a6
cmp eax, 1
je 0x4048af
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.GetNativeSystemInfo
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x4048a6
lea ecx, [ebp - 0xa4]
push ecx
call eax
cmp word [ebp - 0xa4], 9
jne 0x4048a0
mov dword [0x4ff1e4], 1
jmp 0x4048af
mov dword [0x4ff1e4], ebx
cmp esi, 0x40
je 0x404ac8
mov edi, 7
xor edx, edx
mov eax, 1
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x3c], ebx
mov word [ebp - 0x4c], dx
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x58], ebx
sub esi, 0x40
neg esi
sbb esi, esi
and esi, 0x100
push ebx
add esi, 0x100
sub esp, 0x1c
cmp dword [ebp + 0xc], eax
mov eax, dword [ebp - 0x78]
mov dword [ebp - 4], ebx
mov eax, dword [eax]
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x54], reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x7c], esp
lea ecx, [eax*8]
jne 0x40490e
sub ecx, eax
lea eax, [ecx*4 + 0x4fc8e8]
jmp 0x404917
sub ecx, eax
lea eax, [ecx*4 + 0x4fc6d0]
mov ecx, esp
push ebx
mov dword [ecx + 0x14], edi
push eax
mov dword [ecx + 0x10], ebx
or eax, 0xffffffff
mov word [ecx], dx
call fcn.00404570
lea ecx, [ebp - 0x58]
call fcn.004091e0
xor eax, eax
mov word [ebp - 0x2c], ax
push ebx
mov eax, 0x4ddda0
lea esi, [ebp - 0x2c]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ebx
call fcn.00403e70
sub esp, 0x1c
mov byte [ebp - 4], 1
mov esi, esp
mov dword [ebp - 0x7c], esp
xor ecx, ecx
mov dword [esi + 0x14], edi
mov dword [esi + 0x10], ebx
push ebx
mov eax, 0x4ddda0
mov word [esi], cx
call fcn.00403e70
sub esp, 0x1c
mov esi, esp
mov byte [ebp - 4], 2
mov dword [ebp - 0x80], esp
xor edx, edx
mov dword [esi + 0x14], edi
mov dword [esi + 0x10], ebx
push 0xc
mov eax, str.AcadLocation
mov word [esi], dx
call fcn.00403e70
lea edx, [ebp - 0x74]
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 1
call fcn.00409c60
mov edi, eax
lea esi, [ebp - 0x2c]
mov byte [ebp - 4], 3
call fcn.00409010
mov edi, 8
mov byte [ebp - 4], 1
cmp dword [ebp - 0x60], edi
jb 0x4049ca
mov eax, dword [ebp - 0x74]
push eax
call fcn.00490a16
add esp, 4
xor ecx, ecx
mov esi, 7
mov dword [ebp - 0x60], esi
mov dword [ebp - 0x64], ebx
mov word [ebp - 0x74], cx
cmp dword [ebp - 0x1c], ebx
jne 0x404a39
cmp dword [ebp - 0x18], edi
jb 0x4049f1
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00490a16
add esp, 4
xor eax, eax
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], ax
or eax, 0xffffffff
xor ecx, ecx
lea esi, [ebp - 0x4c]
mov dword [ebp - 4], 4
call fcn.00404150
mov dword [ebp - 0x54], SysReAllocString
mov dword [ebp - 0x50], 1
cmp dword [ebp - 0x38], edi
jb 0x404ac8
mov ecx, dword [ebp - 0x4c]
push ecx
call fcn.00490a16
add esp, 4
jmp 0x404ac8
push 9
mov eax, str.Acad.exe
lea ecx, [ebp - 0x2c]
call fcn.00407570
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], edi
jae 0x404a53
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x404a9b
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x78]
mov dword [eax + 4], edx
cmp dword [ebp - 0x18], edi
jb 0x404a78
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.00490a16
add esp, 4
lea eax, [ebp - 0x58]
xor edx, edx
push eax
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], dx
mov dword [ebp - 4], 0xffffffff
call fcn.00409110
mov eax, 1
jmp 0x404aca
cmp dword [ebp - 0x18], edi
jb 0x404aac
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.00490a16
add esp, 4
lea eax, [ebp - 0x58]
xor edx, edx
push eax
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], dx
mov dword [ebp - 4], 0xffffffff
call fcn.00409110
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00490a21
mov esp, ebp
pop ebp
ret