Function at 0x440290
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, 0xdb0
mov eax, dword [0x5655c8]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0xca4], 0
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0xca8], ebx
call fcn.0043ef18
push eax
lea ecx, [ebp - 0xc80]
call fcn.0043daa9
call fcn.0043ef18
push eax
lea ecx, [ebp - 0xc98]
call fcn.0043daa9
mov eax, 0x104
lea ecx, [ebp - 0xc80]
push eax
push eax
call fcn.0043f7d5
push eax
xor ecx, ecx
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0xffffffffffffffff
lea ecx, [ebp - 0xc80]
call fcn.0043f966
mov edi, dword [ebp - 0xc80]
push 0x5c
push edi
call dword [sym.imp.VCRUNTIME140.dll_wcsrchr]
pop ecx
pop ecx
test eax, eax
jne 0x44031b
or eax, 0xffffffff
jmp 0x44031f
sub eax, edi
sar eax, 1
push eax
lea eax, [ebp - 0xc7c]
push eax
lea ecx, [ebp - 0xc80]
call fcn.0043f603
push eax
lea ecx, [ebp - 0xc98]
call fcn.0043e0a3
mov ecx, dword [ebp - 0xc7c]
lea ecx, [ecx - 0x10]
call fcn.0043f94e
push 0x51a2e8
lea eax, [ebp - 0xc98]
push eax
lea eax, [ebp - 0xca0]
push eax
call fcn.0043e1d5
add esp, 0xc
call fcn.0043ef18
push eax
lea ecx, [ebp - 0xc90]
call fcn.0043daa9
mov esi, dword [ebp - 0xca0]
call fcn.0043f59c
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea ecx, [ebp - 0xc90]
test eax, eax
je 0x4403cb
push dword [ebp - 0xca0]
mov eax, 0x200
push eax
push eax
call fcn.0043f7d5
push eax
push 0x5190cc
push str.gamename
push str.INFO
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 0xffffffffffffffff
lea ecx, [ebp - 0xc90]
call fcn.0043f966
jmp 0x4403d5
push 0x51a334
call fcn.0043e0f3
call fcn.0043f59c
push dword [ebp - 0xc90]
lea ecx, [eax + 0x73c]
call fcn.00449780
call fcn.004baac0
push ebx
lea ecx, [ebp - 0xcb8]
call fcn.0043def6
xor eax, eax
mov dword [ebp - 0xc8c], eax
lea eax, [ebp - 0xc9c]
push eax
call fcn.004bfe50
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [ebp - 0xc38]
call fcn.0043611c
mov ecx, dword [ebp - 0xc9c]
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.00436635
push str.type
lea ecx, [ebp - 0xc38]
call fcn.004360d0
mov ecx, dword [ebp - 0xc9c]
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.00439240
lea ecx, [ebp - 0xc20]
mov dword [ebp - 0xc20], ebx
call fcn.00436635
lea ecx, [ebp - 0xc38]
mov dword [ebp - 0xc38], ebx
call fcn.00436635
push str.renderer
lea ecx, [ebp - 0xc74]
call fcn.0043c0eb
test eax, eax
jne 0x4404d1
push 0x20
call fcn.004fd897
xor ebx, ebx
inc ebx
pop ecx
test eax, eax
je 0x4404ea
push ebx
mov ecx, eax
call fcn.00438460
jmp 0x4404ec
push 0x1c
call fcn.004fd897
xor ebx, ebx
inc ebx
pop ecx
test eax, eax
je 0x4404ea
push ebx
mov ecx, eax
call fcn.0043dc35
jmp 0x4404ec
xor eax, eax
push eax
lea ecx, [ebp - 0xc8c]
call fcn.0043e143
xor eax, eax
push eax
push ecx
mov ecx, esp
push dword [ebp - 0xc8c]
call fcn.0043dbeb
lea eax, [ebp - 0xcb8]
push eax
call fcn.004babf0
mov esi, eax
add esp, 0xc
test esi, esi
js 0x440525
xor eax, eax
jmp 0x440c59
call fcn.0043ef18
push eax
lea ecx, [ebp - 0xc94]
call fcn.0043daa9
lea eax, [ebp - 0xc14]
push eax
call fcn.0043f59c
mov ecx, eax
call fcn.0043ffb2
mov esi, 0x400
test eax, eax
jle 0x440582
push esi
lea eax, [ebp - 0x814]
push eax
lea eax, [ebp - 0xc14]
push esi
push eax
call fcn.0043f59c
mov ecx, eax
call fcn.004401bb
lea eax, [ebp - 0x814]
push eax
lea ecx, [ebp - 0xc94]
call fcn.0043e0f3
jmp 0x440592
push 0x5190cc
lea ecx, [ebp - 0xc94]
call fcn.0043f9be
xor eax, eax
push esi
push eax
lea eax, [ebp - 0xc14]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
call fcn.0043f59c
push dword [ebp - 0xc94]
lea ecx, [eax + 0x5b0]
call fcn.00449780
call fcn.0043ef18
push eax
lea ecx, [ebp - 0xc88]
call fcn.0043daa9
xor eax, eax
push eax
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
jne 0x4405f2
push 0x5190cc
lea ecx, [ebp - 0xc88]
call fcn.0043f9be
jmp 0x440811
call fcn.0043ef18
push eax
lea ecx, [ebp - 0xc7c]
call fcn.0043daa9
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 0x440672
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.0043f087
add esp, 0x14
lea eax, [ebp - 0x640]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x440637
xor ebx, ebx
inc ebx
mov ecx, dword [0x567958]
xor eax, eax
mov dword [ebp - 0xc84], eax
mov eax, dword [0x56795c]
sub eax, ecx
sar eax, 2
test eax, eax
je 0x440730
mov edi, dword [ebp - 0xc84]
mov eax, dword [ecx + edi*4]
sub eax, 0x10
push eax
call fcn.0043e7d6
lea ecx, [ebp - 0xc84]
mov dword [esp], 0x51a350
lea esi, [eax + 0x10]
mov dword [ebp - 0xcac], esi
call fcn.0043db33
lea eax, [ebp - 0xc84]
push eax
lea eax, [ebp - 0xcac]
push eax
lea eax, [ebp - 0xca4]
push eax
call fcn.0043e180
add esp, 0xc
lea ecx, [ebp - 0xc7c]
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
call fcn.0043e416
mov ecx, dword [ebp - 0xca4]
lea ecx, [ecx - 0x10]
call fcn.0043f94e
mov ecx, dword [ebp - 0xc84]
lea ecx, [ecx - 0x10]
call fcn.0043f94e
lea ecx, [esi - 0x10]
call fcn.0043f94e
mov eax, dword [0x56795c]
inc edi
mov ecx, dword [0x567958]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x440698
mov edi, dword [ebp - 0xc80]
mov esi, dword [ebp - 0xc7c]
lea eax, [ebp - 0x84]
push 3
push esi
lea ecx, [ebp - 0x88]
mov dword [ebp - 0x88], eax
call fcn.0043f2f8
push dword [ebp - 0x88]
lea ecx, [ebp - 0xc44]
call fcn.00436168
lea eax, [ebp - 0x84]
cmp dword [ebp - 0x88], eax
je 0x44077c
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.0043ebf5
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.0043f23d
push dword [ebp - 0x108]
lea ecx, [ebp - 0xc88]
call fcn.0043f9be
lea eax, [ebp - 0x104]
cmp dword [ebp - 0x108], eax
je 0x4407eb
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.00435a3a
xor eax, eax
lea ecx, [ebp - 0xc44]
push eax
push ebx
call fcn.00435a3a
lea ecx, [esi - 0x10]
call fcn.0043f94e
push 0x5190cc
lea ecx, [ebp - 0xc88]
call fcn.0043e831
test eax, eax
je 0x44083b
call fcn.0043f59c
push dword [ebp - 0xc88]
lea ecx, [eax + 0x634]
call fcn.00449780
xor eax, eax
push eax
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
js 0x440c39
xor eax, eax
push eax
call dword [sym.imp.ole32.dll_OleInitialize]
push dword [ebp - 0xca8]
call fcn.004549d0
call fcn.0043f410
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 0x4408c4
lea eax, [ebp - 0x414]
push eax
call esi
pop ecx
push eax
lea eax, [ebp - 0x414]
push eax
lea ecx, [ebp - 0xc5c]
call fcn.004372b7
push str.HYGame
call esi
pop ecx
push eax
push str.HYGame
lea ecx, [ebp - 0xc5c]
call fcn.0043fcaa
cmp dword [ebp - 0xc48], 8
lea esi, [ebp - 0xc5c]
cmovae esi, dword [ebp - 0xc5c]
call fcn.0043f59c
push esi
lea ecx, [eax + 0x88]
call fcn.00449780
push 0x51a354
lea eax, [ebp - 0xc98]
push eax
lea eax, [ebp - 0xc78]
push eax
call fcn.0043e1d5
mov esi, dword [ebp - 0xc78]
add esp, 0xc
call fcn.0043f59c
push esi
lea ecx, [eax + 0x6b8]
call fcn.00449780
mov esi, dword [ebp - 0xc78]
call fcn.0043f59c
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4409ad
push dword [ebp - 0xc78]
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push 0x51a36c
push 0x51a370
push str.Common
call esi
push dword [ebp - 0xc78]
push 0x51a398
push 0x51a39c
push str.Common
call esi
push dword [ebp - 0xc78]
push str.1.1.2_TF
push str.Version
push str.GameInfo
call esi
jmp 0x440ae7
call fcn.0043ef18
push eax
lea ecx, [ebp - 0xc84]
call fcn.0043daa9
push dword [ebp - 0xc78]
lea ecx, [ebp - 0xc84]
push 0x10
push 0x10
call fcn.0043f7d5
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov esi, str.Common
push eax
push 0x51a36c
push 0x51a370
push esi
call edi
push 0x51a398
lea ecx, [ebp - 0xc84]
call fcn.0043e831
xor ecx, ecx
test eax, eax
push 1
movzx ebx, cl
pop eax
cmove ebx, eax
call fcn.0043ef18
push eax
lea ecx, [ebp - 0xc7c]
call fcn.0043daa9
push dword [ebp - 0xc78]
lea ecx, [ebp - 0xc7c]
push 0x10
push 0x10
call fcn.0043f7d5
push eax
push 0x51a36c
push 0x51a39c
push esi
call edi
mov edi, dword [ebp - 0xc7c]
push edi
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wtoi]
pop ecx
lea esi, [eax + 1]
call fcn.0043ef18
push eax
lea ecx, [ebp - 0xc7c]
call fcn.0043daa9
push esi
lea eax, [ebp - 0xc7c]
push 0x51a3e8
push eax
call fcn.0043ed7c
mov esi, dword [ebp - 0xc7c]
add esp, 0xc
push dword [ebp - 0xc78]
push esi
push 0x51a39c
push str.Common
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea ecx, [esi - 0x10]
call fcn.0043f94e
lea ecx, [edi - 0x10]
call fcn.0043f94e
mov ecx, dword [ebp - 0xc84]
lea ecx, [ecx - 0x10]
call fcn.0043f94e
test bl, bl
je 0x440ade
call fcn.0043f59c
mov ecx, eax
call fcn.0043e617
test al, al
je 0x440ade
push dword [ebp - 0xc78]
push 0x51a36c
push 0x51a370
push str.Common
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov edi, dword [ebp - 0xc80]
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 - 0xdb0]
mov dword [ebp - 0xcbc], eax
call fcn.0043f3e2
lea eax, [ebp - 0xc5c]
push eax
lea eax, [ebp - 0xd6c]
push eax
lea ecx, [ebp - 0xc20]
call fcn.0043dbbb
mov ecx, eax
call fcn.0043690e
mov esi, vtable.CefStringBase_struct_CefStringTraitsUTF16_.0
lea ecx, [ebp - 0xc20]
mov dword [ebp - 0xc20], esi
call fcn.00436635
push 0x51a3f0
lea eax, [ebp - 0xd28]
mov dword [ebp - 0xd7c], ebx
push eax
lea ecx, [ebp - 0xc20]
mov dword [ebp - 0xcdc], ebx
mov dword [ebp - 0xd70], ebx
mov dword [ebp - 0xda8], ebx
call fcn.0043dbbb
mov ecx, eax
call fcn.0043ee44
lea ecx, [ebp - 0xc20]
mov dword [ebp - 0xc20], esi
call fcn.00436635
xor eax, eax
push eax
push ecx
mov ecx, esp
push dword [ebp - 0xc8c]
call fcn.0043dbeb
lea eax, [ebp - 0xdb0]
push eax
lea eax, [ebp - 0xcb8]
push eax
call fcn.004bafd0
push 0x6e0
call fcn.004fd897
add esp, 0x14
test eax, eax
je 0x440bc3
mov ecx, eax
call fcn.00440d79
mov esi, eax
xor eax, eax
jmp 0x440bc7
xor eax, eax
mov esi, eax
test esi, esi
je 0x440c11
push eax
push 0x385
push 0x656
push eax
push eax
push eax
push closesocket
push 0x51a3f8
push eax
mov ecx, esi
call fcn.00455e30
mov ecx, esi
call fcn.00455cd0
push ebx
push ebx
mov ecx, esi
call fcn.00456b40
call fcn.00451690
call fcn.004bb810
call fcn.0043efcf
mov ecx, eax
call fcn.0043f933
lea ecx, [ebp - 0xdb0]
call fcn.0043df50
mov ecx, dword [ebp - 0xc78]
lea ecx, [ecx - 0x10]
call fcn.0043f94e
xor eax, eax
lea ecx, [ebp - 0xc5c]
push eax
push ebx
call fcn.00437061
mov ecx, dword [ebp - 0xc88]
lea ecx, [ecx - 0x10]
call fcn.0043f94e
mov ecx, dword [ebp - 0xc94]
lea ecx, [ecx - 0x10]
call fcn.0043f94e
xor eax, eax
mov esi, eax
push eax
push ebx
lea ecx, [ebp - 0xc74]
call fcn.00435a3a
lea ecx, [ebp - 0xc9c]
call fcn.004388b0
lea ecx, [ebp - 0xc8c]
call fcn.0043df6a
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.0043f94e
mov ecx, dword [ebp - 0xca0]
lea ecx, [ecx - 0x10]
call fcn.0043f94e
mov ecx, dword [ebp - 0xc98]
add ecx, 0xfffffff0
call fcn.0043f94e
lea ecx, [edi - 0x10]
call fcn.0043f94e
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004fdfc5
mov esp, ebp
pop ebp
ret 0x10