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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
push 0xffffffffffffffff
push 0x1017bcc7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x588
mov eax, dword [0x101cb280]
push ebx
push esi
push edi
push 0x10a135e0
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 0x1001bcb4
push esi
push str.CHTEngineHandler
push str.Cannot_load_HT3DHeaven.dll_
jmp 0x1001bce7
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 0x1001bcf8
push esi
push str.CHTEngineHandler
push str.Cannot_Create_3DMgr_
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, 0x80004005
jmp 0x1001c291
push 0x10
mov dword [0x10a139c8], eax
call fcn.101656a0
pop ecx
mov dword [esp + 0x10], eax
cmp eax, esi
mov dword [esp + 0x59c], esi
je 0x1001bd1d
mov ecx, eax
call fcn.100111fb
jmp 0x1001bd1f
xor eax, eax
or dword [esp + 0x59c], 0xffffffff
push str.systemHTSpec.cfg
mov ecx, eax
mov dword [ebx + 0x40], eax
call fcn.100112c1
cmp dword [ebx + 0x1e60], esi
je 0x1001bd50
push dword [ebx + 0x40]
mov ecx, ebx
call fcn.10019352
mov edi, dword [ebp + 8]
jmp 0x1001bdf1
push 0x38
call fcn.101656a0
pop ecx
mov dword [esp + 0x10], eax
cmp eax, esi
mov dword [esp + 0x59c], 1
je 0x1001bd74
mov ecx, eax
call fcn.100440ff
jmp 0x1001bd76
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 [0x10a139cc]
mov ecx, dword [eax + 0x1e60]
call fcn.10044141
test al, al
je 0x1001bdc8
push dword [ebx + 0x40]
mov ecx, ebx
call fcn.10019352
mov edi, dword [ebp + 8]
jmp 0x1001bdef
mov edi, dword [ebp + 8]
lea esi, [ebx + 0x1d2c]
push esi
push str.spec
push str.OPTION
mov ecx, edi
call fcn.1000fc7e
push dword [ebx + 0x40]
mov ecx, ebx
push dword [esi]
call fcn.100188d5
xor esi, esi
mov eax, dword [ebx + 0x1d2c]
dec eax
je 0x1001be18
dec eax
je 0x1001be0c
dec eax
jne 0x1001be22
mov dword [ebx + 0x2164], 0x44e10000
jmp 0x1001be22
mov dword [ebx + 0x2164], 0x44160000
jmp 0x1001be22
mov dword [ebx + 0x2164], 0x43340000
lea eax, [esp + 0x20]
push eax
push str.windowed
push str.RENDERER
mov ecx, edi
call fcn.1000ff3e
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 0x1001befc
push 0x9c
lea eax, [esp + 0x34]
push esi
push eax
call fcn.10165d70
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 0x1001befc
push 4
lea eax, [esp + 0x34]
push eax
call esi
lea ecx, [esp + 0x130]
call fcn.10012976
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.1000ffde
lea eax, [esp + 0x234]
push eax
push str.bitspersample
push esi
mov ecx, edi
call fcn.1000ffde
lea eax, [esp + 0x230]
push eax
push str.volume
push esi
mov ecx, edi
call fcn.1000fd84
lea eax, [ebx + 0x1e68]
push eax
lea ecx, [esp + 0x134]
call fcn.101520c0
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 0x1001bfac
mov esi, 0x80004005
jmp 0x1001c27b
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.101656a0
pop ecx
mov dword [esp + 0x10], eax
test eax, eax
mov byte [esp + 0x59c], 3
je 0x1001bfe4
mov ecx, eax
call fcn.101583d0
jmp 0x1001bfe6
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.10169234
push eax
call fcn.1016807a
pop ecx
pop ecx
lea ecx, [esp + 0x250]
call fcn.10012778
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.1000fd84
mov eax, dword [ebx + 0x1d34]
mov dword [esp + 0x40c], eax
lea eax, [esp + 0x410]
push eax
push 0x1018f268
push esi
mov ecx, edi
call fcn.1000fd84
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.1000fd84
lea eax, [esp + 0x360]
push eax
push str.positionY
push esi
mov ecx, edi
call fcn.1000fd84
lea eax, [esp + 0x364]
push eax
push str.positionZ
push esi
mov ecx, edi
call fcn.1000fd84
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 [0x10a19d54], esi
jne 0x1001c1f7
push str.HTWeb.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, esi
mov dword [0x10a1f77c], eax
je 0x1001c1f7
mov ecx, dword [0x10a139cc]
mov eax, dword [ecx + 0x1d40]
mov ecx, dword [ecx + 0x1d3c]
push esi
push dword [0x10a1f774]
cdq
push esi
push dword [0x10a1f770]
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 0x1018dc66
push str.static
push esi
call dword [sym.imp.USER32.dll_CreateWindowExA]
cmp dword [0x10a1f780], esi
mov dword [0x10a1f778], eax
jne 0x1001c1bb
push str.EmbedBrowserObject
push dword [0x10a1f77c]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x10a1f780], eax
cmp dword [0x10a1f784], esi
jne 0x1001c1d9
push str.UnEmbedBrowserObject
push dword [0x10a1f77c]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x10a1f784], eax
cmp dword [0x10a1f788], esi
jne 0x1001c1f7
push 0x1018f1f4
push dword [0x10a1f77c]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x10a1f788], eax
push 0x11c
call fcn.101656a0
pop ecx
mov dword [esp + 0x10], eax
cmp eax, esi
mov byte [esp + 0x59c], 5
je 0x1001c21b
mov ecx, eax
call fcn.100db1c6
jmp 0x1001c21d
xor eax, eax
push 0x40
mov byte [esp + 0x5a0], 4
mov dword [ebx + 0x20e8], eax
call fcn.101656a0
pop ecx
mov dword [esp + 0x10], eax
cmp eax, esi
mov byte [esp + 0x59c], 6
je 0x1001c24c
mov ecx, eax
call fcn.10153410
jmp 0x1001c24e
xor eax, eax
push 1
mov ecx, eax
mov byte [esp + 0x5a0], 4
mov dword [ebx + 0x18a4], eax
call fcn.10153500
fstp st(0)
lea ecx, [esp + 0x255]
mov byte [esp + 0x59c], 2
call fcn.101521c0
or dword [esp + 0x59c], 0xffffffff
lea ecx, [esp + 0x130]
call fcn.101521c0
mov eax, esi
mov ecx, dword [esp + 0x594]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x58c]
call fcn.10165cbe
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8