Function at 0x1000c4d0
Capabilities:
Delete file
Read .ini file
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x840
mov eax, dword [0x10042040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
cmp eax, 1
jne 0x1000d126
push 0x10007850
call fcn.10019050
push 0x10007870
call fcn.1002222a
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.10016fc0
add esp, 0x14
lea eax, [ebp - 0x20c]
push 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x1000d10a
cmp eax, 0xff
ja 0x1000d10a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1000c56c
push 0x10
push str.Silent_Hill_3_PC_Fix
push str.Unable_to_get_dll_path___2___ERROR_INSUFFICIENT_BUFFER_
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call fcn.10016cbb
add esp, 8
test eax, eax
je 0x1000c586
xor ecx, ecx
mov word [eax], cx
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.10016fc0
lea eax, [ebp - 0x20c]
push eax
push str._sSilent_Hill_3_PC_Fix.ini
push 0xffffffffffffffff
lea eax, [ebp - 0x414]
push 0x104
push eax
call fcn.10002350
mov esi, eax
lea eax, [ebp - 0x20c]
push eax
push str._s_savedata_
push 0xffffffffffffffff
push 0x104
push 0x10048740
call fcn.10002350
mov edi, eax
lea eax, [ebp - 0x20c]
push eax
push str._sSavedataBackup_
push 0xffffffffffffffff
push 0x104
push 0x100482a0
call fcn.10002350
add esp, 0x48
mov ebx, eax
lea eax, [ebp - 0x20c]
push eax
push str.open___sSoundsSH3_20016.mp3__type_mpegvideo_alias_mp3
push 0xffffffffffffffff
push 0x104
push 0x10048c40
call fcn.10002350
mov dword [ebp - 0x82c], eax
lea eax, [ebp - 0x20c]
push eax
push str.open___sSoundsAchievementUnlocked.mp3__type_mpegvideo_alias_mp3
push 0xffffffffffffffff
push 0x104
push 0x10048500
call fcn.10002350
mov dword [ebp - 0x830], eax
lea eax, [ebp - 0x20c]
push eax
push str._sSoundsSH3_AudioHelper.exe
push 0xffffffffffffffff
push 0x104
push 0x10049db0
call fcn.10002350
mov dword [ebp - 0x834], eax
lea eax, [ebp - 0x20c]
push eax
push str._sSoundsPlaybackDone.bin
push 0xffffffffffffffff
push 0x104
push 0x1004a258
call fcn.10002350
add esp, 0x50
mov dword [ebp - 0x838], eax
lea eax, [ebp - 0x20c]
push eax
push str._sdatamoviehuxx.000
push 0xffffffffffffffff
push 0x104
push 0x10048e68
call fcn.10002350
mov dword [ebp - 0x83c], eax
lea eax, [ebp - 0x20c]
push eax
push str._sdatamoviemuxx.000
push 0xffffffffffffffff
push 0x104
push 0x100489c0
call fcn.10002350
mov dword [ebp - 0x840], eax
lea eax, [ebp - 0x20c]
push eax
push str._sdata_arc.arc
push 0xffffffffffffffff
push 0x104
push 0x10049520
call fcn.10002350
mov dword [ebp - 0x828], eax
lea eax, [ebp - 0x20c]
push eax
push str._sSilent_Hill_3_PC_Fix.log
push 0xffffffffffffffff
push 0x104
push 0x10049300
call fcn.10002350
add esp, 0x50
cmp esi, 0xffffffff
je 0x1000d0ee
cmp edi, 0xffffffff
je 0x1000d0ee
cmp edi, 0xfa
jg 0x1000d0ee
cmp ebx, 0xffffffff
je 0x1000d0ee
cmp dword [ebp - 0x82c], 0xffffffff
je 0x1000d0ee
cmp dword [ebp - 0x830], 0xffffffff
je 0x1000d0ee
cmp dword [ebp - 0x834], 0xffffffff
je 0x1000d0ee
cmp dword [ebp - 0x838], 0xffffffff
je 0x1000d0ee
cmp dword [ebp - 0x83c], 0xffffffff
je 0x1000d0ee
cmp dword [ebp - 0x840], 0xffffffff
je 0x1000d0ee
cmp dword [ebp - 0x828], 0xffffffff
je 0x1000d0ee
cmp eax, 0xffffffff
je 0x1000d0ee
lea eax, [ebp - 0x20c]
push eax
push 0x104
push 0x1004a050
call fcn.1001ce3e
push 0x1003c270
push 0x104
push 0x1004a050
call fcn.1001cea2
add esp, 0x18
lea eax, [ebp - 0x414]
push 0
push 0x80
push 3
push 0
push 1
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x1000c808
push 0x10
push str.Silent_Hill_3_PC_Fix
push str.Unable_to_open_Silent_Hill_3_PC_Fix.ini_
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x20a
call fcn.100151e6
push 0x208
mov esi, eax
push 0
push esi
mov dword [ebp - 0x828], esi
call fcn.10016fc0
lea eax, [ebp - 0x414]
mov byte [esi + 0x208], 0
push eax
push 0x104
push esi
call fcn.1001ce3e
add esp, 0x1c
test eax, eax
jne 0x1000c855
mov byte [esi + 0x208], 1
push 0
push 0x1003c2cc
push 0x1003c2cc
mov ecx, esi
call fcn.10002c60
mov edi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionEx]
mov dword [0x1004a008], eax
test eax, eax
je 0x1000c8b1
cmp eax, 1
jne 0x1000c897
push 0x1000000
push 0
push 0x100484e8
call edi
push 0x10049300
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x1000c8a2
cmp eax, 2
jne 0x1000c8a2
call dword [sym.imp.KERNEL32.dll_AllocConsole]
push str.Silent_Hill_3_PC_Fix_2.6.0_Started__r_n_r_n
push 0
call fcn.10002740
add esp, 8
push 0
push str.BlockThirdPartyDlls
push str.Security
mov ecx, esi
call fcn.10002c60
push 0
push str.LogGameDebugMsg
push 0x1003c2cc
mov ecx, esi
mov dword [0x100484c4], eax
call fcn.10002c60
push 0
push str.LogMapDebugMsg
push 0x1003c2cc
mov ecx, esi
mov dword [0x10049094], eax
call fcn.10002c60
push 0
push str.FixAudio
push str.Audio
mov ecx, esi
mov dword [0x100492ec], eax
call fcn.10002c60
push 8
push str.Language
push str.GameWindow
mov ecx, esi
mov dword [0x10049070], eax
call fcn.10002c60
push 1
push str.RegenerateDisp
push str.GameWindow
mov ecx, esi
mov dword [0x10048734], eax
call fcn.10002c60
push 0
push str.ScreenWidth
push str.GameWindow
mov ecx, esi
mov dword [0x10048e50], eax
call fcn.10002c60
push 0
push str.ScreenHeight
push str.GameWindow
mov ecx, esi
mov dword [0x100484b0], eax
call fcn.10002c60
push 0
push str.RenderWidth
push str.GameWindow
mov ecx, esi
mov dword [0x1004a464], eax
call fcn.10002c60
push 0
push str.RenderHeight
push str.GameWindow
mov ecx, esi
mov dword [0x10049fc8], eax
call fcn.10002c60
push 0
push str.Windowx
push str.GameWindow
mov ecx, esi
mov dword [0x1004a040], eax
call fcn.10002c60
push 0
push str.Windowy
push str.GameWindow
mov ecx, esi
mov dword [0x1004909c], eax
call fcn.10002c60
push 0
push str.WindowedMode
push str.GameWindow
mov ecx, esi
mov dword [0x1004a048], eax
call fcn.10002c60
push 0
push str.Borderless
mov dword [0x1004a460], eax
push str.GameWindow
mov ecx, esi
call fcn.10002c60
push 0
push str.ProcessAffinity
push str.GameWindow
mov ecx, esi
mov dword [0x10048c00], eax
call fcn.10002c60
push 0
push str.Fix2DElements
push str.Graphics
mov ecx, esi
mov dword [0x100484bc], eax
call fcn.10002c60
push 0
push str.StretchMaps
push str.Graphics
mov ecx, esi
mov dword [0x10049da0], eax
call fcn.10002c60
push 0
push str.DOFResolution
push str.Graphics
mov ecx, esi
mov dword [0x100484ac], eax
call fcn.10002c60
push 0
push str.ShadowResolution
push str.Graphics
mov ecx, esi
mov dword [0x10048c38], eax
call fcn.10002c60
push 0
push str.InventoryResolution
push str.Graphics
mov ecx, esi
mov dword [0x1004895c], eax
call fcn.10002c60
push 0
push str.StatusScreenResolution
push str.Graphics
mov ecx, esi
mov dword [0x1004872c], eax
call fcn.10002c60
push 0
push str.FogComplexity
push str.Graphics
mov ecx, esi
mov dword [0x1004894c], eax
call fcn.10002c60
push 0
push str.IncreaseGameplayFOV
push str.Graphics
mov ecx, esi
mov dword [0x10048954], eax
call fcn.10002c60
push 0
push str.DecreaseFOVInCutscenes
push str.Graphics
mov ecx, esi
mov dword [0x10049fdc], eax
call fcn.10002c60
push 0x208
mov dword [0x10048288], eax
lea eax, [ebp - 0x824]
push 0
push eax
call fcn.10016fc0
push 0x208
lea eax, [ebp - 0x61c]
push 0
push eax
call fcn.10016fc0
add esp, 0x10
lea eax, [ebp - 0x61c]
xorps xmm0, xmm0
movsd qword [esp], xmm0
push 0x10036140
push 0x104
push eax
call fcn.1000d470
add esp, 0x14
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.1002216a
push esi
push 0x104
mov dword [eax], 0
lea eax, [ebp - 0x824]
push eax
lea eax, [ebp - 0x61c]
push eax
push str.VerticalCutsceneFOV
push str.Graphics
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1000cbb3
call fcn.1002216a
cmp dword [eax], 0
jne 0x1000cbb3
test ebx, ebx
je 0x1000cbb3
cmp ebx, 0x103
je 0x1000cbb3
lea eax, [ebp - 0x824]
push eax
call fcn.1001cbc6
fstp dword [ebp - 0x828]
movss xmm0, dword [ebp - 0x828]
add esp, 4
jmp 0x1000cbb6
xorps xmm0, xmm0
push 0
push str.FPSModes
push str.Graphics
mov ecx, esi
movss dword [0x100492f4], xmm0
call fcn.10002c60
push 0
push str.LimitFPSInStoreroom
push str.Graphics
mov ecx, esi
mov dword [0x10048bf8], eax
call fcn.10002c60
push 0
push str.HookDX
push str.DirectX
mov ecx, esi
mov dword [0x10048290], eax
call fcn.10002c60
push 0
push str.UseDirectX12
push str.DirectX
mov ecx, esi
mov dword [0x10049778], eax
call fcn.10002c60
push 0
push str.DisableMaximizedWindowedMode
push str.DirectX
mov ecx, esi
mov dword [0x10049fc0], eax
call fcn.10002c60
push 0
push str.ForceVSync
push str.DirectX
mov ecx, esi
mov dword [0x100489a8], eax
call fcn.10002c60
push 0
push str.AnisotropicTextureFiltering
push str.DirectX
mov ecx, esi
mov dword [0x1004a00c], eax
call fcn.10002c60
push 0
push str.Wallhack
push str.DirectX_Misc
mov ecx, esi
mov dword [0x10048e48], eax
call fcn.10002c60
push 0
push str.NoDXFog
push str.DirectX_Misc
mov ecx, esi
mov dword [0x1004a014], eax
call fcn.10002c60
push 0
push str.Gamma
push str.DirectX_Misc
mov ecx, esi
mov dword [0x10048bd4], eax
call fcn.10002c60
push 0
push str.Hotkeys
push str.DirectX_Misc
mov ecx, esi
mov dword [0x1004a020], eax
call fcn.10002c60
push 0
push str.Achievements
push str.SilentHill3
mov ecx, esi
mov dword [0x1004a04c], eax
call fcn.10002c60
push 0
push str.WishHouse
push str.SilentHill3
mov ecx, esi
mov dword [0x100490bc], eax
call fcn.10002c60
push 0
mov dword [0x1004976c], eax
push str.SubwayTypo
push str.SilentHill3
mov ecx, esi
call fcn.10002c60
push 0
push str.ApartmentTypo
push str.SilentHill3
mov ecx, esi
mov dword [0x10048708], eax
call fcn.10002c60
push 0
push str.DisableSafeMode
push str.SilentHill3
mov ecx, esi
mov dword [0x1004975c], eax
call fcn.10002c60
push 0
push str.RemoveCutsceneBorders
push str.SilentHill3
mov ecx, esi
mov dword [0x10049090], eax
call fcn.10002c60
push 0
push str.RemoveBlackBars
push str.SilentHill3
mov ecx, esi
mov dword [0x100484a8], eax
call fcn.10002c60
push 0
push str.UnlockSH2EasterEggs
push str.SilentHill3
mov ecx, esi
mov dword [0x10049088], eax
call fcn.10002c60
push 0
push str.FixOptionMenuFreeze
push str.SilentHill3
mov ecx, esi
mov dword [0x10048990], eax
call fcn.10002c60
push 0
push str.FullscreenPauseMenu
push str.SilentHill3
mov ecx, esi
mov dword [0x10048970], eax
call fcn.10002c60
push 0
push str.FixFMVs
push str.SilentHill3
mov ecx, esi
mov dword [0x10049fec], eax
call fcn.10002c60
push 0
push str.FMVFullscreenMode
push str.SilentHill3
mov ecx, esi
mov dword [0x10049fd0], eax
call fcn.10002c60
push 0
push str.RestoreMissingDialogueSound
push str.SilentHill3
mov ecx, esi
mov dword [0x100484b8], eax
call fcn.10002c60
push 0
push str.RestoreBetaSound
push str.SilentHill3
mov ecx, esi
mov dword [0x100489a4], eax
call fcn.10002c60
push 0
push str.NewSaveSystem
push str.SilentHill3
mov ecx, esi
mov dword [0x10049738], eax
call fcn.10002c60
push 0
push str.ActionLevel
push str.SilentHill3
mov ecx, esi
mov dword [0x10049780], eax
call fcn.10002c60
push 3
push str.RiddleLevel
push str.SilentHill3
mov ecx, esi
mov dword [0x1004a46c], eax
call fcn.10002c60
push 0
push str.UnlockExtraMenuOptions
push str.SilentHill3
mov ecx, esi
mov dword [0x10049fb8], eax
call fcn.10002c60
push 0
push str.UnlockEverything
push str.SilentHill3
mov ecx, esi
mov dword [0x10049078], eax
call fcn.10002c60
push 0
push str.TrialSkip
push str.SilentHill3
mov ecx, esi
mov dword [0x100492d4], eax
call fcn.10002c60
push 0
push str.SkipTrialPicture
push str.SilentHill3
mov ecx, esi
mov dword [0x10049770], eax
call fcn.10002c60
cmp dword [0x1004895c], 0x100
mov dword [0x10049768], eax
jne 0x1000ced4
mov dword [0x1004895c], 0
cmp dword [0x10048c38], 0x40
jne 0x1000cee7
mov dword [0x10048c38], 0
cmp dword [0x1004a46c], 0xd
jbe 0x1000cefa
mov dword [0x1004a46c], 0
cmp dword [0x10049fb8], 3
jbe 0x1000cf0d
mov dword [0x10049fb8], 3
cmp dword [0x10049078], 1
jbe 0x1000cf20
mov dword [0x10049078], 0
cmp dword [0x100492d4], 1
jne 0x1000cf33
mov dword [0x10049078], 0
push 0x280
push str.CreditWidth
push str.Pictures
mov ecx, esi
call fcn.10002c60
push 0x1e0
push str.CreditHeight
push str.Pictures
mov ecx, esi
mov dword [0x1004977c], eax
call fcn.10002c60
push 0
push str.CreditIn43
push str.Pictures
mov ecx, esi
mov dword [0x10049da4], eax
call fcn.10002c60
push 0x200
push str.KcetWidth
push str.Pictures
mov ecx, esi
mov dword [0x1004898c], eax
call fcn.10002c60
push 0x200
push str.KcetHeight
push str.Pictures
mov ecx, esi
mov dword [0x10049734], eax
call fcn.10002c60
push 0x200
push str.KonamiWidth
push str.Pictures
mov ecx, esi
mov dword [0x10049fc4], eax
call fcn.10002c60
push 0x200
push str.KonamiHeight
push str.Pictures
mov ecx, esi
mov dword [0x10048c04], eax
call fcn.10002c60
push 0
push str.LogosIn43
push str.Pictures
mov ecx, esi
mov dword [0x10048c18], eax
call fcn.10002c60
push 0
push str.RedirectRegistry
push str.Registry
mov ecx, esi
mov dword [0x10049ff0], eax
call fcn.10002c60
push 0x20a
push esi
mov dword [0x10048c2c], eax
mov byte [esi + 0x208], 0
call fcn.10015330
add esp, 8
cmp dword [0x10049fc0], 1
jne 0x1000d04f
mov dword [0x10049778], 1
mov dword [0x100489a8], 0
push 0x1000000
push 0
push 0x100490a4
call edi
push 0x1000000
push 0
push 0x1004a028
call edi
push 0x1000000
push 0
push 0x10049744
call edi
push 0x1000000
push 0
push 0x10049508
call edi
mov eax, dword [0x100484bc]
test eax, eax
jne 0x1000d097
push 0x1003cb54
jmp 0x1000d0d3
cmp eax, 1
jne 0x1000d0b1
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_SetProcessAffinityMask]
push str.Singlecore
jmp 0x1000d0d3
cmp eax, 2
jne 0x1000d0bd
push str.Multicore__1_
jmp 0x1000d0d3
cmp eax, 3
jne 0x1000d0c9
push str.Multicore__2_
jmp 0x1000d0d3
cmp eax, 4
jne 0x1000d0e2
push str.Multicore__3_
push 0xf
push 0x10048bd8
call fcn.1001ce3e
add esp, 0xc
xor ecx, ecx
call fcn.10007890
jmp 0x1000d232
push 0x10
push str.Silent_Hill_3_PC_Fix
push str.Unable_to_build_strings__length___260_
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0x10
push str.Silent_Hill_3_PC_Fix
push str.Unable_to_get_dll_path___1_
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
test eax, eax
jne 0x1000d232
xor esi, esi
mov ecx, 1
mov ebx, 0x10048264
lock cmpxchg dword [ebx], ecx
test eax, eax
je 0x1000d165
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
cmp esi, 0x20
jae 0x1000d151
push 0
jmp 0x1000d153
push 1
call edi
inc esi
mov ecx, 1
xor eax, eax
lock cmpxchg dword [ebx], ecx
test eax, eax
jne 0x1000d148
cmp dword [0x10048268], 0
je 0x1000d22e
xor ecx, ecx
call fcn.10001ce0
test eax, eax
jne 0x1000d22e
mov eax, dword [0x10048260]
mov dword [0x10048260], 0
test eax, eax
je 0x1000d1b2
mov edi, dword [sym.imp.KERNEL32.dll_VirtualFree]
nop word [eax + eax]
mov esi, dword [eax]
push 0x8000
push 0
push eax
call edi
mov eax, esi
test esi, esi
jne 0x1000d1a0
push dword [0x1004a474]
push 0
push dword [0x10048268]
call dword [sym.imp.KERNEL32.dll_HeapSize]
mov edx, dword [0x1004a474]
mov ecx, eax
cmp ecx, 0xffffffff
je 0x1000d1eb
test ecx, ecx
je 0x1000d1eb
mov eax, edx
nop dword [eax]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x1000d1e0
push edx
push 0
push dword [0x10048268]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [0x10048268]
call dword [sym.imp.KERNEL32.dll_HeapDestroy]
mov dword [0x10048268], 0
mov dword [0x1004a474], 0
mov dword [0x1004a478], 0
mov dword [0x1004a47c], 0
xor ecx, ecx
xchg dword [ebx], ecx
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100151d3
mov esp, ebp
pop ebp
ret 0xc