Function at 0x662070d0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x824
push ebx
push esi
push edi
call fcn.66206a20
test eax, eax
mov edx, str.ThinApp_has_encountered_an_unexpected_error._Click_Abort_to_close_the_application__Retry_to_debug__or_Continue_to_ignore_the_error._Support_info:_PID
mov ecx, str.Nt0SafeUtil::RaiseHardError_PID
setne al
test al, al
mov byte [ebp - 1], al
cmove ecx, edx
mov edi, ecx
lea edx, [edi + 2]
lea ecx, [ecx]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x66207100
sub edi, edx
lea eax, [ebp - 0x824]
sar edi, 1
lea esi, [edi + edi]
push esi
push ecx
push eax
call fcn.6620d6b0
lea eax, [ebp - 0x824]
mov ebx, 0x400
add esi, eax
sub ebx, edi
mov eax, dword fs:[0x18]
push 0xa
push 0
push dword [eax + 0x20]
push esi
call fcn.66207480
add esp, 0x1c
sub ebx, eax
lea edi, [esi + eax*2]
mov esi, dword [ebp + 8]
test esi, esi
je 0x662071ba
mov eax, dword [0x6621cee8]
sub ebx, 2
push 0x5c
mov dword [edi], eax
add edi, 4
push esi
call fcn.6620ede0
add esp, 8
test eax, eax
je 0x66207170
lea esi, [eax + 1]
mov edx, esi
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x66207175
sub edx, ecx
mov ecx, 0
je 0x66207193
movsx ax, byte [ecx + esi]
mov word [edi + ecx*2], ax
inc ecx
cmp ecx, edx
jb 0x66207185
mov ax, word [0x6621cef0]
lea esi, [edi + edx*2]
push 0xa
push 0
push dword [ebp + 0xc]
mov word [esi], ax
sub ebx, edx
add esi, 2
dec ebx
push esi
call fcn.66207480
add esp, 0x10
sub ebx, eax
lea edi, [esi + eax*2]
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x662071f6
mov eax, dword [0x6621cee8]
mov esi, ecx
mov dword [edi], eax
add edi, 4
sub ebx, 2
lea edx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x662071d3
sub esi, edx
sar esi, 1
cmp esi, ebx
cmova esi, ebx
add esi, esi
push esi
push ecx
push edi
call fcn.6620d6b0
add esp, 0xc
add edi, esi
push 0
lea eax, [ebp - 0x824]
sub edi, eax
lea eax, [ebp - 8]
push 4
push eax
push 0xc
push 0xffffffffffffffff
sar edi, 1
call dword [sym.imp.ntdll.dll_NtQueryInformationProcess]
mov esi, dword [sym.imp.ntdll.dll_NtSetInformationProcess]
test eax, eax
setns bl
test bl, bl
je 0x66207244
mov eax, dword [ebp - 8]
or eax, 1
mov dword [ebp - 0x18], eax
cmp eax, dword [ebp - 8]
jne 0x66207233
xor bl, bl
jmp 0x66207244
push 4
lea eax, [ebp - 0x18]
push eax
push 0xc
push 0xffffffffffffffff
call esi
test eax, eax
setns bl
lea eax, [edi + edi]
mov word [ebp - 0x14], ax
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x824]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x1c]
push eax
push 0
lea eax, [ebp - 0xc]
push eax
push 1
push 1
push 0x40000015
call dword [sym.imp.ntdll.dll_NtRaiseHardError]
mov dword [ebp + 0x10], eax
test bl, bl
je 0x6620728a
push 4
lea eax, [ebp - 8]
push eax
push 0xc
push 0xffffffffffffffff
call esi
cmp byte [ebp - 1], 0
je 0x662073b6
xor ecx, ecx
test edi, edi
je 0x662072b3
lea ebx, [ebx]
mov al, byte [ebp + ecx*2 - 0x824]
mov byte [ebp + ecx - 0x824], al
inc ecx
cmp ecx, edi
jb 0x662072a0
mov esi, dword [str.__dml__]
lea ecx, [esi + 2]
lea esp, [esp]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x662072c0
mov ebx, dword [str._col_fg_errfg__bg_errbg__]
sub esi, ecx
sar esi, 1
lea ecx, [ebx + 2]
jmp 0x662072e0
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x662072e0
sub ebx, ecx
lea ecx, [ebp - 0x824]
sar ebx, 1
mov edx, ecx
push edi
push ecx
lea eax, [ebx + esi]
mov dword [ebp + 8], eax
add eax, edx
push eax
call fcn.6620dd00
mov edx, dword [str.__dml__]
add esp, 0xc
xor ecx, ecx
test esi, esi
je 0x6620732f
jmp 0x66207320
mov al, byte [edx + ecx*2]
mov byte [ebp + ecx - 0x824], al
inc ecx
cmp ecx, esi
jb 0x66207320
mov edx, dword [str._col_fg_errfg__bg_errbg__]
xor ecx, ecx
test ebx, ebx
je 0x6620734d
lea esi, [ebp + esi - 0x824]
mov al, byte [edx + ecx*2]
mov byte [esi + ecx], al
inc ecx
cmp ecx, ebx
jb 0x66207342
mov esi, dword [str.__col_]
mov ecx, esi
add edi, dword [ebp + 8]
lea edx, [ecx + 2]
jmp 0x66207360
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x66207360
sub ecx, edx
mov edx, 0
sar ecx, 1
je 0x6620738b
lea ebx, [ebp - 0x824]
add ebx, edi
mov edi, edi
mov al, byte [esi + edx*2]
mov byte [ebx + edx], al
inc edx
cmp edx, ecx
jb 0x66207380
add edi, ecx
lea eax, [edi + 1]
mov byte [ebp + edi - 0x824], 0xa
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x824]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x24]
push eax
push 2
push 0
push 0x40010006
call fcn.66206dc0
cmp dword [ebp + 0x10], 0
pop edi
pop esi
pop ebx
jl 0x662073d1
mov eax, dword [ebp - 0x1c]
cmp eax, 2
je 0x662073d1
cmp eax, 7
jne 0x662073de
int3
push 0xc0000001
push 0xffffffffffffffff
call dword [sym.imp.ntdll.dll_NtTerminateProcess]
mov esp, ebp
pop ebp
ret