Function at 0x1001bbbf
Capabilities:
Get common file path
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
push 0xffffffffffffffff
push 0x1016ee47
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x588
mov eax, dword [0x101b7f10]
push ebx
push esi
push edi
push 0x10a00280
push 0x3e8
mov dword [esp + 0x594], 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 + 0x24], eax
jne 0x1001bc22
push esi
push str.CHTEngineHandler
push str.Cannot_load_HT3DHeaven.dll_
jmp 0x1001bc55
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.HT_pCreate3DMgr
push eax
call edi
push str.HT_hrDestory3DMgr
push dword [ebx + 0x24]
mov dword [ebx + 0x28], eax
call edi
mov dword [ebx + 0x2c], eax
call dword [ebx + 0x28]
cmp eax, esi
mov dword [ebx + 0x20], eax
jne 0x1001bc66
push esi
push str.CHTEngineHandler
push str.Cannot_Create_3DMgr_
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, 0x80004005
jmp 0x1001c1ff
push 0x10
mov dword [0x10a00668], eax
call fcn.101589ff
pop ecx
mov dword [esp + 0x10], eax
cmp eax, esi
mov dword [esp + 0x59c], esi
je 0x1001bc8b
mov ecx, eax
call fcn.10011118
jmp 0x1001bc8d
xor eax, eax
or dword [esp + 0x59c], 0xffffffff
push str.systemHTSpec.cfg
mov ecx, eax
mov dword [ebx + 0x40], eax
call fcn.100111de
cmp dword [ebx + 0x1e60], esi
je 0x1001bcbe
push dword [ebx + 0x40]
mov ecx, ebx
call fcn.10019267
mov edi, dword [ebp + 8]
jmp 0x1001bd5f
push 0x38
call fcn.101589ff
pop ecx
mov dword [esp + 0x10], eax
cmp eax, esi
mov dword [esp + 0x59c], 1
je 0x1001bce2
mov ecx, eax
call fcn.10044085
jmp 0x1001bce4
xor eax, eax
mov dword [ebx + 0x1e60], eax
mov esi, str.HTUserSetting.sys
lea edi, [esp + 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
or dword [esp + 0x59c], 0xffffffff
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
push 0x3b
xor eax, eax
pop ecx
lea edi, [esp + 0x42]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x30]
push eax
mov eax, dword [0x10a0066c]
mov ecx, dword [eax + 0x1e60]
call fcn.100440c6
test al, al
je 0x1001bd36
push dword [ebx + 0x40]
mov ecx, ebx
call fcn.10019267
mov edi, dword [ebp + 8]
jmp 0x1001bd5d
mov edi, dword [ebp + 8]
lea esi, [ebx + 0x1d2c]
push esi
push str.spec
push str.OPTION
mov ecx, edi
call fcn.1000fb9b
push dword [ebx + 0x40]
mov ecx, ebx
push dword [esi]
call fcn.100187ea
xor esi, esi
mov eax, dword [ebx + 0x1d2c]
dec eax
je 0x1001bd86
dec eax
je 0x1001bd7a
dec eax
jne 0x1001bd90
mov dword [ebx + 0x2164], 0x44e10000
jmp 0x1001bd90
mov dword [ebx + 0x2164], 0x44160000
jmp 0x1001bd90
mov dword [ebx + 0x2164], 0x43340000
lea eax, [esp + 0x20]
push eax
push str.windowed
push str.RENDERER
mov ecx, edi
call fcn.1000fe5b
mov eax, dword [ebx + 0x1d3c]
mov dword [esp + 0x24], eax
mov eax, dword [ebx + 0x1d40]
mov dword [esp + 0x28], eax
mov eax, dword [ebx + 0x1d44]
mov dword [esp + 0x2c], eax
mov al, byte [esp + 0x20]
mov byte [ebx + 0xe524], al
lea eax, [esp + 0x4e8]
push eax
push 0xffffffffffffffff
push esi
mov byte [esp + 0x2c], 1
call dword [sym.imp.USER32.dll_EnumDisplaySettingsA]
cmp byte [ebx + 0xe524], 0
mov eax, dword [esp + 0x554]
mov dword [ebx + 0xe528], eax
mov eax, dword [esp + 0x558]
mov dword [ebx + 0xe52c], eax
jne 0x1001be6a
push 0x9c
lea eax, [esp + 0x34]
push esi
push eax
call fcn.101590d0
mov eax, dword [ebx + 0x1d3c]
mov esi, dword [sym.imp.USER32.dll_ChangeDisplaySettingsA]
mov dword [esp + 0xa8], eax
mov eax, dword [ebx + 0x1d40]
add esp, 0xc
mov dword [esp + 0xa0], eax
push 2
lea eax, [esp + 0x34]
push eax
mov word [esp + 0x5c], 0x9c
mov dword [esp + 0x60], 0x1c0000
mov dword [esp + 0xa0], 0x20
call esi
test eax, eax
jne 0x1001be6a
push 4
lea eax, [esp + 0x34]
push eax
call esi
lea ecx, [esp + 0x130]
call fcn.100128c1
lea eax, [esp + 0x23c]
push eax
push str.channel
mov esi, str.SOUND
push esi
mov ecx, edi
mov dword [esp + 0x5a8], 2
call fcn.1000fefb
lea eax, [esp + 0x234]
push eax
push str.bitspersample
push esi
mov ecx, edi
call fcn.1000fefb
lea eax, [esp + 0x230]
push eax
push str.volume
push esi
mov ecx, edi
call fcn.1000fca1
lea eax, [ebx + 0x1e68]
push eax
lea ecx, [esp + 0x134]
call fcn.10152010
mov eax, dword [ebx + 0x1e64]
mov ecx, dword [ebx + 0x20]
lea edx, [esp + 0x130]
push edx
lea edx, [esp + 0x24]
push edx
push dword [ebp + 0xc]
mov dword [esp + 0x24c], eax
mov eax, dword [ebx + 0x1c1c]
mov dword [esp + 0x254], eax
mov eax, dword [ecx]
push 1
call dword [eax + 0xc]
test eax, eax
je 0x1001bf1a
mov esi, 0x80004005
jmp 0x1001c1e9
push dword [ebx + 0x1d38]
mov ecx, dword [ebx + 0x20]
push dword [ebx + 0x1d48]
mov eax, dword [ecx]
call dword [eax + 0x268]
push 0x10
call fcn.101589ff
pop ecx
mov dword [esp + 0x10], eax
test eax, eax
mov byte [esp + 0x59c], 3
je 0x1001bf52
mov ecx, eax
call fcn.10158320
jmp 0x1001bf54
xor eax, eax
mov ecx, dword [ebx + 0x20]
mov dword [ebx + 0x1d28], eax
mov edx, dword [ecx]
push eax
mov byte [esp + 0x5a0], 2
call dword [edx + 0x248]
push 0
call fcn.1015c594
push eax
call fcn.1015b3da
pop ecx
pop ecx
lea ecx, [esp + 0x250]
call fcn.100126c3
lea eax, [esp + 0x408]
push eax
push str.near
mov esi, str.CAMERA
push esi
mov ecx, edi
mov byte [esp + 0x5a8], 4
mov dword [esp + 0x25c], 0x5b
call fcn.1000fca1
mov eax, dword [ebx + 0x1d34]
mov dword [esp + 0x40c], eax
lea eax, [esp + 0x410]
push eax
push 0x10182218
push esi
mov ecx, edi
call fcn.1000fca1
mov eax, dword [ebx + 0x1d3c]
mov dword [esp + 0x3c0], eax
mov eax, dword [ebx + 0x1d40]
mov dword [esp + 0x3c4], eax
lea eax, [esp + 0x35c]
push eax
push str.positionX
push esi
mov ecx, edi
call fcn.1000fca1
lea eax, [esp + 0x360]
push eax
push str.positionY
push esi
mov ecx, edi
call fcn.1000fca1
lea eax, [esp + 0x364]
push eax
push str.positionZ
push esi
mov ecx, edi
call fcn.1000fca1
fldz
fstp dword [esp + 0x14]
mov ecx, dword [ebx + 0x20]
fldz
lea esi, [esp + 0x14]
fstp dword [esp + 0x18]
lea edi, [esp + 0x368]
fldz
lea edx, [esp + 0x250]
push edx
fstp dword [esp + 0x20]
lea edx, [ebx + 0x1698]
fldz
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
fstp dword [esp + 0x18]
fld1
fstp dword [esp + 0x1c]
lea esi, [esp + 0x18]
fldz
lea edi, [esp + 0x378]
fstp dword [esp + 0x20]
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 + 0x44]
xor esi, esi
cmp dword [0x10a069f4], esi
jne 0x1001c165
push str.HTWeb.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, esi
mov dword [0x10a0c41c], eax
je 0x1001c165
mov ecx, dword [0x10a0066c]
mov eax, dword [ecx + 0x1d40]
mov ecx, dword [ecx + 0x1d3c]
push esi
push dword [0x10a0c414]
cdq
push esi
push dword [0x10a0c410]
sub eax, edx
push 0x226
sar eax, 1
push 0x320
sub eax, 0x12c
push eax
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
sub eax, 0x190
push eax
push 0x40800000
push 0x10180c16
push str.static
push esi
call dword [sym.imp.USER32.dll_CreateWindowExA]
cmp dword [0x10a0c420], esi
mov dword [0x10a0c418], eax
jne 0x1001c129
push str.EmbedBrowserObject
push dword [0x10a0c41c]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x10a0c420], eax
cmp dword [0x10a0c424], esi
jne 0x1001c147
push str.UnEmbedBrowserObject
push dword [0x10a0c41c]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x10a0c424], eax
cmp dword [0x10a0c428], esi
jne 0x1001c165
push 0x101821a4
push dword [0x10a0c41c]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x10a0c428], eax
push 0x11c
call fcn.101589ff
pop ecx
mov dword [esp + 0x10], eax
cmp eax, esi
mov byte [esp + 0x59c], 5
je 0x1001c189
mov ecx, eax
call fcn.100db1c3
jmp 0x1001c18b
xor eax, eax
push 0x40
mov byte [esp + 0x5a0], 4
mov dword [ebx + 0x20e8], eax
call fcn.101589ff
pop ecx
mov dword [esp + 0x10], eax
cmp eax, esi
mov byte [esp + 0x59c], 6
je 0x1001c1ba
mov ecx, eax
call fcn.10153360
jmp 0x1001c1bc
xor eax, eax
push 1
mov ecx, eax
mov byte [esp + 0x5a0], 4
mov dword [ebx + 0x18a4], eax
call fcn.10153450
fstp st(0)
lea ecx, [esp + 0x255]
mov byte [esp + 0x59c], 2
call fcn.10152110
or dword [esp + 0x59c], 0xffffffff
lea ecx, [esp + 0x130]
call fcn.10152110
mov eax, esi
mov ecx, dword [esp + 0x594]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x58c]
call fcn.1015901e
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8