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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
push 0xffffffffffffffff
push 0x1016e002
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x588
mov eax, dword [0x101b6f10]
push ebx
push esi
push edi
push 0x109ff280
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 0x1001be3f
push esi
push str.CHTEngineHandler
push str.Cannot_load_HT3DHeaven.dll_
jmp 0x1001be72
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 0x1001be83
push esi
push str.CHTEngineHandler
push str.Cannot_Create_3DMgr_
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, 0x80004005
jmp 0x1001c41c
push 0x10
mov dword [0x109ff668], eax
call fcn.10157b9f
pop ecx
mov dword [esp + 0x10], eax
cmp eax, esi
mov dword [esp + 0x59c], esi
je 0x1001bea8
mov ecx, eax
call fcn.1001121d
jmp 0x1001beaa
xor eax, eax
or dword [esp + 0x59c], 0xffffffff
push str.systemHTSpec.cfg
mov ecx, eax
mov dword [ebx + 0x40], eax
call fcn.100112e3
cmp dword [ebx + 0x1e60], esi
je 0x1001bedb
push dword [ebx + 0x40]
mov ecx, ebx
call fcn.100194bf
mov edi, dword [ebp + 8]
jmp 0x1001bf7c
push 0x38
call fcn.10157b9f
pop ecx
mov dword [esp + 0x10], eax
cmp eax, esi
mov dword [esp + 0x59c], 1
je 0x1001beff
mov ecx, eax
call fcn.10044237
jmp 0x1001bf01
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 [0x109ff66c]
mov ecx, dword [eax + 0x1e60]
call fcn.10044278
test al, al
je 0x1001bf53
push dword [ebx + 0x40]
mov ecx, ebx
call fcn.100194bf
mov edi, dword [ebp + 8]
jmp 0x1001bf7a
mov edi, dword [ebp + 8]
lea esi, [ebx + 0x1d2c]
push esi
push str.spec
push str.OPTION
mov ecx, edi
call fcn.1000fcd3
push dword [ebx + 0x40]
mov ecx, ebx
push dword [esi]
call fcn.10018a42
xor esi, esi
mov eax, dword [ebx + 0x1d2c]
dec eax
je 0x1001bfa3
dec eax
je 0x1001bf97
dec eax
jne 0x1001bfad
mov dword [ebx + 0x2164], 0x44e10000
jmp 0x1001bfad
mov dword [ebx + 0x2164], 0x44160000
jmp 0x1001bfad
mov dword [ebx + 0x2164], 0x43340000
lea eax, [esp + 0x20]
push eax
push str.windowed
push str.RENDERER
mov ecx, edi
call fcn.1000ff93
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 0x1001c087
push 0x9c
lea eax, [esp + 0x34]
push esi
push eax
call fcn.10158270
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 0x1001c087
push 4
lea eax, [esp + 0x34]
push eax
call esi
lea ecx, [esp + 0x130]
call fcn.10012ade
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.10010033
lea eax, [esp + 0x234]
push eax
push str.bitspersample
push esi
mov ecx, edi
call fcn.10010033
lea eax, [esp + 0x230]
push eax
push str.volume
push esi
mov ecx, edi
call fcn.1000fdd9
lea eax, [ebx + 0x1e68]
push eax
lea ecx, [esp + 0x134]
call fcn.101511b0
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 0x1001c137
mov esi, 0x80004005
jmp 0x1001c406
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.10157b9f
pop ecx
mov dword [esp + 0x10], eax
test eax, eax
mov byte [esp + 0x59c], 3
je 0x1001c16f
mov ecx, eax
call fcn.101574c0
jmp 0x1001c171
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.1015b734
push eax
call fcn.1015a57a
pop ecx
pop ecx
lea ecx, [esp + 0x250]
call fcn.100128e0
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.1000fdd9
mov eax, dword [ebx + 0x1d34]
mov dword [esp + 0x40c], eax
lea eax, [esp + 0x410]
push eax
push 0x10181220
push esi
mov ecx, edi
call fcn.1000fdd9
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.1000fdd9
lea eax, [esp + 0x360]
push eax
push str.positionY
push esi
mov ecx, edi
call fcn.1000fdd9
lea eax, [esp + 0x364]
push eax
push str.positionZ
push esi
mov ecx, edi
call fcn.1000fdd9
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 [0x10a059f4], esi
jne 0x1001c382
push str.HTWeb.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, esi
mov dword [0x10a0b41c], eax
je 0x1001c382
mov ecx, dword [0x109ff66c]
mov eax, dword [ecx + 0x1d40]
mov ecx, dword [ecx + 0x1d3c]
push esi
push dword [0x10a0b414]
cdq
push esi
push dword [0x10a0b410]
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 0x1017fc1e
push str.static
push esi
call dword [sym.imp.USER32.dll_CreateWindowExA]
cmp dword [0x10a0b420], esi
mov dword [0x10a0b418], eax
jne 0x1001c346
push str.EmbedBrowserObject
push dword [0x10a0b41c]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x10a0b420], eax
cmp dword [0x10a0b424], esi
jne 0x1001c364
push str.UnEmbedBrowserObject
push dword [0x10a0b41c]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x10a0b424], eax
cmp dword [0x10a0b428], esi
jne 0x1001c382
push 0x101811ac
push dword [0x10a0b41c]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x10a0b428], eax
push 0x11c
call fcn.10157b9f
pop ecx
mov dword [esp + 0x10], eax
cmp eax, esi
mov byte [esp + 0x59c], 5
je 0x1001c3a6
mov ecx, eax
call fcn.100dae9c
jmp 0x1001c3a8
xor eax, eax
push 0x40
mov byte [esp + 0x5a0], 4
mov dword [ebx + 0x20e8], eax
call fcn.10157b9f
pop ecx
mov dword [esp + 0x10], eax
cmp eax, esi
mov byte [esp + 0x59c], 6
je 0x1001c3d7
mov ecx, eax
call fcn.10152500
jmp 0x1001c3d9
xor eax, eax
push 1
mov ecx, eax
mov byte [esp + 0x5a0], 4
mov dword [ebx + 0x18a4], eax
call fcn.101525f0
fstp st(0)
lea ecx, [esp + 0x255]
mov byte [esp + 0x59c], 2
call fcn.101512b0
or dword [esp + 0x59c], 0xffffffff
lea ecx, [esp + 0x130]
call fcn.101512b0
mov eax, esi
mov ecx, dword [esp + 0x594]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x58c]
call fcn.101581be
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8