Function at 0x58d2f6
Capabilities:
Terminate process

Disassembly:
sub esp, 4
push ebx
push esi
push edi
push ebp
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp dword [0x5883f8], 0
mov dword [esp + 0x10], eax
jne 0x58d53d
inc dword [0x5883f8]
cmp dword [0x58a5e8], 0
je 0x58d331
mov eax, dword [0x58a5e8]
push eax
call fcn.0058ca9c
add esp, 4
cmp dword [esp + 0x1c], 0
je 0x58d53d
mov edi, dword [0x5881b4]
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, 0x58a4e0
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, 0x588418
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, 0x58841c
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, 0x588424
mov edi, ebp
not ecx
add ecx, 0x58a4df
push ecx
call fcn.0058ed50
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, 0x58a4df
mov esi, 0x588428
push ecx
mov edi, ebp
call fcn.0058ecc0
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 + 0x5883ac]
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 0x58d43e
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 0x58d4d6
mov esi, 0x58842c
mov ebx, 0x58a4e0
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, 0x58a4df
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 + 0x58a4dd], 0
call fcn.0058ec00
add esp, 8
mov edx, eax
test edx, edx
je 0x58d4d6
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 0x58a4e0
mov esi, str.SHRINKER.ERR
push esi
call fcn.0058cbba
add esp, 8
push 0x10
push 0x588430
push esi
call fcn.0058caa9
add esp, 0xc
mov ebx, eax
test ebx, ebx
je 0x58d53d
mov eax, dword [esp + 0x1c]
cmp eax, 0xd
jl 0x58d50d
mov eax, 0xd
mov esi, 0x588434
mov edx, 0x58a4e0
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.0058cb25
add esp, 8
push ebx
call fcn.0058ca9c
add esp, 4
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.DLL_ExitProcess]