Function at 0x4402c1
Capabilities:
Accept command line arguments
Check if file exists
Enumerate processes
Get common file path
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xdac
mov eax, dword [0x5675c8]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0xca0], 0
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0xca4], ebx
call fcn.0043ef48
push eax
lea ecx, [ebp - 0xc94]
call fcn.0043dad9
mov eax, 0x104
mov esi, 0x5699a8
push eax
push eax
mov ecx, esi
call fcn.0043f805
push eax
xor ecx, ecx
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0xffffffffffffffff
mov ecx, esi
call fcn.0043f996
mov edi, dword [sym.imp.VCRUNTIME140.dll_wcsrchr]
push 0x5c
push dword [0x5699a8]
call edi
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x44033b
or esi, 0xffffffff
jmp 0x440343
sub esi, dword [0x5699a8]
sar esi, 1
push esi
lea eax, [ebp - 0xc78]
mov ecx, 0x5699a8
push eax
call fcn.0043f633
push eax
lea ecx, [ebp - 0xc94]
call fcn.0043e0d3
mov ecx, dword [ebp - 0xc78]
lea ecx, [ecx - 0x10]
call fcn.0043f97e
lea eax, [esi + 1]
mov esi, 0x5699a8
push eax
lea eax, [ebp - 0xc78]
mov ecx, esi
push eax
call fcn.0043f6ec
push eax
mov ecx, esi
call fcn.0043e0d3
mov ecx, dword [ebp - 0xc78]
lea ecx, [ecx - 0x10]
call fcn.0043f97e
push 0x2e
push dword [0x5699a8]
call edi
pop ecx
pop ecx
test eax, eax
jne 0x4403b1
or eax, 0xffffffff
jmp 0x4403b9
sub eax, dword [0x5699a8]
sar eax, 1
push eax
lea eax, [ebp - 0xc78]
mov ecx, esi
push eax
call fcn.0043f633
push eax
mov ecx, esi
call fcn.0043e0d3
mov ecx, dword [ebp - 0xc78]
lea ecx, [ecx - 0x10]
call fcn.0043f97e
push 0x51b330
lea eax, [ebp - 0xc94]
push eax
lea eax, [ebp - 0xc9c]
push eax
call fcn.0043e205
add esp, 0xc
call fcn.0043ef48
push eax
lea ecx, [ebp - 0xc90]
call fcn.0043dad9
mov esi, dword [ebp - 0xc9c]
call fcn.0043f5cc
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea ecx, [ebp - 0xc90]
mov edi, 0x51a10c
test eax, eax
je 0x44045e
push dword [ebp - 0xc9c]
mov eax, 0x200
push eax
push eax
call fcn.0043f805
push eax
push edi
push str.gamename
push str.INFO
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 0xffffffffffffffff
lea ecx, [ebp - 0xc90]
call fcn.0043f996
jmp 0x440468
push 0x51b37c
call fcn.0043e123
call fcn.0043f5cc
push dword [ebp - 0xc90]
lea ecx, [eax + 0x73c]
call fcn.0044b100
call fcn.004bc420
push ebx
lea ecx, [ebp - 0xcb4]
call fcn.0043df26
xor eax, eax
mov dword [ebp - 0xc8c], eax
lea eax, [ebp - 0xc98]
push eax
call fcn.004c17b0
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [ebp - 0xc38]
call fcn.0043614c
mov ecx, dword [ebp - 0xc98]
lea edx, [ebp - 0xc38]
push edx
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ebx, vtable.CefStringBase_struct_CefStringTraitsUTF16_.0
lea ecx, [ebp - 0xc38]
mov dword [ebp - 0xc38], ebx
call fcn.00436665
push str.type
lea ecx, [ebp - 0xc38]
call fcn.00436100
mov ecx, dword [ebp - 0xc98]
lea eax, [ebp - 0xc74]
push eax
lea edx, [ebp - 0xc38]
push edx
mov eax, dword [ecx]
lea edx, [ebp - 0xc20]
push edx
call dword [eax + 0x30]
mov ecx, eax
call fcn.00439270
lea ecx, [ebp - 0xc20]
mov dword [ebp - 0xc20], ebx
call fcn.00436665
lea ecx, [ebp - 0xc38]
mov dword [ebp - 0xc38], ebx
call fcn.00436665
push str.renderer
lea ecx, [ebp - 0xc74]
call fcn.0043c11b
test eax, eax
jne 0x440564
push 0x20
call fcn.004ff0c5
xor ebx, ebx
inc ebx
pop ecx
test eax, eax
je 0x44057d
push ebx
mov ecx, eax
call fcn.00438490
jmp 0x44057f
push 0x1c
call fcn.004ff0c5
xor ebx, ebx
inc ebx
pop ecx
test eax, eax
je 0x44057d
push ebx
mov ecx, eax
call fcn.0043dc65
jmp 0x44057f
xor eax, eax
push eax
lea ecx, [ebp - 0xc8c]
call fcn.0043e173
xor eax, eax
push eax
push ecx
mov ecx, esp
push dword [ebp - 0xc8c]
call fcn.0043dc1b
lea eax, [ebp - 0xcb4]
push eax
call fcn.004bc550
mov esi, eax
add esp, 0xc
test esi, esi
js 0x4405b8
xor eax, eax
jmp 0x440ced
call fcn.0043ef48
push eax
lea ecx, [ebp - 0xc84]
call fcn.0043dad9
lea eax, [ebp - 0xc14]
push eax
call fcn.0043f5cc
mov ecx, eax
call fcn.0043ffe3
mov esi, 0x400
test eax, eax
jle 0x440615
push esi
lea eax, [ebp - 0x814]
push eax
lea eax, [ebp - 0xc14]
push esi
push eax
call fcn.0043f5cc
mov ecx, eax
call fcn.004401ec
lea eax, [ebp - 0x814]
push eax
lea ecx, [ebp - 0xc84]
call fcn.0043e123
jmp 0x440621
push edi
lea ecx, [ebp - 0xc84]
call fcn.0043f9ee
xor eax, eax
push esi
push eax
lea eax, [ebp - 0xc14]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
call fcn.0043f5cc
mov edi, dword [ebp - 0xc84]
push edi
lea ecx, [eax + 0x5b0]
call fcn.0044b100
call fcn.0043ef48
push eax
lea ecx, [ebp - 0xc88]
call fcn.0043dad9
xor eax, eax
push eax
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
jne 0x440682
push 0x51a10c
lea ecx, [ebp - 0xc88]
call fcn.0043f9ee
jmp 0x4408a1
call fcn.0043ef48
push eax
lea ecx, [ebp - 0xc78]
call fcn.0043dad9
xor eax, eax
push 0x228
push eax
lea eax, [ebp - 0x63c]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x640], 0x22c
lea eax, [ebp - 0x640]
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x440702
xor ebx, ebx
push 0x208
lea eax, [ebp - 0x20c]
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x638]
call fcn.0043f0b7
add esp, 0x14
lea eax, [ebp - 0x640]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4406c7
xor ebx, ebx
inc ebx
mov ecx, dword [0x5699ac]
xor eax, eax
mov dword [ebp - 0xc80], eax
mov eax, dword [0x5699b0]
sub eax, ecx
sar eax, 2
test eax, eax
je 0x4407c0
mov edi, dword [ebp - 0xc80]
mov eax, dword [ecx + edi*4]
sub eax, 0x10
push eax
call fcn.0043e806
lea ecx, [ebp - 0xc80]
mov dword [esp], 0x51b398
lea esi, [eax + 0x10]
mov dword [ebp - 0xca8], esi
call fcn.0043db63
lea eax, [ebp - 0xc80]
push eax
lea eax, [ebp - 0xca8]
push eax
lea eax, [ebp - 0xca0]
push eax
call fcn.0043e1b0
add esp, 0xc
lea ecx, [ebp - 0xc78]
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
call fcn.0043e446
mov ecx, dword [ebp - 0xca0]
lea ecx, [ecx - 0x10]
call fcn.0043f97e
mov ecx, dword [ebp - 0xc80]
lea ecx, [ecx - 0x10]
call fcn.0043f97e
lea ecx, [esi - 0x10]
call fcn.0043f97e
mov eax, dword [0x5699b0]
inc edi
mov ecx, dword [0x5699ac]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x440728
mov edi, dword [ebp - 0xc84]
mov esi, dword [ebp - 0xc78]
lea eax, [ebp - 0x84]
push 3
push esi
lea ecx, [ebp - 0x88]
mov dword [ebp - 0x88], eax
call fcn.0043f328
push dword [ebp - 0x88]
lea ecx, [ebp - 0xc44]
call fcn.00436198
lea eax, [ebp - 0x84]
cmp dword [ebp - 0x88], eax
je 0x44080c
push dword [ebp - 0x88]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
lea eax, [ebp - 0xc44]
push eax
lea eax, [ebp - 0xc2c]
push eax
call fcn.0043ec25
cmp dword [ebp - 0xc18], 0x10
lea eax, [ebp - 0xc2c]
pop ecx
cmovae eax, dword [ebp - 0xc2c]
pop ecx
lea ecx, [ebp - 0x104]
push 3
mov dword [ebp - 0x108], ecx
lea ecx, [ebp - 0x108]
push eax
call fcn.0043f26d
push dword [ebp - 0x108]
lea ecx, [ebp - 0xc88]
call fcn.0043f9ee
lea eax, [ebp - 0x104]
cmp dword [ebp - 0x108], eax
je 0x44087b
push dword [ebp - 0x108]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
xor eax, eax
lea ecx, [ebp - 0xc2c]
push eax
push ebx
call fcn.00435a6a
xor eax, eax
lea ecx, [ebp - 0xc44]
push eax
push ebx
call fcn.00435a6a
lea ecx, [esi - 0x10]
call fcn.0043f97e
push 0x51a10c
lea ecx, [ebp - 0xc88]
call fcn.0043e861
test eax, eax
je 0x4408cb
call fcn.0043f5cc
push dword [ebp - 0xc88]
lea ecx, [eax + 0x634]
call fcn.0044b100
xor eax, eax
push eax
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
js 0x440cd3
xor eax, eax
push eax
call dword [sym.imp.ole32.dll_OleInitialize]
push dword [ebp - 0xca4]
call fcn.00456350
call fcn.0043f440
xor eax, eax
mov dword [esp], 0x208
push eax
lea eax, [ebp - 0x414]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x414]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov esi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
xor eax, eax
xor ecx, ecx
mov dword [ebp - 0xc48], 7
mov dword [ebp - 0xc4c], ecx
mov word [ebp - 0xc5c], ax
cmp word [ebp - 0x414], ax
je 0x440954
lea eax, [ebp - 0x414]
push eax
call esi
pop ecx
push eax
lea eax, [ebp - 0x414]
push eax
lea ecx, [ebp - 0xc5c]
call fcn.004372e7
push str.HYGame
call esi
pop ecx
push eax
push str.HYGame
lea ecx, [ebp - 0xc5c]
call fcn.0043fcda
cmp dword [ebp - 0xc48], 8
lea esi, [ebp - 0xc5c]
cmovae esi, dword [ebp - 0xc5c]
call fcn.0043f5cc
push esi
lea ecx, [eax + 0x88]
call fcn.0044b100
push 0x51b39c
lea eax, [ebp - 0xc94]
push eax
lea eax, [ebp - 0xc7c]
push eax
call fcn.0043e205
mov esi, dword [ebp - 0xc7c]
add esp, 0xc
call fcn.0043f5cc
push esi
lea ecx, [eax + 0x6b8]
call fcn.0044b100
mov esi, dword [ebp - 0xc7c]
call fcn.0043f5cc
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x440a3d
push dword [ebp - 0xc7c]
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push 0x51b3b4
push 0x51b3b8
push str.Common
call esi
push dword [ebp - 0xc7c]
push 0x51b3e0
push 0x51b3e4
push str.Common
call esi
push dword [ebp - 0xc7c]
push str.1.1.2_TF
push str.Version
push str.GameInfo
call esi
jmp 0x440b77
call fcn.0043ef48
push eax
lea ecx, [ebp - 0xc80]
call fcn.0043dad9
push dword [ebp - 0xc7c]
lea ecx, [ebp - 0xc80]
push 0x10
push 0x10
call fcn.0043f805
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov esi, str.Common
push eax
push 0x51b3b4
push 0x51b3b8
push esi
call edi
push 0x51b3e0
lea ecx, [ebp - 0xc80]
call fcn.0043e861
xor ecx, ecx
test eax, eax
push 1
movzx ebx, cl
pop eax
cmove ebx, eax
call fcn.0043ef48
push eax
lea ecx, [ebp - 0xc78]
call fcn.0043dad9
push dword [ebp - 0xc7c]
lea ecx, [ebp - 0xc78]
push 0x10
push 0x10
call fcn.0043f805
push eax
push 0x51b3b4
push 0x51b3e4
push esi
call edi
mov edi, dword [ebp - 0xc78]
push edi
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wtoi]
pop ecx
lea esi, [eax + 1]
call fcn.0043ef48
push eax
lea ecx, [ebp - 0xc78]
call fcn.0043dad9
push esi
lea eax, [ebp - 0xc78]
push 0x51b430
push eax
call fcn.0043edac
mov esi, dword [ebp - 0xc78]
add esp, 0xc
push dword [ebp - 0xc7c]
push esi
push 0x51b3e4
push str.Common
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea ecx, [esi - 0x10]
call fcn.0043f97e
lea ecx, [edi - 0x10]
call fcn.0043f97e
mov ecx, dword [ebp - 0xc80]
lea ecx, [ecx - 0x10]
call fcn.0043f97e
test bl, bl
je 0x440b6e
call fcn.0043f5cc
mov ecx, eax
call fcn.0043e647
test al, al
je 0x440b6e
push dword [ebp - 0xc7c]
push 0x51b3b4
push 0x51b3b8
push str.Common
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov edi, dword [ebp - 0xc84]
xor ebx, ebx
inc ebx
xor eax, eax
mov dword [ebp - method.CefStructBase_struct_CefSettingsTraits_.virtual_0], vtable.CefStructBase_struct_CefSettingsTraits_.0
lea ecx, [ebp - 0xdac]
mov dword [ebp - 0xcb8], eax
call fcn.0043f412
lea eax, [ebp - 0xc5c]
push eax
lea eax, [ebp - 0xd68]
push eax
lea ecx, [ebp - 0xc20]
call fcn.0043dbeb
mov ecx, eax
call fcn.0043693e
mov esi, vtable.CefStringBase_struct_CefStringTraitsUTF16_.0
lea ecx, [ebp - 0xc20]
mov dword [ebp - 0xc20], esi
call fcn.00436665
push 0x51b438
lea eax, [ebp - 0xd24]
mov dword [ebp - 0xd78], ebx
push eax
lea ecx, [ebp - 0xc20]
mov dword [ebp - 0xcd8], ebx
mov dword [ebp - 0xd6c], ebx
mov dword [ebp - 0xda4], ebx
mov dword [ebp - 0xd0c], 0x63
call fcn.0043dbeb
mov ecx, eax
call fcn.0043ee74
lea ecx, [ebp - 0xc20]
mov dword [ebp - 0xc20], esi
call fcn.00436665
xor eax, eax
push eax
push ecx
mov ecx, esp
push dword [ebp - 0xc8c]
call fcn.0043dc1b
lea eax, [ebp - 0xdac]
push eax
lea eax, [ebp - 0xcb4]
push eax
call fcn.004bc930
push 0x6e0
call fcn.004ff0c5
add esp, 0x14
test eax, eax
je 0x440c5d
mov ecx, eax
call fcn.00440e05
mov esi, eax
xor eax, eax
jmp 0x440c61
xor eax, eax
mov esi, eax
test esi, esi
je 0x440cab
push eax
push 0x385
push 0x656
push eax
push eax
push eax
push bind
push 0x51b440
push eax
mov ecx, esi
call fcn.004577b0
mov ecx, esi
call fcn.00457650
push ebx
push ebx
mov ecx, esi
call fcn.004584c0
call fcn.00453010
call fcn.004bd170
call fcn.0043efff
mov ecx, eax
call fcn.0043f963
lea ecx, [ebp - 0xdac]
call fcn.0043df80
mov ecx, dword [ebp - 0xc7c]
lea ecx, [ecx - 0x10]
call fcn.0043f97e
xor eax, eax
lea ecx, [ebp - 0xc5c]
push eax
push ebx
call fcn.00437091
mov ecx, dword [ebp - 0xc88]
lea ecx, [ecx - 0x10]
call fcn.0043f97e
lea ecx, [edi - 0x10]
call fcn.0043f97e
xor eax, eax
mov esi, eax
push eax
push ebx
lea ecx, [ebp - 0xc74]
call fcn.00435a6a
lea ecx, [ebp - 0xc98]
call fcn.004388e0
lea ecx, [ebp - 0xc8c]
call fcn.0043df9a
mov ecx, dword [ebp - 0xc90]
mov dword [ebp - method.CefStructBase_struct_CefMainArgsTraits_.virtual_0], vtable.CefStructBase_struct_CefMainArgsTraits_.0
lea ecx, [ecx - 0x10]
call fcn.0043f97e
mov ecx, dword [ebp - 0xc9c]
add ecx, 0xfffffff0
call fcn.0043f97e
mov ecx, dword [ebp - 0xc94]
add ecx, 0xfffffff0
call fcn.0043f97e
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004ff7f3
mov esp, ebp
pop ebp
ret 0x10