Function at 0x404140
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0x138
mov eax, dword [0x453edc]
xor eax, esp
mov dword [esp + 0x134], eax
mov eax, dword [ebp + 8]
push esi
push edi
cmp eax, 0x403
je 0x404477
cmp eax, 0xf43
je 0x404477
cmp eax, 0x401
jne 0x4041ad
mov eax, dword [0x4578a8]
mov ecx, dword [0x4574ec]
push 0
push 0x404090
push eax
push 0x44f3f0
push ecx
call dword [sym.imp.USER32.dll_DialogBoxParamA]
mov edx, dword [0x4578a8]
push edx
call dword [sym.imp.USER32.dll_SetFocus]
jmp 0x40447f
cmp eax, 0x405
je 0x404453
cmp eax, 0xf00
je 0x404453
cmp eax, 0xf01
jne 0x404267
fld dword [0x457678]
mov eax, dword [0x457668]
mov ecx, dword [0x457664]
mov edx, dword [0x457660]
sub esp, 0x20
fstp qword [esp + 0x18]
fld dword [0x457674]
fstp qword [esp + 0x10]
fld dword [0x457670]
fstp qword [esp + 8]
fld dword [0x45766c]
fstp qword [esp]
push eax
mov eax, dword [0x455788]
fld dword [0x44f01c]
push ecx
mov ecx, dword [0x455784]
push edx
push eax
push ecx
sub esp, 0x18
fstp qword [esp + 0x10]
lea edx, [esp + 0x84]
fld dword [0x44f018]
fstp qword [esp + 8]
fld dword [0x44f014]
fstp qword [esp]
push str.Camera_lG__lG__lG_nLight_i__i_nView_i__i__i__lG__lG__lG__lG
push edx
call fcn.004343fd
add esp, 0x54
push 0
push str.current_settings
lea eax, [esp + 0x40]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x40447f
cmp eax, 0x402
jne 0x40429a
mov eax, dword [0x44f004]
mov ecx, dword [0x457784]
push 0
xor eax, 1
push eax
push 0xf1
push ecx
mov dword [0x44f004], eax
call dword [sym.imp.USER32.dll_SendMessageA]
call fcn.00403770
jmp 0x40447f
cmp eax, 0x406
jne 0x404397
mov dword [esp + 0x10], 0x44f46c
mov dword [esp + 0x14], 0x44f4a8
mov dword [esp + 0x18], 0x44f4e0
mov dword [esp + 0x1c], 0x44f510
mov dword [esp + 0x20], 0
call fcn.004027c0
push 0x4577a0
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov eax, 0x44f530
mov ecx, eax
lea esp, [esp]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4042f0
mov edi, 0x4577a0
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x404301
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
lea edx, [esp + 0x10]
mov ecx, eax
push edx
and ecx, 3
push 0x44f538
rep movsb byte es:[edi], byte [esi]
call fcn.00401860
push str.Import_3D_Model
push eax
push 0x4577a0
call fcn.00401760
add esp, 0x14
test eax, eax
je 0x40435d
lea eax, [esp + 0x10]
push 0x4577a0
push eax
call fcn.00402880
mov ecx, 0xa
mov esi, eax
mov edi, 0x4574c0
add esp, 8
rep movsd dword es:[edi], dword [esi]
fldz
sub esp, 0x10
fst dword [esp + 0xc]
fst dword [esp + 8]
fstp dword [esp + 4]
fld1
fstp dword [esp]
push 0
push 0
push 0
call fcn.00403270
mov ecx, dword [0x45749c]
add esp, 0x1c
push 0
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
jmp 0x40447f
cmp eax, 0x404
jne 0x40443d
push 0x4577a0
push 0x104
mov dword [esp + 0x18], str..3ds__3D_Studio_
mov dword [esp + 0x1c], str..wrl__Virtual_Reality_Markup_Language_
mov dword [esp + 0x20], str..3dv__3D_View_
mov dword [esp + 0x24], str..zip__model__texture_package_
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov eax, str..3ds
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4043e1
mov edi, 0x4577a0
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4043f2
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
lea edx, [esp + 0x10]
mov ecx, eax
push edx
and ecx, 3
push str.3D_Models
rep movsb byte es:[edi], byte [esi]
call fcn.00401860
push str.Export_3D_Model
push eax
push 0x4577a0
call fcn.004017e0
add esp, 0x14
test eax, eax
je 0x40447f
push 0x4577a0
call fcn.00402980
add esp, 4
jmp 0x40447f
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x134]
xor ecx, esp
call fcn.0043451f
mov esp, ebp
pop ebp
ret
mov eax, dword [0x4578a8]
push 0
push 3
push str.View3D.hlp
push eax
call dword [sym.imp.USER32.dll_WinHelpA]
mov ecx, dword [0x4578a8]
push ecx
call dword [sym.imp.USER32.dll_SetFocus]
jmp 0x40447f
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
mov ecx, dword [esp + 0x13c]
pop edi
pop esi
xor ecx, esp
mov eax, 1
call fcn.0043451f
mov esp, ebp
pop ebp
ret