Function at 0x483be0
Capabilities:
Check if file exists
Check os version
Get common file path
Get file attributes
Set current directory

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x52a94c
push eax
mov dword fs:[0], esp
sub esp, 0x48c
push ebx
push ebp
push esi
mov esi, ecx
push edi
xor ebp, ebp
mov eax, dword [esi + 0x34]
xor edi, edi
cmp eax, ebp
jle 0x483c23
mov eax, dword [esi + 0x38]
mov eax, dword [eax + edi*4]
push eax
call sub.MFC42.DLL_operatordelete
mov eax, dword [esi + 0x34]
add esp, 4
inc edi
cmp edi, eax
jl 0x483c0c
mov eax, dword [esi + 0x38]
push eax
call sub.MFC42.DLL_operatordelete
push 0x186a0
mov dword [esi + 0x38], ebp
mov dword [esi + 0x34], ebp
call sub.MFC42.DLL_operatornew
mov ecx, dword [esi + 0x30]
add esp, 8
cmp ecx, ebp
mov dword [esp + 0x14], eax
je 0x483c5e
cmp byte [ecx], 0
je 0x483c5e
push 0x104
push eax
push ecx
call dword [sym.imp.comdlg32.dll_GetFileTitleA]
jmp 0x483c61
mov byte [eax], 0
mov ecx, dword [0x569264]
mov edx, dword fs:[0x2c]
mov eax, dword [edx + ecx*4]
mov ecx, dword [esi + 0x10]
mov dword [esp + 0x18], eax
mov dword [eax + 0x158], ecx
mov edx, dword [esi + 0x20]
mov dword [eax + 0x160], edx
mov ecx, dword [esi + 0x24]
mov dword [eax + 0x164], ecx
mov edx, dword [esi + 0x14]
mov dword [eax + 0x168], edx
mov eax, dword [esi + 0x30]
cmp eax, ebp
je 0x483cc2
cmp byte [eax], 0
je 0x483cc2
lea ecx, [esp + 0x28c]
push ecx
push eax
call fcn.004722e0
lea edx, [esp + 0x294]
add esp, 8
mov dword [esi + 0x2c], edx
jmp 0x483cce
cmp dword [esi + 0x2c], ebp
jne 0x483cce
mov dword [esi + 0x2c], 0x568998
mov ecx, dword [esi]
lea eax, [esi + 0x40]
push 0x28
push eax
push 0x3f6
push ecx
call dword [sym.imp.USER32.dll_LoadStringA]
lea edx, [esp + 0x394]
push edx
push 0x105
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov eax, dword [esi + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push 0x2710
call sub.MFC42.DLL_operatornew
mov ebx, eax
mov eax, dword [esi + 0x18]
add esp, 4
cmp eax, 1
mov dword [esp + 0x10], 1
jne 0x483d26
mov dword [esp + 0x10], 3
cmp eax, ebp
jne 0x483d32
mov dword [esp + 0x10], 2
mov ecx, dword [esi]
push 0x50
push ebx
push 0x3f5
push ecx
call dword [sym.imp.USER32.dll_LoadStringA]
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenA]
push ebx
call ebp
lea edi, [eax + ebx + 1]
push 0x559410
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edi
call ebp
mov edx, dword [esi]
lea edi, [edi + eax + 1]
push 0
push edi
push edx
mov ecx, 0x566788
mov ebp, edi
call fcn.004c1170
push ebp
add edi, eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [eax + ebp + 1]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 0x14a
jle 0x483da1
cmp dword [esp + 0x10], 2
jne 0x483d9f
mov dword [esp + 0x10], 1
mov edi, ebp
mov eax, dword [esi + 0xc]
test eax, eax
je 0x483ddb
mov ecx, dword [esi]
push 0x50
push edi
push 0x3f4
push ecx
call dword [sym.imp.USER32.dll_LoadStringA]
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenA]
push edi
call ebp
lea edi, [edi + eax + 1]
push str..AIS
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edi
call ebp
lea edi, [edi + eax + 1]
jmp 0x483dea
cmp dword [esp + 0x10], 3
jne 0x483dea
mov dword [esp + 0x10], 1
mov edx, dword [esi]
push 1
push edi
push edx
mov ecx, 0x566788
call fcn.004c1170
mov ecx, dword [esp + 0x18]
add edi, eax
lea edx, [esp + 0x7c]
mov dword [esp + 0x7c], 0x94
mov byte [edi], 0
mov eax, dword [esi]
mov dword [ecx + 0x138], eax
mov ecx, 0x16
xor eax, eax
lea edi, [esp + 0x24]
rep stosd dword es:[edi], eax
push edx
mov edi, 0x4c
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x483e54
mov eax, dword [esp + 0x80]
cmp eax, 5
jae 0x483e4f
cmp eax, 4
jne 0x483e54
cmp dword [esp + 0x84], 0x5a
jb 0x483e54
mov edi, 0x58
mov eax, dword [esi + 4]
mov ecx, dword [esi]
mov ebp, dword [esp + 0x14]
mov edx, dword [esi + 0x2c]
mov dword [esp + 0x28], eax
mov eax, dword [esi + 0x28]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x24], edi
mov dword [esp + 0x30], ebx
mov dword [esp + 0x40], ebp
mov dword [esp + 0x50], edx
mov dword [esp + 0x44], 0x186a0
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], 0x100c
mov dword [esp + 0x3c], ecx
call fcn.004737f0
test eax, eax
je 0x483ec1
mov eax, dword [esp + 0x58]
mov dword [esp + 0x64], esi
or eax, 0x880060
mov dword [esp + 0x68], 0x483710
mov dword [esp + 0x58], eax
mov dword [esp + 0x6c], 0x9c5
mov eax, dword [esi + 8]
test eax, eax
je 0x483ed3
mov eax, dword [esp + 0x58]
or ah, 2
mov dword [esp + 0x58], eax
lea edx, [esp + 0x24]
push edx
call dword [sym.imp.comdlg32.dll_GetOpenFileNameA]
mov edi, eax
test edi, edi
jne 0x483f02
call dword [sym.imp.comdlg32.dll_CommDlgExtendedError]
cmp eax, 0x3002
jne 0x483f02
lea eax, [esp + 0x24]
mov byte [ebp], 0
push eax
call dword [sym.imp.comdlg32.dll_GetOpenFileNameA]
mov edi, eax
lea ecx, [esp + 0x394]
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push ebx
call sub.MFC42.DLL_operatordelete
add esp, 4
test edi, edi
jne 0x483f3a
push ebp
call sub.MFC42.DLL_operatordelete
mov edx, dword [esp + 0x1c]
add esp, 4
mov eax, dword [edx + 0x158]
mov dword [esi + 0x10], eax
xor eax, eax
jmp 0x4842d1
mov ecx, dword [esp + 0x3c]
xor ebx, ebx
dec ecx
push 0x7f02
push ebx
mov dword [esi + 0x18], ecx
mov dword [esp + 0x18], ebp
call dword [sym.imp.USER32.dll_LoadCursorA]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
push 0x9c40
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esi + 0x38], eax
call fcn.004737f0
test eax, eax
mov eax, dword [esi + 8]
je 0x484126
test eax, eax
je 0x483f8a
push ebp
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ebx, [eax + ebp + 1]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x483f9c
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ebp, dword [esp + 0x14]
test ebx, ebx
je 0x483fb9
cmp byte [ebx], 0
je 0x483fb9
push ebx
lea edx, [esp + 0x80]
push ebp
push edx
call fcn.00472190
add esp, 0xc
jmp 0x483fc1
lea eax, [esp + 0x7c]
push ebp
push eax
call edi
lea ecx, [esp + 0x7c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x483fd9
lea edx, [esp + 0x7c]
push ebx
push edx
call edi
mov eax, dword [esi + 0xc]
test eax, eax
je 0x484004
lea eax, [esp + 0x7c]
push 0x2e
push eax
call dword [sym.imp.MSVCRT.dll__mbsrchr]
add esp, 8
test eax, eax
je 0x484004
push str..ais
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x48405f
push 0x78
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
mov dword [esp + 0x4a4], 0
je 0x484031
lea ecx, [esp + 0x7c]
push ecx
mov ecx, eax
call fcn.004ded00
mov edi, eax
jmp 0x484033
xor edi, edi
mov ecx, edi
mov dword [esp + 0x4a4], 0xffffffff
call fcn.004e0220
test edi, edi
mov ebp, eax
je 0x48405b
mov ecx, edi
call fcn.004df1c0
push edi
call sub.MFC42.DLL_operatordelete
add esp, 4
test ebp, ebp
je 0x4840a1
lea edx, [esp + 0x1c]
lea eax, [esp + 0x184]
push edx
push eax
lea ecx, [esp + 0x84]
push 0x105
push ecx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
lea edx, [esp + 0x184]
push edx
call fcn.00471c80
mov ecx, dword [esi + 0x34]
mov edx, dword [esi + 0x38]
add esp, 4
mov dword [edx + ecx*4], eax
mov eax, dword [esi + 0x34]
inc eax
mov dword [esi + 0x34], eax
jmp 0x4840a8
mov dword [esi + 0x3c], 1
test ebx, ebx
je 0x4840d2
cmp byte [ebx], 0
je 0x4840bc
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ebx, [ebx + eax + 1]
test ebx, ebx
je 0x4840d2
cmp byte [ebx], 0
je 0x4840d2
cmp dword [esi + 0x34], 0x2710
jl 0x483f92
mov eax, dword [esi + 0x34]
shl eax, 2
push eax
call sub.MFC42.DLL_operatornew
mov edx, dword [esi + 0x34]
add esp, 4
xor ecx, ecx
test edx, edx
jle 0x4840fe
mov edi, dword [esi + 0x38]
sub edx, ecx
mov edi, dword [edi + ecx*4]
inc ecx
mov dword [eax + edx*4 - 4], edi
mov edx, dword [esi + 0x34]
cmp ecx, edx
jl 0x4840ea
mov edx, dword [esi + 0x34]
xor ecx, ecx
test edx, edx
jle 0x484118
mov edx, dword [esi + 0x38]
mov edi, dword [eax + ecx*4]
mov dword [edx + ecx*4], edi
mov edx, dword [esi + 0x34]
inc ecx
cmp ecx, edx
jl 0x484107
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
jmp 0x48426c
mov edi, dword [sym.imp.MSVCRT.dll_strtok]
test eax, eax
je 0x48414a
push 0x557d84
push ebp
call edi
push 0x557d84
push 0
mov dword [esp + 0x20], eax
call edi
add esp, 0x10
mov ebx, eax
test ebx, ebx
je 0x484166
mov eax, dword [esp + 0x10]
push ebx
lea ecx, [esp + 0x80]
push eax
push ecx
call fcn.00472190
add esp, 0xc
jmp 0x484176
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x7c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [esi + 0xc]
test eax, eax
je 0x4841a1
lea ecx, [esp + 0x7c]
push 0x2e
push ecx
call dword [sym.imp.MSVCRT.dll__mbsrchr]
add esp, 8
test eax, eax
je 0x4841a1
push str..ais
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x4841fc
push 0x78
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov dword [esp + 0x4a4], 1
je 0x4841ce
lea edx, [esp + 0x7c]
mov ecx, eax
push edx
call fcn.004ded00
mov edi, eax
jmp 0x4841d0
xor edi, edi
mov ecx, edi
mov dword [esp + 0x4a4], 0xffffffff
call fcn.004e0220
test edi, edi
mov ebp, eax
je 0x4841f8
mov ecx, edi
call fcn.004df1c0
push edi
call sub.MFC42.DLL_operatordelete
add esp, 4
test ebp, ebp
je 0x48423e
lea eax, [esp + 0x20]
lea ecx, [esp + 0x184]
push eax
push ecx
lea edx, [esp + 0x84]
push 0x105
push edx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
lea eax, [esp + 0x184]
push eax
call fcn.00471c80
mov ecx, dword [esi + 0x34]
mov edx, dword [esi + 0x38]
add esp, 4
mov dword [edx + ecx*4], eax
mov eax, dword [esi + 0x34]
inc eax
mov dword [esi + 0x34], eax
jmp 0x484245
mov dword [esi + 0x3c], 1
test ebx, ebx
je 0x48426c
push 0x557d84
push 0
call dword [sym.imp.MSVCRT.dll_strtok]
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x48426c
cmp dword [esi + 0x34], 0x2710
jl 0x48414a
mov eax, dword [esp + 0x14]
push eax
call sub.MFC42.DLL_operatordelete
mov eax, dword [esi + 0x34]
add esp, 4
test eax, eax
je 0x4842a6
mov edx, dword [esi + 0x38]
lea ecx, [esp + 0x14]
push ecx
push 0x568998
mov eax, dword [edx]
push 0x105
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4842a6
mov byte [eax], 0
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadCursorA]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
mov ecx, dword [esp + 0x18]
xor eax, eax
mov edx, dword [ecx + 0x158]
mov ecx, dword [esi + 0x34]
test ecx, ecx
mov dword [esi + 0x10], edx
setne al
mov ecx, dword [esp + 0x49c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x498
ret