Function at 0x14002d430
Capabilities:
Accept command line arguments
Check if file exists
Create thread
Delete file
Read .ini file

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xd40
mov qword [rsp + 0x240], 0xfffffffffffffffe
mov rax, qword [0x1402126b0]
xor rax, rsp
mov qword [rsp + 0xd30], rax
lea rcx, str.SnapToGridEx
call fcn.14002c290
mov ecx, 1
call fcn.1400211b0
lea rcx, [0x14002c920]
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0x100
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetPriorityClass]
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov edx, reloc.WS2_32.dll_ntohs
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [0x14002d070]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rsp + 0xe0], rax
cmp qword [rsp + 0xe0], 0xffffffffffffffff
je 0x14002d4fb
mov rcx, qword [rsp + 0xe0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [0x1401b1f12]
lea rcx, [rsp + 0x280]
call fcn.140009a10
nop
lea rdx, [0x1401b1f13]
lea rcx, [rsp + 0x260]
call fcn.140009a10
nop
lea r9, [rsp + 0x280]
lea r8, [rsp + 0x260]
mov edx, 1
xor ecx, ecx
call fcn.140061c10
nop
lea rcx, [rsp + 0x260]
call fcn.140009960
nop
lea rcx, [rsp + 0x280]
call fcn.140009960
nop
jmp 0x14002d560
call fcn.14002c950
movzx eax, al
test eax, eax
je 0x14002d573
xor eax, eax
jmp 0x14002e163
lea rcx, str.get_ini
call fcn.14002c290
lea rcx, [rsp + 0x2a0]
call fcn.14002c6d0
mov qword [rsp + 0x130], rax
mov rax, qword [rsp + 0x130]
mov qword [rsp + 0x138], rax
mov rdx, qword [rsp + 0x138]
lea rcx, [0x140217a30]
call fcn.140015370
nop
lea rcx, [rsp + 0x2a0]
call fcn.140010220
lea r8, [0x1401bd978]
lea rdx, [0x140217a30]
lea rcx, [rsp + 0x2c0]
call fcn.140025700
mov qword [rsp + 0x140], rax
mov rax, qword [rsp + 0x140]
mov qword [rsp + 0x148], rax
mov rdx, qword [rsp + 0x148]
lea rcx, [0x140217a50]
call fcn.140015370
nop
lea rcx, [rsp + 0x2c0]
call fcn.140010220
lea rcx, [0x140217a50]
call fcn.1400101f0
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x14002d640
lea rcx, str.ini_file_not_found
call fcn.14002c290
mov dword [rsp + 0x370], 0
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea rdx, [rsp + 0x370]
mov rcx, rax
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov qword [rsp + 0x150], rax
mov edx, 8
lea rcx, [rsp + 0x360]
call fcn.14000c8b0
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x150]
mov rdx, qword [rcx + rax]
lea rcx, [rsp + 0x360]
call fcn.14000fff0
nop
lea r8, str.myoptimize
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [rsp + 0x248], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x68], eax
call fcn.14001bd00
test eax, eax
jne 0x14002da78
cmp dword [rsp + 0x68], 0xb7
je 0x14002da78
lea rax, [rsp + 0x2e0]
mov qword [rsp + 0x158], rax
lea rax, [rsp + 0x300]
mov qword [rsp + 0x168], rax
lea rdx, [0x1401b2a3c]
mov rcx, qword [rsp + 0x158]
call fcn.140023080
mov qword [rsp + 0x160], rax
mov rax, qword [rsp + 0x160]
mov qword [rsp + 0x178], rax
lea rcx, [rsp + 0x360]
call fcn.140010050
mov rdx, rax
mov rcx, qword [rsp + 0x168]
call fcn.140023080
mov qword [rsp + 0x170], rax
mov rax, qword [rsp + 0x170]
mov qword [rsp + 0x180], rax
mov dword [rsp + 0x30], 0xffffffff
mov byte [rsp + 0x28], 1
mov byte [rsp + 0x20], 0
xor r9d, r9d
mov r8b, 1
mov rdx, qword [rsp + 0x178]
mov rcx, qword [rsp + 0x180]
call fcn.140019610
mov dword [rsp + 0x6c], 0
lea rcx, [rsp + 0x360]
call fcn.14000ffc0
mov eax, dword [rsp + 0x6c]
jmp 0x14002e163
lea rcx, str.erheyi_argc
call fcn.14002c290
mov cl, 1
call fcn.1400207c0
mov edx, 1
mov ecx, 1
call fcn.140020720
call fcn.140071c30
lea rcx, [rsp + 0x390]
call fcn.140019840
nop
lea rdx, [0x1401bda00]
lea rcx, [rsp + 0x390]
call fcn.140022fd0
lea rcx, [rsp + 0x390]
call fcn.1400101f0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rcx, [0x140217a50]
call fcn.1400101f0
mov r9, rax
xor r8d, r8d
lea rdx, str.last
lea rcx, [0x1401bda38]
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0
jl 0x14002db0f
cmp dword [rsp + 0x60], 0x78
jle 0x14002db17
mov dword [rsp + 0x60], 0
lea rcx, [0x140217a50]
call fcn.1400101f0
mov r9, rax
mov r8d, 7
lea rdx, str.skin
lea rcx, str.PARA
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [rsp + 0x50], eax
mov rcx, qword [rsp + 0xd50]
call fcn.1400e6cbc
call fcn.14002d130
mov edx, 0x880
lea rcx, [rsp + 0x3b0]
call fcn.14000c8b0
lea rcx, [rsp + 0x3b0]
call fcn.14002e180
nop
mov qword [rsp + 0x48], 0
mov dword [rsp + 0x40], 0xffffffff
mov dword [rsp + 0x38], 0xffffffff
mov dword [rsp + 0x30], 0xfffffff6
mov dword [rsp + 0x28], 0xfffffff6
mov dword [rsp + 0x20], Ordinal_142
mov r9d, 0x10cf0000
lea r8, str.DUIWnd
xor edx, edx
lea rcx, [rsp + 0x3b0]
call fcn.1400e9fa4
mov r8b, 1
xor edx, edx
lea rcx, [rsp + 0x3b0]
call fcn.1400ea724
lea rcx, str.erheyi_CDuiFrameWnd
call fcn.14002c290
mov qword [rsp + 0x58], 0
cmp dword [rsp + 0x50], 1
jne 0x14002dc6c
mov ecx, 0x9d0
call fcn.140138614
mov qword [rsp + 0x80], rax
cmp qword [rsp + 0x80], 0
je 0x14002dc3e
mov edx, 0x9d0
mov rcx, qword [rsp + 0x80]
call fcn.14000c8b0
lea rdx, [0x1401bda90]
mov rcx, qword [rsp + 0x80]
call fcn.14002a440
mov qword [rsp + 0xe8], rax
jmp 0x14002dc4a
mov qword [rsp + 0xe8], 0
mov rax, qword [rsp + 0xe8]
mov qword [rsp + 0x218], rax
mov rax, qword [rsp + 0x218]
mov qword [rsp + 0x58], rax
jmp 0x14002e061
cmp dword [rsp + 0x50], 2
jne 0x14002dcee
mov ecx, 0x9d0
call fcn.140138614
mov qword [rsp + 0x88], rax
cmp qword [rsp + 0x88], 0
je 0x14002dcc0
mov edx, 0x9d0
mov rcx, qword [rsp + 0x88]
call fcn.14000c8b0
lea rdx, [0x1401bdab0]
mov rcx, qword [rsp + 0x88]
call fcn.14002a440
mov qword [rsp + 0xf0], rax
jmp 0x14002dccc
mov qword [rsp + 0xf0], 0
mov rax, qword [rsp + 0xf0]
mov qword [rsp + 0x220], rax
mov rax, qword [rsp + 0x220]
mov qword [rsp + 0x58], rax
jmp 0x14002e061
cmp dword [rsp + 0x50], 3
jne 0x14002dd70
mov ecx, 0x9d0
call fcn.140138614
mov qword [rsp + 0x90], rax
cmp qword [rsp + 0x90], 0
je 0x14002dd42
mov edx, 0x9d0
mov rcx, qword [rsp + 0x90]
call fcn.14000c8b0
lea rdx, [0x1401bdad0]
mov rcx, qword [rsp + 0x90]
call fcn.14002a440
mov qword [rsp + 0xf8], rax
jmp 0x14002dd4e
mov qword [rsp + 0xf8], 0
mov rax, qword [rsp + 0xf8]
mov qword [rsp + 0x228], rax
mov rax, qword [rsp + 0x228]
mov qword [rsp + 0x58], rax
jmp 0x14002e061
cmp dword [rsp + 0x50], 4
jne 0x14002ddf2
mov ecx, 0x9d0
call fcn.140138614
mov qword [rsp + 0x98], rax
cmp qword [rsp + 0x98], 0
je 0x14002ddc4
mov edx, 0x9d0
mov rcx, qword [rsp + 0x98]
call fcn.14000c8b0
lea rdx, str.Frame_db2.xml
mov rcx, qword [rsp + 0x98]
call fcn.14002a440
mov qword [rsp + 0x100], rax
jmp 0x14002ddd0
mov qword [rsp + 0x100], 0
mov rax, qword [rsp + 0x100]
mov qword [rsp + 0x230], rax
mov rax, qword [rsp + 0x230]
mov qword [rsp + 0x58], rax
jmp 0x14002e061
cmp dword [rsp + 0x50], 5
jne 0x14002de74
mov ecx, 0x9d0
call fcn.140138614
mov qword [rsp + 0xa0], rax
cmp qword [rsp + 0xa0], 0
je 0x14002de46
mov edx, 0x9d0
mov rcx, qword [rsp + 0xa0]
call fcn.14000c8b0
lea rdx, str.Frame_360db.xml
mov rcx, qword [rsp + 0xa0]
call fcn.14002a440
mov qword [rsp + 0x108], rax
jmp 0x14002de52
mov qword [rsp + 0x108], 0
mov rax, qword [rsp + 0x108]
mov qword [rsp + 0x238], rax
mov rax, qword [rsp + 0x238]
mov qword [rsp + 0x58], rax
jmp 0x14002e061
cmp dword [rsp + 0x50], 6
jne 0x14002def6
mov ecx, 0x9d0
call fcn.140138614
mov qword [rsp + 0xa8], rax
cmp qword [rsp + 0xa8], 0
je 0x14002dec8
mov edx, 0x9d0
mov rcx, qword [rsp + 0xa8]
call fcn.14000c8b0
lea rdx, [0x1401bdb30]
mov rcx, qword [rsp + 0xa8]
call fcn.14002a440
mov qword [rsp + 0xc0], rax
jmp 0x14002ded4
mov qword [rsp + 0xc0], 0
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x110], rax
mov rax, qword [rsp + 0x110]
mov qword [rsp + 0x58], rax
jmp 0x14002e061
cmp dword [rsp + 0x50], 7
jne 0x14002df78
mov ecx, 0x9d0
call fcn.140138614
mov qword [rsp + 0xb0], rax
cmp qword [rsp + 0xb0], 0
je 0x14002df4a
mov edx, 0x9d0
mov rcx, qword [rsp + 0xb0]
call fcn.14000c8b0
lea rdx, [0x1401bdb50]
mov rcx, qword [rsp + 0xb0]
call fcn.14002a440
mov qword [rsp + 0xc8], rax
jmp 0x14002df56
mov qword [rsp + 0xc8], 0
mov rax, qword [rsp + 0xc8]
mov qword [rsp + 0x118], rax
mov rax, qword [rsp + 0x118]
mov qword [rsp + 0x58], rax
jmp 0x14002e061
cmp dword [rsp + 0x50], 8
jne 0x14002dff7
mov ecx, 0x9d0
call fcn.140138614
mov qword [rsp + 0xb8], rax
cmp qword [rsp + 0xb8], 0
je 0x14002dfcc
mov edx, 0x9d0
mov rcx, qword [rsp + 0xb8]
call fcn.14000c8b0
lea rdx, [0x1401bdb80]
mov rcx, qword [rsp + 0xb8]
call fcn.14002a440
mov qword [rsp + 0xd0], rax
jmp 0x14002dfd8
mov qword [rsp + 0xd0], 0
mov rax, qword [rsp + 0xd0]
mov qword [rsp + 0x120], rax
mov rax, qword [rsp + 0x120]
mov qword [rsp + 0x58], rax
jmp 0x14002e061
mov ecx, 0x9d0
call fcn.140138614
mov qword [rsp + 0x78], rax
cmp qword [rsp + 0x78], 0
je 0x14002e038
mov edx, 0x9d0
mov rcx, qword [rsp + 0x78]
call fcn.14000c8b0
lea rdx, [0x1401bdba8]
mov rcx, qword [rsp + 0x78]
call fcn.14002a440
mov qword [rsp + 0xd8], rax
jmp 0x14002e044
mov qword [rsp + 0xd8], 0
mov rax, qword [rsp + 0xd8]
mov qword [rsp + 0x128], rax
mov rax, qword [rsp + 0x128]
mov qword [rsp + 0x58], rax
lea rcx, [rsp + 0x3b0]
call fcn.140096030
mov qword [rsp + 0x48], 0
mov dword [rsp + 0x40], 0x80000000
mov dword [rsp + 0x38], 0x80000000
mov dword [rsp + 0x30], 0x80000000
mov dword [rsp + 0x28], 0x80000000
mov dword [rsp + 0x20], 0x180
mov r9d, 0x10cf0000
lea r8, str.Frame.xml
mov rdx, rax
mov rcx, qword [rsp + 0x58]
call fcn.1400e9fa4
lea rcx, [rsp + 0x3b0]
call fcn.1400e9dd8
mov rcx, qword [rsp + 0x58]
call fcn.1400e9dd8
mov edx, dword [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call fcn.14002ac20
lea rcx, str.show_wnd
call fcn.14002c290
cmp dword [rsp + 0x60], 0
jg 0x14002e102
mov r8b, 1
xor edx, edx
mov rcx, qword [rsp + 0x58]
call fcn.1400ea724
jmp 0x14002e111
mov r8b, 1
mov dl, 1
mov rcx, qword [rsp + 0x58]
call fcn.1400ea724
call fcn.1400e4b44
lea rcx, str.erheyi_CMainFrame
call fcn.14002c290
lea rcx, str.erheyi_end
call fcn.14002c290
mov dword [rsp + 0x74], 0
lea rcx, [rsp + 0x3b0]
call fcn.14002e1d0
nop
lea rcx, [rsp + 0x390]
call fcn.140010220
nop
lea rcx, [rsp + 0x360]
call fcn.14000ffc0
mov eax, dword [rsp + 0x74]
mov rcx, qword [rsp + 0xd30]
xor rcx, rsp
call fcn.140138320
add rsp, 0xd40
pop rdi
ret