Function at 0x401000
Capabilities:
Allocate thread local storage

Disassembly:
push 0x6c
push 0
push 0x490698
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0
call sub.KERNEL32.dll_GetModuleHandleW
mov dword [0x49069c], eax
push 0
push 0x1000
push 0
call sub.KERNEL32.dll_HeapCreate
mov dword [0x490698], eax
call fcn.0040d850
call fcn.0040caba
call fcn.0040c539
call fcn.0040c1b1
call fcn.0040c1a5
call fcn.0040c130
call fcn.0040be70
call fcn.00409fa4
call fcn.00409730
call fcn.00408c4a
call fcn.004083ae
call fcn.0040807d
call fcn.0040716d
call fcn.00405f4c
call fcn.0040399a
call fcn.0040282b
call fcn.0040223c
mov edx, dword [0x490c8c]
push edx
push edx
call fcn.0040c346
push 0x4906b0
call fcn.0040d8d0
call fcn.00403720
mov eax, str.D:Games01_Tomb_Raider__I_TR_GOLD_tmp.jpg
push eax
push 0xffffffff
call fcn.0040844e
mov dword [0x4906a8], eax
push 0xb
mov eax, str.Tahoma
push eax
push 0
call fcn.0040c2c7
push 0xa
mov eax, str.Tahoma
push eax
push 1
call fcn.0040c2c7
mov edx, 0x42c1ee
lea ecx, [0x4906c0]
call fcn.00402008
push 0x58
push 0
call sub.USER32.dll_GetDC
push eax
call sub.GDI32.dll_GetDeviceCaps
mov dword [esp - 4], eax
fild dword [esp - 4]
fdiv qword [0x42c424]
fstp qword [0x4906a0]
mov ebp, 0x42c43c
push ebp
push 0
call fcn.004085e1
fld qword [0x4906a0]
fmul qword [0x42c42c]
push eax
fistp dword [esp]
fld qword [0x4906a0]
fmul qword [0x42c42c]
push eax
fistp dword [esp]
push 0
call fcn.0040868f
push 0x1a4
push 0x271
push 0
push 0
call fcn.00401853
push 0
call fcn.004086a5
push eax
push dword [0x4906c4]
call fcn.00403a40
mov eax, str.MusicTrack26.flac
push eax
call fcn.0040c38b
push edx
push eax
pop ebx
pop edi
cmp ebx, 0x3342c
jne 0x4011ad
cmp edi, 0
je 0x4011b1
xor eax, eax
jmp 0x4011b6
mov eax, 1
or eax, eax
je 0x4011cd
mov eax, 0x42c096
push eax
push dword [0x4906bc]
call fcn.00403a78
jmp 0x4011de
mov eax, 0x42c110
push eax
push dword [0x4906bc]
call fcn.00403a78
mov eax, str.Tomb_Raider_I_Gold.ini
push eax
call fcn.00402c28
and eax, eax
je 0x401249
mov edx, dword [0x490c8c]
push edx
push edx
mov eax, 0x42c1ee
push eax
mov eax, 0x42c222
push eax
call fcn.00402c66
push 0x4906c0
call fcn.0040d8d0
push 0
mov eax, str.gamepad
push eax
call fcn.00402d5a
mov ebx, eax
cmp ebx, 1
jne 0x401239
push 1
push dword [0x4906ec]
call fcn.00403a40
jmp 0x401249
push 0
push dword [0x4906ec]
call fcn.00403a40
push dword [0x4906c0]
mov edx, 0x42c1ee
pop ecx
call fcn.00402040
je 0x401284
call fcn.004017d9
mov eax, 0x42c10a
push eax
push dword [0x4906f8]
call fcn.00403a78
mov edx, 0x42c1ee
lea ecx, [0x4906c0]
call fcn.00402008
jmp 0x4012bd
push dword [0x4906c0]
mov edx, 0x42c146
pop ecx
call fcn.00402040
je 0x4012bd
call fcn.00401c50
mov eax, 0x42c1e8
push eax
push dword [0x4906f8]
call fcn.00403a78
mov edx, 0x42c146
lea ecx, [0x4906c0]
call fcn.00402008
call fcn.004060e2
mov dword [0x4906e4], eax
push dword [0x4906e4]
mov ebx, 0x332c
cmp ebx, dword [esp]
jne 0x401692
call fcn.0040c653
push eax
mov ebx, dword [0x490700]
cmp ebx, dword [esp]
jne 0x4012fb
mov dword [0x4906e4], 0x333c
jmp 0x401691
mov ebx, dword [0x4906dc]
cmp ebx, dword [esp]
jne 0x4013a1
push dword [0x4906ec]
call fcn.00403ac3
mov ebx, eax
and ebx, ebx
jne 0x401334
mov eax, 0x42c028
push eax
mov eax, 0x42c028
push eax
mov eax, str.tombati.exe
push eax
call fcn.004022a9
jmp 0x40139c
push 1
push dword [0x4906f4]
call fcn.004061c9
push 4
mov eax, 0x42c028
push eax
mov eax, str.__hidden
push eax
mov eax, str.gamepad_antimicro.exe
push eax
call fcn.004022c1
mov dword [0x4906b8], eax
push 1
mov eax, 0x42c028
push eax
mov eax, 0x42c028
push eax
mov eax, str.tombati.exe
push eax
call fcn.004022c1
push 0
push dword [0x4906f4]
call fcn.004061c9
push dword [0x4906b8]
call fcn.00402808
jmp 0x401691
mov ebx, dword [0x4906c8]
cmp ebx, dword [esp]
jne 0x401447
push dword [0x4906ec]
call fcn.00403ac3
mov ebx, eax
and ebx, ebx
jne 0x4013da
mov eax, 0x42c028
push eax
mov eax, 0x42c028
push eax
mov eax, str.tombub.exe
push eax
call fcn.004022a9
jmp 0x401442
push 1
push dword [0x4906f4]
call fcn.004061c9
push 4
mov eax, 0x42c028
push eax
mov eax, str.__hidden
push eax
mov eax, str.gamepad_antimicro.exe
push eax
call fcn.004022c1
mov dword [0x4906b8], eax
push 1
mov eax, 0x42c028
push eax
mov eax, 0x42c028
push eax
mov eax, str.tombub.exe
push eax
call fcn.004022c1
push 0
push dword [0x4906f4]
call fcn.004061c9
push dword [0x4906b8]
call fcn.00402808
jmp 0x401691
mov ebx, dword [0x4906e8]
cmp ebx, dword [esp]
jne 0x40146e
mov eax, 0x42c028
push eax
mov eax, 0x42c146
push eax
mov eax, str.Settings.exe
push eax
call fcn.004022a9
jmp 0x401691
mov ebx, dword [0x4906e0]
cmp ebx, dword [esp]
jne 0x401495
mov eax, 0x42c028
push eax
mov eax, 0x42c028
push eax
mov eax, str.gamepad_antimicro.exe
push eax
call fcn.004022a9
jmp 0x401691
mov ebx, dword [0x4906fc]
cmp ebx, dword [esp]
jne 0x4014bc
mov eax, 0x42c028
push eax
push dword [0x4906b0]
mov eax, str.explorer.exe
push eax
call fcn.004022a9
jmp 0x401691
mov ebx, dword [0x4906b4]
cmp ebx, dword [esp]
jne 0x4015ce
mov edx, dword [0x490c8c]
push edx
push edx
push dword [0x4906bc]
call fcn.00403af0
add dword [0x490c8c], 2
mov edx, 0x42c096
pop ecx
mov dword [0x490c8c], ecx
add ecx, dword [0x48f2ac]
call fcn.00402040
je 0x40154b
push dword [0x490c8c]
mov edx, dword [0x4906b0]
push dword [0x490c8c]
push edx
call fcn.0040d950
mov edx, str.setting
push edx
call fcn.0040d950
add dword [0x490c8c], 2
mov eax, 0x42c028
push eax
mov eax, str.settingRussian_Sound.exe
push eax
mov edx, dword [0x48f2ac]
add dword [esp + 8], edx
call fcn.004022a9
pop dword [0x490c8c]
jmp 0x4015c9
mov edx, dword [0x490c8c]
push edx
push edx
push dword [0x4906bc]
call fcn.00403af0
add dword [0x490c8c], 2
mov edx, 0x42c110
pop ecx
mov dword [0x490c8c], ecx
add ecx, dword [0x48f2ac]
call fcn.00402040
je 0x4015c9
push dword [0x490c8c]
mov edx, dword [0x4906b0]
push dword [0x490c8c]
push edx
call fcn.0040d950
mov edx, str.setting
push edx
call fcn.0040d950
add dword [0x490c8c], 2
mov eax, 0x42c028
push eax
mov eax, str.settingEnglish_Sound.exe
push eax
mov edx, dword [0x48f2ac]
add dword [esp + 8], edx
call fcn.004022a9
pop dword [0x490c8c]
jmp 0x401691
mov ebx, dword [0x4906f8]
cmp ebx, dword [esp]
jne 0x401691
mov edx, dword [0x490c8c]
push edx
push edx
push dword [0x4906f8]
call fcn.00403af0
add dword [0x490c8c], 2
mov edx, 0x42c1e8
pop ecx
mov dword [0x490c8c], ecx
add ecx, dword [0x48f2ac]
call fcn.00402040
je 0x401638
call fcn.004017d9
mov eax, 0x42c10a
push eax
push dword [0x4906f8]
call fcn.00403a78
mov edx, 0x42c1ee
lea ecx, [0x4906c0]
call fcn.00402008
jmp 0x401691
mov edx, dword [0x490c8c]
push edx
push edx
push dword [0x4906f8]
call fcn.00403af0
add dword [0x490c8c], 2
mov edx, 0x42c10a
pop ecx
mov dword [0x490c8c], ecx
add ecx, dword [0x48f2ac]
call fcn.00402040
je 0x401691
call fcn.00401c50
mov eax, 0x42c1e8
push eax
push dword [0x4906f8]
call fcn.00403a78
mov edx, 0x42c146
lea ecx, [0x4906c0]
call fcn.00402008
pop eax
pop eax
mov ebx, dword [0x4906e4]
cmp ebx, 0x333c
jne 0x4012bd
mov eax, str.Tomb_Raider_I_Gold.ini
push eax
call fcn.00402df6
and eax, eax
je 0x40177b
mov edx, dword [0x490c8c]
push edx
push edx
push dword [0x4906f8]
call fcn.00403af0
add dword [0x490c8c], 2
mov edx, 0x42c1e8
pop ecx
mov dword [0x490c8c], ecx
add ecx, dword [0x48f2ac]
call fcn.00402040
je 0x4016fe
mov eax, 0x42c146
push eax
mov eax, 0x42c222
push eax
call fcn.00402e04
jmp 0x401742
mov edx, dword [0x490c8c]
push edx
push edx
push dword [0x4906f8]
call fcn.00403af0
add dword [0x490c8c], 2
mov edx, 0x42c10a
pop ecx
mov dword [0x490c8c], ecx
add ecx, dword [0x48f2ac]
call fcn.00402040
je 0x401742
mov eax, 0x42c1ee
push eax
mov eax, 0x42c222
push eax
call fcn.00402e04
push dword [0x4906ec]
call fcn.00403ac3
mov ebx, eax
cmp ebx, 1
jne 0x401766
push 1
mov eax, str.gamepad
push eax
call fcn.00402e60
jmp 0x401776
push 0
mov eax, str.gamepad
push eax
call fcn.00402e60
call fcn.00402e99
jmp 0x40177d
push 0
call 0x40179c
call fcn.0040d8a0
push dword [0x490698]
call sub.KERNEL32.dll_HeapDestroy
call sub.KERNEL32.dll_ExitProcess
call fcn.00402819
call fcn.00403944
call fcn.00405f29
call fcn.0040715c
call fcn.00408070
call fcn.004083a2
call fcn.0040be90
call fcn.0040c31e
call fcn.0040c4e2
call fcn.0040c51b
call fcn.0040d07f
call fcn.0040c120
ret