Function at 0x65943af
Capabilities:
Terminate process

Disassembly:
sub esp, 4
push ebx
push esi
push edi
push ebp
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp dword [0x658f338], 0
mov dword [esp + 0x10], eax
jne 0x65945f6
inc dword [0x658f338]
cmp dword [0x6591594], 0
je 0x65943ea
mov eax, dword [0x6591594]
push eax
call fcn.06593a9e
add esp, 4
cmp dword [esp + 0x1c], 0
je 0x65945f6
mov edi, dword [0x658f0f4]
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, 0x6591490
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, 0x658f35c
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, 0x658f360
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, 0x658f368
mov edi, ebp
not ecx
add ecx, 0x659148f
push ecx
call fcn.06595d90
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, 0x659148f
mov esi, 0x658f36c
push ecx
mov edi, ebp
call fcn.06595d00
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 + 0x658f2ec]
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 0x65944f7
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 0x659458f
mov esi, 0x658f370
mov ebx, 0x6591490
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, 0x659148f
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 + 0x659148d], 0
call fcn.06595c40
add esp, 8
mov edx, eax
test edx, edx
je 0x659458f
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 0x6591490
mov esi, str.SHRINKER.ERR
push esi
call fcn.06593bc0
add esp, 8
push 0x10
push 0x658f374
push esi
call fcn.06593aab
add esp, 0xc
mov ebx, eax
test ebx, ebx
je 0x65945f6
mov eax, dword [esp + 0x1c]
cmp eax, 0xd
jl 0x65945c6
mov eax, 0xd
mov esi, 0x658f378
mov edx, 0x6591490
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.06593b27
add esp, 8
push ebx
call fcn.06593a9e
add esp, 4
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.DLL_ExitProcess]