Function at 0x1000cb70
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10011ad5
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x10017040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xorps xmm0, xmm0
movlpd qword [ebp - 0x18], xmm0
push 0x30
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
call fcn.1000cfd2
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x30]
push 8
xorps xmm0, xmm0
mov dword [ebp - 0x20], 0
push str.hook.ini
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x1c], 0
call fcn.10004860
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x18]
call fcn.10005bb0
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x1c]
cmp ecx, 0xf
jbe 0x1000cc3f
mov edx, dword [ebp - 0x30]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1000cc35
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1000cc35
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1000d002
add esp, 8
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], 0
push eax
push str.DEBUG
push str.GLOBAL
lea ecx, [ebp - 0x18]
call fcn.10006d10
cmp eax, 1
jne 0x1000cca3
call dword [sym.imp.KERNEL32.dll_AllocConsole]
test eax, eax
je 0x1000cca3
push 1
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
push eax
push 0x10012d60
lea eax, [ebp - 0x34]
push str.CONOUT_
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_freopen_s]
push str.zh_ch
push 2
call dword [sym.imp.api_ms_win_crt_locale_l1_1_0.dll_setlocale]
add esp, 0x1c
push 0x3a4
call dword [sym.imp.KERNEL32.dll_SetConsoleOutputCP]
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], 0
push eax
push str.MODE
push str.GLOBAL
lea ecx, [ebp - 0x18]
call fcn.10006d10
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentThread]
cmp eax, 1
jne 0x1000cd0d
call fcn.1000f670
call esi
push eax
call fcn.1000fb40
push 0x1000acd0
push 0x100178f8
call fcn.1000f0d0
call fcn.1000f6d0
call fcn.1000f670
call esi
push eax
call fcn.1000fb40
push 0x1000c560
push 0x10017914
call fcn.1000f0d0
call fcn.1000f6d0
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], 0
push eax
push str.MODE
push str.GLOBAL
lea ecx, [ebp - 0x18]
call fcn.10006d10
cmp eax, 2
jne 0x1000cd39
call fcn.1000b5b0
call fcn.1000bba0
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], 0
push eax
push str.MODE
push str.GLOBAL
lea ecx, [ebp - 0x18]
call fcn.10006d10
cmp eax, 3
jne 0x1000cda7
call fcn.1000f670
call esi
push eax
call fcn.1000fb40
push 0x1000acd0
push 0x100178f8
call fcn.1000f0d0
call fcn.1000f6d0
call fcn.1000f670
call esi
push eax
call fcn.1000fb40
push 0x1000c560
push 0x10017914
call fcn.1000f0d0
call fcn.1000f6d0
call fcn.1000b5b0
call fcn.1000bba0
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], 0
push eax
push str.CHANGEWINDOW
push str.GLOBAL
lea ecx, [ebp - 0x18]
call fcn.10006d10
cmp eax, 1
jne 0x1000ce24
call fcn.1000f670
call esi
push eax
call fcn.1000fb40
push str.Window_Text_func_HOOKED__n
call fcn.10002950
add esp, 4
push 0x100029a0
push 0x100178d8
call fcn.1000f0d0
push 0x10003070
push 0x100178e4
call fcn.1000f0d0
push 0x10003710
push 0x100178dc
call fcn.1000f0d0
push 0x10003d90
push 0x100178e0
call fcn.1000f0d0
call fcn.1000f6d0
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], 0
push eax
push 0x10012d94
push str.GLOBAL
lea ecx, [ebp - 0x18]
call fcn.10006d10
cmp eax, 1
jne 0x1000ce9b
push 0x13
push str.Tokyo_Standard_Time
mov ecx, 0x100170e0
mov dword [0x100178c8], 0x3a4
mov dword [0x100178d0], 0x411
mov dword [0x100178cc], 0x80
call fcn.10002220
call dword [sym.imp.KERNEL32.dll_GetACP]
cmp eax, 0x3a4
je 0x1000ce9b
lea ecx, [ebp - 0x2c]
call fcn.10005200
test al, al
jne 0x1000cef0
push str._Failed_to_relaunch._Continuing_with_default_locale_n
call fcn.10002950
add esp, 4
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], 0
push eax
push str.TextOutA
push str.TEXTREPLACE
lea ecx, [ebp - 0x18]
call fcn.10006d10
mov eax, dword [ebp - 0x18]
push dword [eax + 4]
lea eax, [ebp - 0x18]
push eax
mov ecx, eax
call fcn.10005000
push 0x30
push dword [ebp - 0x18]
call fcn.1000d002
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1000cfbf
mov esp, ebp
pop ebp
ret
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]