Function at 0x66207070
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x824
push ebx
push esi
push edi
call fcn.662069e0
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 0x662070a0
sub edi, edx
lea eax, [ebp - 0x824]
sar edi, 1
lea esi, [edi + edi]
push esi
push ecx
push eax
call fcn.6620d5b0
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.662073c0
add esp, 0x1c
sub ebx, eax
lea edi, [esi + eax*2]
mov esi, dword [ebp + 8]
test esi, esi
je 0x6620715a
mov eax, dword [0x6621ced0]
sub ebx, 2
push 0x5c
mov dword [edi], eax
add edi, 4
push esi
call fcn.6620ece0
add esp, 8
test eax, eax
je 0x66207110
lea esi, [eax + 1]
mov edx, esi
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x66207115
sub edx, ecx
mov ecx, 0
je 0x66207133
movsx ax, byte [ecx + esi]
mov word [edi + ecx*2], ax
inc ecx
cmp ecx, edx
jb 0x66207125
mov ax, word [0x6621ced8]
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.662073c0
add esp, 0x10
sub ebx, eax
lea edi, [esi + eax*2]
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x66207196
mov eax, dword [0x6621ced0]
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 0x66207173
sub esi, edx
sar esi, 1
cmp esi, ebx
cmova esi, ebx
add esi, esi
push esi
push ecx
push edi
call fcn.6620d5b0
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 0x662071e4
mov eax, dword [ebp - 8]
or eax, 1
mov dword [ebp - 0x18], eax
cmp eax, dword [ebp - 8]
jne 0x662071d3
xor bl, bl
jmp 0x662071e4
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 0x6620722a
push 4
lea eax, [ebp - 8]
push eax
push 0xc
push 0xffffffffffffffff
call esi
cmp byte [ebp - 1], 0
je 0x66207356
xor ecx, ecx
test edi, edi
je 0x66207253
lea ebx, [ebx]
mov al, byte [ebp + ecx*2 - 0x824]
mov byte [ebp + ecx - 0x824], al
inc ecx
cmp ecx, edi
jb 0x66207240
mov esi, dword [str.__dml__]
lea ecx, [esi + 2]
lea esp, [esp]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x66207260
mov ebx, dword [str._col_fg_errfg__bg_errbg__]
sub esi, ecx
sar esi, 1
lea ecx, [ebx + 2]
jmp 0x66207280
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x66207280
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.6620dc00
mov edx, dword [str.__dml__]
add esp, 0xc
xor ecx, ecx
test esi, esi
je 0x662072cf
jmp 0x662072c0
mov al, byte [edx + ecx*2]
mov byte [ebp + ecx - 0x824], al
inc ecx
cmp ecx, esi
jb 0x662072c0
mov edx, dword [str._col_fg_errfg__bg_errbg__]
xor ecx, ecx
test ebx, ebx
je 0x662072ed
lea esi, [ebp + esi - 0x824]
mov al, byte [edx + ecx*2]
mov byte [esi + ecx], al
inc ecx
cmp ecx, ebx
jb 0x662072e2
mov esi, dword [str.__col_]
mov ecx, esi
add edi, dword [ebp + 8]
lea edx, [ecx + 2]
jmp 0x66207300
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x66207300
sub ecx, edx
mov edx, 0
sar ecx, 1
je 0x6620732b
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 0x66207320
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.66206d60
cmp dword [ebp + 0x10], 0
pop edi
pop esi
pop ebx
jl 0x66207371
mov eax, dword [ebp - 0x1c]
cmp eax, 2
je 0x66207371
cmp eax, 7
jne 0x6620737e
int3
push 0xc0000001
push 0xffffffffffffffff
call dword [sym.imp.ntdll.dll_NtTerminateProcess]
mov esp, ebp
pop ebp
ret