Function at 0x401000
Capabilities:
Allocate thread local storage

Disassembly:
push 0x9c
push 0
push 0x4a6a68
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0
call sub.KERNEL32.dll_GetModuleHandleW
mov dword [0x4a6a6c], eax
push 0
push 0x1000
push 0
call sub.KERNEL32.dll_HeapCreate
mov dword [0x4a6a68], eax
call fcn.00411130
call fcn.00410755
call fcn.004106e0
call fcn.00410420
call fcn.0040e554
call fcn.0040dce0
call fcn.0040d2bd
call fcn.0040c200
call fcn.0040b964
call fcn.0040b8a0
call fcn.0040b2db
call fcn.0040ad4b
call fcn.00409e10
call fcn.0040979b
call fcn.004083d4
call fcn.00405aaa
call fcn.004051e7
call fcn.0040506d
call fcn.00403c06
call fcn.00403617
call fcn.00403415
call fcn.004047e9
mov edx, dword [0x4a73dc]
push edx
push edx
call fcn.00409927
push 0x4a6a9c
call fcn.004111b0
call fcn.00405830
mov eax, str.D:Games03_Tomb_Raider__III_TR3_GOLD_temp.jpg
push eax
push 0xffffffff
call fcn.0040ba04
mov dword [0x4a6a88], eax
push 0xb
mov eax, str.Tahoma
push eax
push 0
call fcn.0041086b
push 0xa
mov eax, str.Tahoma
push eax
push 1
call fcn.0041086b
push 9
mov eax, str.Tahoma
push eax
push 2
call fcn.0041086b
push 0xc
mov eax, str.Gost
push eax
push 3
call fcn.0041086b
mov edx, 0x45e548
lea ecx, [0x4a6ab0]
call fcn.00403008
mov edx, 0x45e0ac
lea ecx, [0x4a6ac8]
call fcn.00403008
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 [0x45ef08]
fstp qword [0x4a6a70]
mov ebp, 0x45ef20
push ebp
push 0
call fcn.0040bb97
fld qword [0x4a6a70]
fmul qword [0x45ef10]
push eax
fistp dword [esp]
fld qword [0x4a6a70]
fmul qword [0x45ef10]
push eax
fistp dword [esp]
push 0
call fcn.0040bc45
push 0x1a4
push 0x271
push 0
push 0
call fcn.004021a6
push 0
call fcn.0040bc5b
push eax
push dword [0x4a6ab4]
call fcn.00405b50
mov eax, str.audiocdaudio.wad
push eax
call fcn.0040996c
push edx
push eax
pop ebx
pop edi
cmp ebx, 0xe84ca90
jne 0x401200
cmp edi, 0
je 0x401204
xor eax, eax
jmp 0x401209
mov eax, 1
or eax, eax
je 0x401220
mov eax, 0x45e12e
push eax
push dword [0x4a6aac]
call fcn.00405b88
jmp 0x401231
mov eax, str.English
push eax
push dword [0x4a6aac]
call fcn.00405b88
mov eax, str.Default
push eax
push dword [0x4a6a90]
call fcn.00405b88
mov eax, 0x45e0b0
push eax
call fcn.0040996c
push edx
push eax
pop ebx
pop edi
cmp ebx, 0xfffffffe
jne 0x40125b
cmp edi, 0xffffffff
je 0x40125f
xor eax, eax
jmp 0x401264
mov eax, 1
or eax, eax
je 0x4012cd
mov eax, str..amgp
push eax
mov eax, 0x45e0b0
push eax
push 0
call fcn.00409b11
push 0
call fcn.00409c70
and eax, eax
je 0x4012cd
mov edx, dword [0x4a73dc]
push edx
push edx
push dword [0x4a73dc]
push 0
call fcn.00409ac3
add dword [0x4a73dc], 2
push 0xffffffff
push dword [0x4a6a90]
mov edx, dword [0x4a3eb0]
add dword [esp + 8], edx
call fcn.00405bd3
pop dword [0x4a73dc]
jmp 0x40127e
mov eax, str.Tomb_Raider_3_Gold.ini
push eax
call fcn.00404003
and eax, eax
je 0x401370
mov edx, dword [0x4a73dc]
push edx
push edx
mov eax, 0x45e548
push eax
mov eax, 0x45e6cc
push eax
call fcn.00404041
push 0x4a6ab0
call fcn.004111b0
mov edx, dword [0x4a73dc]
push edx
push edx
mov eax, str.Default
push eax
mov eax, str.gpconfig
push eax
call fcn.00404041
push 0x4a6a98
call fcn.004111b0
push dword [0x4a6a98]
push dword [0x4a6a90]
call fcn.00405b88
push 0
mov eax, str.gamepad
push eax
call fcn.00404135
mov ebx, eax
cmp ebx, 1
jne 0x401360
push 1
push dword [0x4a6ae0]
call fcn.00405b50
jmp 0x401370
push 0
push dword [0x4a6ae0]
call fcn.00405b50
mov edx, dword [0x4a73dc]
push edx
push edx
push dword [0x4a6a90]
call fcn.00405c34
add dword [0x4a73dc], 2
mov edx, str.Default
pop ecx
mov dword [0x4a73dc], ecx
add ecx, dword [0x4a3eb0]
call fcn.00403060
je 0x4013b5
mov edx, 0x45e028
lea ecx, [0x4a6a7c]
call fcn.00403008
jmp 0x401413
push dword [0x4a73dc]
mov edx, str.__profile
push edx
call fcn.00411230
mov edx, dword [0x4a6ac8]
push edx
call fcn.00411230
mov edx, dword [0x4a6a9c]
push edx
call fcn.00411230
mov edx, str.gamepadprofiles_
push edx
call fcn.00411230
mov edx, dword [0x4a73dc]
push edx
push edx
push dword [0x4a6a90]
call fcn.00405c34
pop eax
mov edx, dword [0x4a6ac8]
push edx
call fcn.00411230
push 0x4a6a7c
call fcn.004111b0
push dword [0x4a6ab0]
mov edx, 0x45e548
pop ecx
call fcn.00403060
je 0x40144e
call fcn.0040211b
mov eax, 0x45e25c
push eax
push dword [0x4a6af4]
call fcn.00405b88
mov edx, 0x45e548
lea ecx, [0x4a6ab0]
call fcn.00403008
jmp 0x401487
push dword [0x4a6ab0]
mov edx, 0x45e35a
pop ecx
call fcn.00403060
je 0x401487
call fcn.0040272b
mov eax, 0x45e4fa
push eax
push dword [0x4a6af4]
call fcn.00405b88
mov edx, 0x45e35a
lea ecx, [0x4a6ab0]
call fcn.00403008
call fcn.0040856a
mov dword [0x4a6ad8], eax
push dword [0x4a6ad8]
mov ebx, 0x332d
cmp ebx, dword [esp]
jne 0x40197c
call fcn.0040ae65
push eax
mov ebx, 1
cmp ebx, dword [esp]
jne 0x4014d1
mov eax, 0x45e028
push eax
mov eax, str._setup
push eax
mov eax, str.tomb3.exe
push eax
call fcn.00403684
jmp 0x401976
mov ebx, 2
cmp ebx, dword [esp]
jne 0x4014f7
mov eax, str.gold_
push eax
mov eax, str._setup
push eax
mov eax, str.gold_tr3gold.exe
push eax
call fcn.00403684
jmp 0x401976
mov ebx, 3
cmp ebx, dword [esp]
jne 0x401551
push dword [0x4a73dc]
mov edx, dword [0x4a6a9c]
push dword [0x4a73dc]
push edx
call fcn.00411230
mov edx, str.setting
push edx
call fcn.00411230
add dword [0x4a73dc], 2
mov eax, 0x45e028
push eax
mov eax, str.settingNormal_Screen__4x3_.exe
push eax
mov edx, dword [0x4a3eb0]
add dword [esp + 8], edx
call fcn.00403684
pop dword [0x4a73dc]
jmp 0x401976
mov ebx, 4
cmp ebx, dword [esp]
jne 0x4015ab
push dword [0x4a73dc]
mov edx, dword [0x4a6a9c]
push dword [0x4a73dc]
push edx
call fcn.00411230
mov edx, str.setting
push edx
call fcn.00411230
add dword [0x4a73dc], 2
mov eax, 0x45e028
push eax
mov eax, str.settingNormal_Screen__5x4_.exe
push eax
mov edx, dword [0x4a3eb0]
add dword [esp + 8], edx
call fcn.00403684
pop dword [0x4a73dc]
jmp 0x401976
mov ebx, 5
cmp ebx, dword [esp]
jne 0x401605
push dword [0x4a73dc]
mov edx, dword [0x4a6a9c]
push dword [0x4a73dc]
push edx
call fcn.00411230
mov edx, str.setting
push edx
call fcn.00411230
add dword [0x4a73dc], 2
mov eax, 0x45e028
push eax
mov eax, str.settingWide_Screen__16x9_.exe
push eax
mov edx, dword [0x4a3eb0]
add dword [esp + 8], edx
call fcn.00403684
pop dword [0x4a73dc]
jmp 0x401976
mov ebx, 6
cmp ebx, dword [esp]
jne 0x40165f
push dword [0x4a73dc]
mov edx, dword [0x4a6a9c]
push dword [0x4a73dc]
push edx
call fcn.00411230
mov edx, str.setting
push edx
call fcn.00411230
add dword [0x4a73dc], 2
mov eax, 0x45e028
push eax
mov eax, str.settingWide_Screen__16x10_.exe
push eax
mov edx, dword [0x4a3eb0]
add dword [esp + 8], edx
call fcn.00403684
pop dword [0x4a73dc]
jmp 0x401976
mov ebx, 7
cmp ebx, dword [esp]
jne 0x4016b9
push dword [0x4a73dc]
mov eax, 0x45e028
push eax
mov edx, dword [0x4a6a9c]
push dword [0x4a73dc]
push edx
call fcn.00411230
mov edx, str.settingScreen_aspect_ratio.txt
push edx
call fcn.00411230
add dword [0x4a73dc], 2
mov eax, str.notepad.exe
push eax
mov edx, dword [0x4a3eb0]
add dword [esp + 4], edx
call fcn.00403684
pop dword [0x4a73dc]
jmp 0x401976
mov ebx, 8
cmp ebx, dword [esp]
jne 0x40190b
mov edx, dword [0x4a73dc]
push edx
push edx
push dword [0x4a6af4]
call fcn.00405c34
add dword [0x4a73dc], 2
mov edx, 0x45e4fa
pop ecx
mov dword [0x4a73dc], ecx
add ecx, dword [0x4a3eb0]
call fcn.00403060
je 0x401712
push 0x40
mov eax, 0x45e6d4
push eax
mov eax, str.Game_Crash_Fix
push eax
call fcn.0040344e
jmp 0x401728
push 0x40
mov eax, str.Tune_the_game_and_after_the_main_menu_appears__exit_it__r_nThen_run_The_Lost_Artifact
push eax
mov eax, str.Game_Crash_Fix
push eax
call fcn.0040344e
mov eax, str.golddataTOMBPC.DAT
push eax
mov eax, str.dataTOMBPC.DAT
push eax
call fcn.00409cb4
push dword [0x4a73dc]
push 1
mov edx, dword [0x4a6a9c]
push dword [0x4a73dc]
push edx
call fcn.00411230
mov edx, 0x45e39c
push edx
call fcn.00411230
add dword [0x4a73dc], 2
mov eax, str._setup
push eax
mov eax, str.tomb3.exe
push eax
mov edx, dword [0x4a3eb0]
add dword [esp + 8], edx
call fcn.0040369c
pop dword [0x4a73dc]
mov eax, str.golddataTOMBPC.DAT
push eax
call fcn.00409d07
mov dword [0x4a6aa0], 0
mov eax, str.goldconfig.txt
push eax
push 0
call fcn.0040a0f0
mov eax, str.goldconfig.tmp
push eax
push 1
call fcn.0040a020
push 0
call fcn.0040a1b0
mov ebx, eax
and ebx, ebx
jne 0x40182b
mov edx, dword [0x4a73dc]
push edx
push edx
push 0
call fcn.0040a340
push 0x4a6a8c
call fcn.004111b0
push dword [0x4a6a8c]
mov edx, str.MMX_1
pop ecx
call fcn.00403060
jne 0x40180f
push dword [0x4a6a8c]
push 1
call fcn.0040a360
jmp 0x401829
mov eax, str.MMX_0
push eax
push 1
call fcn.0040a360
mov dword [0x4a6aa0], 1
jmp 0x4017be
push 0
call fcn.00409d40
push 1
call fcn.00409d40
mov eax, str.goldconfig.txt
push eax
call fcn.00409d07
mov eax, str.goldconfig.txt
push eax
mov eax, str.goldconfig.tmp
push eax
call fcn.00409d15
mov edx, dword [0x4a73dc]
push edx
push edx
push dword [0x4a6af4]
call fcn.00405c34
add dword [0x4a73dc], 2
mov edx, 0x45e4fa
pop ecx
mov dword [0x4a73dc], ecx
add ecx, dword [0x4a3eb0]
call fcn.00403060
je 0x4018b0
mov edx, 0x45ebd4
lea ecx, [0x4a6a78]
call fcn.00403008
mov edx, 0x45e694
lea ecx, [0x4a6a80]
call fcn.00403008
jmp 0x4018d0
mov edx, str.Game_Crash_Fix___OK
lea ecx, [0x4a6a78]
call fcn.00403008
mov edx, str.Game_Crash_Fix___Failed
lea ecx, [0x4a6a80]
call fcn.00403008
mov ebx, dword [0x4a6aa0]
cmp ebx, 1
jne 0x4018f3
push 0x40
push dword [0x4a6a78]
mov eax, 0x45e028
push eax
call fcn.0040344e
jmp 0x401909
push 0x10
push dword [0x4a6a80]
mov eax, 0x45e028
push eax
call fcn.0040344e
jmp 0x401976
mov ebx, 9
cmp ebx, dword [esp]
jne 0x401976
push dword [0x4a73dc]
push 1
mov eax, 0x45e028
push eax
mov edx, dword [0x4a6a9c]
push dword [0x4a73dc]
push edx
call fcn.00411230
mov edx, 0x45e028
push edx
call fcn.00411230
add dword [0x4a73dc], 2
mov eax, str.dgVoodooCpl.exe
push eax
mov edx, dword [0x4a3eb0]
add dword [esp + 4], edx
call fcn.0040369c
pop dword [0x4a73dc]
mov eax, str.golddgVoodoo.conf
push eax
mov eax, str.dgVoodoo.conf
push eax
call fcn.00409cb4
pop eax
jmp 0x401f8f
mov ebx, 0x332c
cmp ebx, dword [esp]
jne 0x401f8f
call fcn.0040ae74
push eax
mov ebx, dword [0x4a6b00]
cmp ebx, dword [esp]
jne 0x4019aa
mov dword [0x4a6ad8], 0x333c
jmp 0x401f8e
mov ebx, dword [0x4a6ad0]
cmp ebx, dword [esp]
jne 0x401a87
push dword [0x4a6ae0]
call fcn.00405c9c
mov ebx, eax
and ebx, ebx
jne 0x4019e6
mov eax, 0x45e028
push eax
mov eax, 0x45e028
push eax
mov eax, str.tomb3.exe
push eax
call fcn.00403684
jmp 0x401a82
push 1
push dword [0x4a6ae8]
call fcn.00408651
push dword [0x4a73dc]
push 4
mov eax, str.gamepad_
push eax
push dword [0x4a73dc]
mov edx, str.__hidden
push edx
call fcn.00411230
mov edx, dword [0x4a6a7c]
push edx
call fcn.00411230
add dword [0x4a73dc], 2
mov eax, str.gamepad_antimicro.exe
push eax
mov edx, dword [0x4a3eb0]
add dword [esp + 4], edx
call fcn.0040369c
pop dword [0x4a73dc]
mov dword [0x4a6aa8], eax
push 1
mov eax, 0x45e028
push eax
mov eax, 0x45e028
push eax
mov eax, str.tomb3.exe
push eax
call fcn.0040369c
push 0
push dword [0x4a6ae8]
call fcn.00408651
push dword [0x4a6aa8]
call fcn.00403be3
jmp 0x401f8e
mov ebx, dword [0x4a6ab8]
cmp ebx, dword [esp]
jne 0x401b64
push dword [0x4a6ae0]
call fcn.00405c9c
mov ebx, eax
and ebx, ebx
jne 0x401ac3
mov eax, str.gold_
push eax
mov eax, 0x45e028
push eax
mov eax, str.gold_tr3gold.exe
push eax
call fcn.00403684
jmp 0x401b5f
push 1
push dword [0x4a6ae8]
call fcn.00408651
push dword [0x4a73dc]
push 4
mov eax, str.gamepad_
push eax
push dword [0x4a73dc]
mov edx, str.__hidden
push edx
call fcn.00411230
mov edx, dword [0x4a6a7c]
push edx
call fcn.00411230
add dword [0x4a73dc], 2
mov eax, str.gamepad_antimicro.exe
push eax
mov edx, dword [0x4a3eb0]
add dword [esp + 4], edx
call fcn.0040369c
pop dword [0x4a73dc]
mov dword [0x4a6aa8], eax
push 1
mov eax, str.gold_
push eax
mov eax, 0x45e028
push eax
mov eax, str.gold_tr3gold.exe
push eax
call fcn.0040369c
push 0
push dword [0x4a6ae8]
call fcn.00408651
push dword [0x4a6aa8]
call fcn.00403be3
jmp 0x401f8e
mov ebx, dword [0x4a6adc]
cmp ebx, dword [esp]
jne 0x401cdc
push 0
call fcn.0040520e
mov eax, str.Tomb_Raider_III
push eax
push 1
call fcn.004052fa
mov eax, str.The_Lost_Artifact
push eax
push 2
call fcn.004052fa
call fcn.0040530c
mov eax, str.dgVoodoo2
push eax
push 9
call fcn.004052fa
call fcn.0040530c
mov eax, str.The_Lost_Artifact___Ryzen_Crash_Fix
push eax
push 8
call fcn.004052fa
call fcn.0040530c
mov edx, dword [0x4a73dc]
push edx
push edx
push dword [0x4a6af4]
call fcn.00405c34
add dword [0x4a73dc], 2
mov edx, 0x45e4fa
pop ecx
mov dword [0x4a73dc], ecx
add ecx, dword [0x4a3eb0]
call fcn.00403060
je 0x401c61
mov eax, 0x45ecf4
push eax
call fcn.00405423
mov eax, str.4:3__
push eax
push 3
call fcn.004052fa
mov eax, str.5:4__
push eax
push 4
call fcn.004052fa
mov eax, str.16:9__
push eax
push 5
call fcn.004052fa
mov eax, str.16:10__
push eax
push 6
call fcn.004052fa
call fcn.0040530c
mov eax, 0x45ee56
push eax
push 7
call fcn.004052fa
jmp 0x401cc1
mov eax, 0x45e500
push eax
call fcn.00405423
mov eax, str.4:3___Normal_screen
push eax
push 3
call fcn.004052fa
mov eax, str.5:4___Normal_screen
push eax
push 4
call fcn.004052fa
mov eax, str.16:9___Wide_screen
push eax
push 5
call fcn.004052fa
mov eax, str.16:10___Wide_screen
push eax
push 6
call fcn.004052fa
call fcn.0040530c
mov eax, str.Screen_aspect_ratio___Information
push eax
push 7
call fcn.004052fa
push dword [0x4a6ae8]
call fcn.00408663
push eax
push 0
call fcn.00405431
jmp 0x401f8e
mov ebx, dword [0x4a6ad4]
cmp ebx, dword [esp]
jne 0x401d03
mov eax, 0x45e028
push eax
mov eax, 0x45e028
push eax
mov eax, str.gamepad_antimicro.exe
push eax
call fcn.00403684
jmp 0x401f8e
mov ebx, dword [0x4a6af8]
cmp ebx, dword [esp]
jne 0x401d2a
mov eax, 0x45e028
push eax
push dword [0x4a6a9c]
mov eax, str.explorer.exe
push eax
call fcn.00403684
jmp 0x401f8e
mov ebx, dword [0x4a6aa4]
cmp ebx, dword [esp]
jne 0x401e14
mov edx, dword [0x4a73dc]
push edx
push edx
push dword [0x4a6aac]
call fcn.00405c34
add dword [0x4a73dc], 2
mov edx, 0x45e12e
pop ecx
mov dword [0x4a73dc], ecx
add ecx, dword [0x4a3eb0]
call fcn.00403060
je 0x401da5
push dword [0x4a73dc]
mov edx, dword [0x4a6a9c]
push dword [0x4a73dc]
push edx
call fcn.00411230
mov edx, str.settingRussian_Sound.zip
push edx
call fcn.00411230
mov edx, dword [0x4a3eb0]
add dword [esp], edx
call fcn.004027b6
pop dword [0x4a73dc]
jmp 0x401e0f
mov edx, dword [0x4a73dc]
push edx
push edx
push dword [0x4a6aac]
call fcn.00405c34
add dword [0x4a73dc], 2
mov edx, str.English
pop ecx
mov dword [0x4a73dc], ecx
add ecx, dword [0x4a3eb0]
call fcn.00403060
je 0x401e0f
push dword [0x4a73dc]
mov edx, dword [0x4a6a9c]
push dword [0x4a73dc]
push edx
call fcn.00411230
mov edx, str.settingEnglish_Sound.zip
push edx
call fcn.00411230
mov edx, dword [0x4a3eb0]
add dword [esp], edx
call fcn.004027b6
pop dword [0x4a73dc]
jmp 0x401f8e
mov ebx, dword [0x4a6af4]
cmp ebx, dword [esp]
jne 0x401edc
mov edx, dword [0x4a73dc]
push edx
push edx
push dword [0x4a6af4]
call fcn.00405c34
add dword [0x4a73dc], 2
mov edx, 0x45e4fa
pop ecx
mov dword [0x4a73dc], ecx
add ecx, dword [0x4a3eb0]
call fcn.00403060
je 0x401e7e
call fcn.0040211b
mov eax, 0x45e25c
push eax
push dword [0x4a6af4]
call fcn.00405b88
mov edx, 0x45e548
lea ecx, [0x4a6ab0]
call fcn.00403008
jmp 0x401ed7
mov edx, dword [0x4a73dc]
push edx
push edx
push dword [0x4a6af4]
call fcn.00405c34
add dword [0x4a73dc], 2
mov edx, 0x45e25c
pop ecx
mov dword [0x4a73dc], ecx
add ecx, dword [0x4a3eb0]
call fcn.00403060
je 0x401ed7
call fcn.0040272b
mov eax, 0x45e4fa
push eax
push dword [0x4a6af4]
call fcn.00405b88
mov edx, 0x45e35a
lea ecx, [0x4a6ab0]
call fcn.00403008
jmp 0x401f8e
mov ebx, dword [0x4a6a90]
cmp ebx, dword [esp]
jne 0x401f8e
mov edx, dword [0x4a73dc]
push edx
push edx
push dword [0x4a6a90]
call fcn.00405c34
add dword [0x4a73dc], 2
mov edx, str.Default
pop ecx
mov dword [0x4a73dc], ecx
add ecx, dword [0x4a3eb0]
call fcn.00403060
je 0x401f30
mov edx, 0x45e028
lea ecx, [0x4a6a7c]
call fcn.00403008
jmp 0x401f8e
push dword [0x4a73dc]
mov edx, str.__profile
push edx
call fcn.00411230
mov edx, dword [0x4a6ac8]
push edx
call fcn.00411230
mov edx, dword [0x4a6a9c]
push edx
call fcn.00411230
mov edx, str.gamepadprofiles_
push edx
call fcn.00411230
mov edx, dword [0x4a73dc]
push edx
push edx
push dword [0x4a6a90]
call fcn.00405c34
pop eax
mov edx, dword [0x4a6ac8]
push edx
call fcn.00411230
push 0x4a6a7c
call fcn.004111b0
pop eax
pop eax
mov ebx, dword [0x4a6ad8]
cmp ebx, 0x333c
jne 0x401487
mov eax, str.Tomb_Raider_3_Gold.ini
push eax
call fcn.004041d1
and eax, eax
je 0x4020b3
mov edx, dword [0x4a73dc]
push edx
push edx
push dword [0x4a6af4]
call fcn.00405c34
add dword [0x4a73dc], 2
mov edx, 0x45e4fa
pop ecx
mov dword [0x4a73dc], ecx
add ecx, dword [0x4a3eb0]
call fcn.00403060
je 0x401ffb
mov eax, 0x45e35a
push eax
mov eax, 0x45e6cc
push eax
call fcn.004041df
jmp 0x40203f
mov edx, dword [0x4a73dc]
push edx
push edx
push dword [0x4a6af4]
call fcn.00405c34
add dword [0x4a73dc], 2
mov edx, 0x45e25c
pop ecx
mov dword [0x4a73dc], ecx
add ecx, dword [0x4a3eb0]
call fcn.00403060
je 0x40203f
mov eax, 0x45e548
push eax
mov eax, 0x45e6cc
push eax
call fcn.004041df
push dword [0x4a6ae0]
call fcn.00405c9c
mov ebx, eax
cmp ebx, 1
jne 0x402063
push 1
mov eax, str.gamepad
push eax
call fcn.0040423b
jmp 0x402073
push 0
mov eax, str.gamepad
push eax
call fcn.0040423b
mov edx, dword [0x4a73dc]
push edx
push edx
push dword [0x4a73dc]
push dword [0x4a6a90]
call fcn.00405c34
add dword [0x4a73dc], 2
mov eax, str.gpconfig
push eax
mov edx, dword [0x4a3eb0]
add dword [esp + 4], edx
call fcn.004041df
pop dword [0x4a73dc]
call fcn.00404274
jmp 0x4020b5
push 0
call 0x4020d4
call fcn.00411180
push dword [0x4a6a68]
call sub.KERNEL32.dll_HeapDestroy
call sub.KERNEL32.dll_ExitProcess
call fcn.00403bf4
call fcn.00405061
call fcn.00405a54
call fcn.004083b1
call fcn.0040978a
call fcn.00409d2e
call fcn.00409e00
call fcn.0040ad2d
call fcn.0040b958
call fcn.0040d2b0
call fcn.00410440
call fcn.004108c2
call fcn.004108ea
call fcn.004106d0
ret