Function at 0x1001a0a4
Capabilities:
Get common file path

Disassembly:
mov eax, 0x1012a8e2
call fcn.1011695c
sub esp, 0x568
mov eax, dword [0x10169ccc]
xor eax, dword [ebp + 4]
push ebx
push esi
push 0x109b2040
push 0x3e8
mov dword [ebp - 0x10], eax
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push str.HT3DHeaven.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
xor esi, esi
cmp eax, esi
mov dword [ebx + 8], eax
jne 0x1001a103
push esi
push str.CHTEngineHandler
push str.Cannot_load_HT3DHeaven.dll_
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, 0x80004005
jmp 0x1001a5a5
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.HT_pCreate3DMgr
push eax
call edi
push str.HT_hrDestory3DMgr
push dword [ebx + 8]
mov dword [ebx + 0xc], eax
call edi
mov dword [ebx + 0x10], eax
call dword [ebx + 0xc]
cmp eax, esi
mov dword [ebx + 0x14], eax
jne 0x1001a148
push esi
push str.CHTEngineHandler
push str.Cannot_Create_3DMgr_
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, 0x80004005
jmp 0x1001a5a4
push 0x10
mov dword [0x109b2428], eax
call fcn.10115900
pop ecx
mov dword [ebp - 0x20], eax
cmp eax, esi
mov dword [ebp - 4], esi
je 0x1001a168
mov ecx, eax
call fcn.1000fa4c
jmp 0x1001a16a
xor eax, eax
or dword [ebp - 4], 0xffffffff
push str.systemHTSpec.cfg
mov ecx, eax
mov dword [ebx + 0x28], eax
call fcn.1000fb12
cmp dword [ebx + 0x1e30], esi
je 0x1001a197
push dword [ebx + 0x28]
mov ecx, ebx
call fcn.10017784
mov edi, dword [ebp + 8]
jmp 0x1001a235
push 0x38
call fcn.10115900
pop ecx
mov dword [ebp - 0x20], eax
cmp eax, esi
mov dword [ebp - 4], 1
je 0x1001a1b6
mov ecx, eax
call fcn.10041224
jmp 0x1001a1b8
xor eax, eax
mov dword [ebx + 0x1e30], eax
mov esi, str.HTUserSetting.sys
lea edi, [ebp - 0x130]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
or dword [ebp - 4], 0xffffffff
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
push 0x3b
xor eax, eax
pop ecx
lea edi, [ebp - 0x11e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x130]
push eax
mov eax, dword [0x109b242c]
mov ecx, dword [eax + 0x1e30]
call fcn.10041265
test al, al
je 0x1001a20c
push dword [ebx + 0x28]
mov ecx, ebx
call fcn.10017784
mov edi, dword [ebp + 8]
jmp 0x1001a233
mov edi, dword [ebp + 8]
lea esi, [ebx + 0x1cfc]
push esi
push str.spec
push str.OPTION
mov ecx, edi
call fcn.1000e50d
push dword [ebx + 0x28]
mov ecx, ebx
push dword [esi]
call fcn.10016d54
xor esi, esi
mov eax, dword [ebx + 0x1cfc]
dec eax
je 0x1001a25c
dec eax
je 0x1001a250
dec eax
jne 0x1001a266
mov dword [ebx + 0x2128], 0x44e10000
jmp 0x1001a266
mov dword [ebx + 0x2128], 0x44160000
jmp 0x1001a266
mov dword [ebx + 0x2128], 0x43340000
lea eax, [ebp - 0x30]
push eax
push str.windowed
push str.RENDERER
mov ecx, edi
call fcn.1000e7bd
mov eax, dword [ebx + 0x1d0c]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebx + 0x1d10]
mov dword [ebp - 0x28], eax
mov eax, dword [ebx + 0x1d14]
mov dword [ebp - 0x24], eax
mov al, byte [ebp - 0x30]
mov byte [ebx + 0xe4e8], al
lea eax, [ebp - 0x574]
push eax
push 0xffffffffffffffff
push esi
mov byte [ebp - 0x30], 1
call dword [sym.imp.USER32.dll_EnumDisplaySettingsA]
cmp byte [ebx + 0xe4e8], 0
mov eax, dword [ebp - 0x508]
mov dword [ebx + 0xe4ec], eax
mov eax, dword [ebp - 0x504]
mov dword [ebx + 0xe4f0], eax
jne 0x1001a335
push 0x9c
lea eax, [ebp - 0xcc]
push esi
push eax
call fcn.10116190
mov eax, dword [ebx + 0x1d0c]
mov esi, dword [sym.imp.USER32.dll_ChangeDisplaySettingsA]
mov dword [ebp - 0x60], eax
mov eax, dword [ebx + 0x1d10]
add esp, 0xc
mov dword [ebp - 0x5c], eax
push 2
lea eax, [ebp - 0xcc]
push eax
mov word [ebp - 0xa8], 0x9c
mov dword [ebp - 0xa4], 0x1c0000
mov dword [ebp - 0x64], 0x20
call esi
test eax, eax
jne 0x1001a335
push 4
lea eax, [ebp - 0xcc]
push eax
call esi
lea ecx, [ebp - 0x24c]
call fcn.10011498
lea eax, [ebp - 0x140]
push eax
push str.channel
mov esi, str.SOUND
push esi
mov ecx, edi
mov dword [ebp - 4], 2
call fcn.1000e859
lea eax, [ebp - 0x148]
push eax
push str.bitspersample
push esi
mov ecx, edi
call fcn.1000e859
lea eax, [ebp - 0x14c]
push eax
push str.volume
push esi
mov ecx, edi
call fcn.1000e60d
lea eax, [ebx + 0x1e38]
push eax
lea ecx, [ebp - 0x24c]
call fcn.1010f4f0
mov eax, dword [ebx + 0x1e34]
mov ecx, dword [ebx + 0x14]
lea edx, [ebp - 0x24c]
push edx
lea edx, [ebp - 0x30]
push edx
push dword [ebp + 0xc]
mov dword [ebp - 0x13c], eax
mov eax, dword [ebx + 0x1bec]
mov dword [ebp - 0x134], eax
mov eax, dword [ecx]
push 1
call dword [eax + 4]
test eax, eax
je 0x1001a3d8
mov esi, 0x80004005
jmp 0x1001a593
push dword [ebx + 0x1d08]
mov ecx, dword [ebx + 0x14]
push dword [ebx + 0x1d18]
mov eax, dword [ecx]
call dword [eax + 0x244]
push 0x10
call fcn.10115900
pop ecx
mov dword [ebp + 8], eax
test eax, eax
mov byte [ebp - 4], 3
je 0x1001a40b
mov ecx, eax
call fcn.101154e0
jmp 0x1001a40d
xor eax, eax
mov ecx, dword [ebx + 0x14]
mov dword [ebx + 0x1cf8], eax
mov edx, dword [ecx]
push eax
mov byte [ebp - 4], 2
call dword [edx + 0x224]
push 0
call fcn.10118dc9
push eax
call fcn.10117d6a
pop ecx
pop ecx
lea ecx, [ebp - 0x4d8]
call fcn.1001129a
lea eax, [ebp - 0x320]
push eax
push str.near
mov esi, str.CAMERA
push esi
mov ecx, edi
mov byte [ebp - 4], 4
mov dword [ebp - 0x4d8], 0x5b
call fcn.1000e60d
mov eax, dword [ebx + 0x1d04]
mov dword [ebp - 0x31c], eax
lea eax, [ebp - 0x318]
push eax
push 0x10138a8c
push esi
mov ecx, edi
call fcn.1000e60d
mov eax, dword [ebx + 0x1d0c]
mov dword [ebp - 0x368], eax
mov eax, dword [ebx + 0x1d10]
mov dword [ebp - 0x364], eax
lea eax, [ebp - 0x3cc]
push eax
push str.positionX
push esi
mov ecx, edi
call fcn.1000e60d
lea eax, [ebp - 0x3c8]
push eax
push str.positionY
push esi
mov ecx, edi
call fcn.1000e60d
lea eax, [ebp - 0x3c4]
push eax
push 0x10138a68
push esi
mov ecx, edi
call fcn.1000e60d
fldz
fstp dword [ebp - 0x1c]
mov ecx, dword [ebx + 0x14]
fldz
lea esi, [ebp - 0x1c]
fstp dword [ebp - 0x18]
lea edi, [ebp - 0x3c0]
fldz
lea edx, [ebp - 0x4d8]
push edx
fstp dword [ebp - 0x14]
lea edx, [ebx + 0x1668]
fldz
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
fstp dword [ebp - 0x1c]
fld1
fstp dword [ebp - 0x18]
lea esi, [ebp - 0x1c]
fldz
lea edi, [ebp - 0x3b4]
fstp dword [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [ecx]
push edx
call dword [eax + 0x3c]
push 0x11c
call fcn.10115900
pop ecx
mov dword [ebp + 8], eax
test eax, eax
mov byte [ebp - 4], 5
je 0x1001a543
mov ecx, eax
call fcn.100addab
jmp 0x1001a545
xor eax, eax
push 0x40
mov byte [ebp - 4], 4
mov dword [ebx + 0x20b8], eax
call fcn.10115900
pop ecx
mov dword [ebp + 8], eax
test eax, eax
mov byte [ebp - 4], 6
je 0x1001a56b
mov ecx, eax
call fcn.10110760
jmp 0x1001a56d
xor eax, eax
push 1
mov ecx, eax
mov byte [ebp - 4], 4
mov dword [ebx + 0x1874], eax
call fcn.10110850
fstp st(0)
lea ecx, [ebp - 0x4d3]
mov byte [ebp - 4], 2
call fcn.1010f440
xor esi, esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24c]
call fcn.1010f440
mov eax, esi
pop edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
xor ecx, dword [ebp + 4]
pop esi
pop ebx
call fcn.10115a7a
leave
ret 8