Function at 0x66d2f6
Capabilities:
Terminate process

Disassembly:
sub esp, 4
push ebx
push esi
push edi
push ebp
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp dword [0x6683f8], 0
mov dword [esp + 0x10], eax
jne 0x66d53d
inc dword [0x6683f8]
cmp dword [0x66a5e8], 0
je 0x66d331
mov eax, dword [0x66a5e8]
push eax
call fcn.0066ca9c
add esp, 4
cmp dword [esp + 0x1c], 0
je 0x66d53d
mov edi, dword [0x6681b4]
mov ebx, 0xffffffff
mov ecx, ebx
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
mov ebp, 0x66a4e0
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, 0x668418
mov edi, ebp
mov ecx, ebx
sub eax, eax
repne scasb al, byte es:[edi]
add edi, ebx
mov ecx, ebx
movsw word es:[edi], word [esi]
mov esi, 0x66841c
mov edi, ebp
sub eax, eax
repne scasb al, byte es:[edi]
add edi, ebx
mov ecx, ebx
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov edi, ebp
sub eax, eax
repne scasb al, byte es:[edi]
mov esi, 0x668424
mov edi, ebp
not ecx
add ecx, 0x66a4df
push ecx
call fcn.0066ed50
add esp, 4
mov ecx, ebx
sub eax, eax
repne scasb al, byte es:[edi]
add edi, ebx
mov ecx, ebx
movsw word es:[edi], word [esi]
mov edi, ebp
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
add ecx, 0x66a4df
mov esi, 0x668428
push ecx
mov edi, ebp
call fcn.0066ecc0
add esp, 4
mov ecx, ebx
sub eax, eax
repne scasb al, byte es:[edi]
add edi, ebx
mov ecx, ebx
movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x1c]
mov edi, dword [eax*4 + 0x6683ac]
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, ebx
mov edi, ebp
sub eax, eax
repne scasb al, byte es:[edi]
add edi, ebx
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x18]
test edi, edi
je 0x66d43e
mov ecx, ebx
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, ebx
mov edi, ebp
sub eax, eax
repne scasb al, byte es:[edi]
add edi, ebx
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp dword [esp + 0x10], 0
je 0x66d4d6
mov esi, 0x66842c
mov ebx, 0x66a4e0
mov edi, ebx
mov ebp, 0xffffffff
mov ecx, ebp
sub eax, eax
repne scasb al, byte es:[edi]
add edi, ebp
push 0
push 0xc8
mov ecx, ebp
movsd dword es:[edi], dword [esi]
mov edi, ebx
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
add ecx, 0x66a4df
mov edi, ebx
push ecx
push 0x400
push dword [esp + 0x20]
push 0
push 0x1000
call dword [sym.imp.KERNEL32.DLL_FormatMessageA]
mov ecx, ebp
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
push 0xd
push ebx
mov byte [ecx + 0x66a4dd], 0
call fcn.0066ec00
add esp, 8
mov edx, eax
test edx, edx
je 0x66d4d6
lea edi, [edx + 2]
mov ecx, ebp
sub eax, eax
mov byte [edx], 0x20
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
lea edi, [edx + 1]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0x66a4e0
mov esi, str.SHRINKER.ERR
push esi
call fcn.0066cbba
add esp, 8
push 0x10
push 0x668430
push esi
call fcn.0066caa9
add esp, 0xc
mov ebx, eax
test ebx, ebx
je 0x66d53d
mov eax, dword [esp + 0x1c]
cmp eax, 0xd
jl 0x66d50d
mov eax, 0xd
mov esi, 0x668434
mov edx, 0x66a4e0
mov edi, edx
mov ecx, 0xffffffff
mov dword [esp + 0x1c], eax
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
push ebx
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
push edx
call fcn.0066cb25
add esp, 8
push ebx
call fcn.0066ca9c
add esp, 4
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.DLL_ExitProcess]