Function at 0x4bf2f6
Capabilities:
Terminate process

Disassembly:
sub esp, 4
push ebx
push esi
push edi
push ebp
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp dword [0x4ba3f8], 0
mov dword [esp + 0x10], eax
jne 0x4bf53d
inc dword [0x4ba3f8]
cmp dword [0x4bc5e8], 0
je 0x4bf331
mov eax, dword [0x4bc5e8]
push eax
call fcn.004bea9c
add esp, 4
cmp dword [esp + 0x1c], 0
je 0x4bf53d
mov edi, dword [0x4ba1b4]
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, 0x4bc4e0
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, 0x4ba418
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, 0x4ba41c
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, 0x4ba424
mov edi, ebp
not ecx
add ecx, 0x4bc4df
push ecx
call fcn.004c0d50
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, 0x4bc4df
mov esi, 0x4ba428
push ecx
mov edi, ebp
call fcn.004c0cc0
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 + 0x4ba3ac]
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 0x4bf43e
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 0x4bf4d6
mov esi, 0x4ba42c
mov ebx, 0x4bc4e0
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, 0x4bc4df
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 + 0x4bc4dd], 0
call fcn.004c0c00
add esp, 8
mov edx, eax
test edx, edx
je 0x4bf4d6
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 0x4bc4e0
mov esi, str.SHRINKER.ERR
push esi
call fcn.004bebba
add esp, 8
push 0x10
push 0x4ba430
push esi
call fcn.004beaa9
add esp, 0xc
mov ebx, eax
test ebx, ebx
je 0x4bf53d
mov eax, dword [esp + 0x1c]
cmp eax, 0xd
jl 0x4bf50d
mov eax, 0xd
mov esi, 0x4ba434
mov edx, 0x4bc4e0
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.004beb25
add esp, 8
push ebx
call fcn.004bea9c
add esp, 4
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.DLL_ExitProcess]