Function at 0x4b8a50
Capabilities:
Terminate process

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov edi, edx
mov ebp, ecx
test edi, edi
je case.default.0x4b8b01
mov eax, dword [edi + 0x60]
test eax, eax
je 0x4b8a75
push 0xffffffffffffffff
push dword [eax + 0x3c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [edi + 0xc8]
xor ebx, ebx
mov eax, dword [eax + 0xc]
test eax, eax
je 0x4b8a86
mov ebx, dword [eax]
mov eax, dword [edi + 0x60]
test eax, eax
je 0x4b8a9a
push 0
push 1
push dword [eax + 0x3c]
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
cmp dword [edi + 0x84], 0
jne 0x4b8af0
push 0x20
call fcn.0058db11
add esp, 4
mov dword [edi + 0x84], eax
test eax, eax
je 0x4b8f3d
xorps xmm0, xmm0
movups xmmword [eax], xmm0
push 0xffff
movups xmmword [eax + 0x10], xmm0
call fcn.0058db11
mov ecx, dword [edi + 0x84]
add esp, 4
mov dword [ecx + 4], eax
test eax, eax
je 0x4b8f7e
mov eax, dword [edi + 0x84]
mov dword [eax + 0xc], 0xffff
mov ecx, dword [edi + 0x84]
mov eax, dword [ecx]
cmp eax, 3
ja case.default.0x4b8b01
jmp dword [eax*4 + 0x4b9044]
mov eax, dword [esp + 0x2c]
cmp eax, 3
jl case.default.0x4b8b01
mov ebx, 2
cmp eax, ebx
jle case.default.0x4b8b01
mov ecx, dword [esp + 0x24]
cmp byte [ecx + ebx - 2], 0xd
jne 0x4b8b34
cmp byte [ebx + ecx - 1], 0xa
je 0x4b8b41
inc ebx
cmp ebx, eax
jl 0x4b8b26
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
push 1
lea eax, [ebx - 2]
xor edx, edx
push 0x626354
push eax
call fcn.004b0c00
mov esi, eax
add esp, 0xc
lea eax, [esp + 0x1c]
mov ecx, dword [esi]
push 0x10
push eax
mov edx, dword [ecx + 4]
mov ecx, dword [ecx]
mov byte [edx + ecx], 0
mov ecx, dword [esi]
push dword [ecx]
call fcn.00594176
mov ecx, dword [edi + 0x84]
add esp, 0xc
mov dword [ecx + 0x18], eax
mov eax, dword [esp + 0x28]
mov dword [eax], ebx
mov ecx, dword [edi + 0x84]
mov eax, dword [ecx + 0x18]
neg eax
sbb eax, eax
add eax, 3
mov dword [ecx], eax
mov ecx, esi
call fcn.004b0e30
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
cmp dword [esp + 0x2c], 2
jl case.default.0x4b8b01
mov eax, dword [esp + 0x28]
mov dword [eax], 2
mov eax, dword [edi + 0x84]
mov dword [eax], 0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov ebp, dword [esp + 0x2c]
mov esi, ebp
cmp ebp, dword [ecx + 0x18]
mov eax, dword [ecx + 0x10]
cmovge esi, dword [ecx + 0x18]
cmp eax, dword [ecx + 0x14]
je 0x4b8c62
mov edx, dword [ecx + 8]
lea eax, [edx + ebp]
cmp eax, dword [ecx + 0xc]
jle 0x4b8c34
sub edx, dword [ecx + 0xc]
lea eax, [edx + ebp]
mov edx, 0xffff
cmp eax, edx
cmovg edx, eax
mov eax, dword [ecx + 0xc]
add eax, edx
mov dword [esp + 0x18], edx
push eax
push dword [ecx + 4]
call fcn.0059256f
mov ecx, eax
add esp, 8
test ecx, ecx
je 0x4b8fbf
mov eax, dword [edi + 0x84]
mov dword [eax + 4], ecx
mov eax, dword [edi + 0x84]
mov ecx, dword [esp + 0x18]
add dword [eax + 0xc], ecx
mov ecx, dword [edi + 0x84]
mov edx, dword [esp + 0x24]
push esi
push edx
mov eax, dword [ecx + 8]
mov edx, dword [ecx + 0xc]
mov ecx, dword [ecx + 4]
sub edx, eax
add ecx, eax
call fcn.00401000
mov eax, dword [edi + 0x84]
add esp, 8
add dword [eax + 8], esi
xor eax, eax
jmp 0x4b8c67
mov eax, 1
mov dword [esp + 0x14], 0
test ebx, ebx
je 0x4b8e13
cmp dword [ebx + 0x54], 0
je 0x4b8e13
cmp dword [edi + 0x7c], 0
jne 0x4b8e13
test eax, eax
mov dword [esp + 0x14], 0
lea eax, [edi + 0xec]
push eax
push dword [ebx + 0x38]
push dword [ebx + 0x34]
push 0
je 0x4b8d9a
push esi
lea eax, [esp + 0x28]
push eax
push dword [esp + 0x3c]
mov eax, dword [ebx + 0x54]
push dword [edi + 0xa4]
push 0
push edi
call eax
mov ecx, dword [esp + 0x3c]
add esp, 0x28
mov eax, dword [edi + 0x84]
test ecx, ecx
jne 0x4b8d62
mov dword [eax + 0x10], ecx
mov eax, dword [edi + 0x84]
mov dword [eax + 0x14], esi
mov edx, dword [edi + 0x84]
mov ecx, dword [edx + 8]
mov ebx, dword [edx + 0xc]
lea eax, [ecx + ebp]
cmp eax, ebx
jle 0x4b8d33
sub ecx, ebx
lea eax, [ecx + ebp]
mov ebp, 0xffff
cmp eax, 0xffff
cmovg ebp, eax
lea eax, [ebx + ebp]
push eax
push dword [edx + 4]
call fcn.0059256f
mov ecx, eax
add esp, 8
test ecx, ecx
je 0x4b9000
mov eax, dword [edi + 0x84]
mov dword [eax + 4], ecx
mov eax, dword [edi + 0x84]
add dword [eax + 0xc], ebp
mov ecx, dword [edi + 0x84]
mov edx, dword [esp + 0x24]
push esi
push edx
mov eax, dword [ecx + 8]
mov edx, dword [ecx + 0xc]
mov ecx, dword [ecx + 4]
sub edx, eax
add ecx, eax
call fcn.00401000
mov eax, dword [edi + 0x84]
add esp, 8
add dword [eax + 8], esi
jmp 0x4b8e0f
cmp ecx, esi
je 0x4b8d77
mov dword [eax + 0x10], ecx
mov eax, dword [edi + 0x84]
mov dword [eax + 0x14], esi
jmp 0x4b8e13
mov dword [eax + 0x10], 0
mov eax, dword [edi + 0x84]
mov dword [eax + 0x14], 0
mov eax, dword [edi + 0x84]
mov dword [eax + 8], 0
jmp 0x4b8e13
mov ecx, dword [edi + 0x84]
mov eax, dword [ecx + 8]
sub eax, dword [ecx + 0x10]
push eax
lea eax, [esp + 0x28]
push eax
mov eax, dword [ecx + 4]
add eax, dword [ecx + 0x10]
push eax
push dword [edi + 0xa4]
mov eax, dword [ebx + 0x54]
push 0
push edi
call eax
mov ecx, dword [edi + 0x84]
add esp, 0x28
mov ebx, dword [esp + 0x14]
mov eax, dword [ecx + 8]
mov edx, dword [ecx + 0x10]
sub eax, edx
cmp ebx, eax
jne 0x4b8dfd
mov dword [ecx + 0x10], 0
mov eax, dword [edi + 0x84]
mov dword [eax + 0x14], 0
mov eax, dword [edi + 0x84]
mov dword [eax + 8], 0
jmp 0x4b8e0f
lea eax, [edx + ebx]
mov dword [ecx + 0x10], eax
mov ecx, dword [edi + 0x84]
mov eax, dword [ecx + 8]
mov dword [ecx + 0x14], eax
mov dword [esp + 0x14], esi
mov ecx, dword [edi + 0x84]
mov eax, dword [esp + 0x14]
sub dword [ecx + 0x18], eax
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x14]
mov dword [ecx], eax
mov eax, dword [edi + 0x84]
cmp dword [eax + 0x18], 0
jne case.default.0x4b8b01
mov dword [eax], 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov eax, dword [esp + 0x2c]
cmp eax, 2
jl case.default.0x4b8b01
mov edx, dword [esp + 0x24]
mov esi, 2
nop
cmp byte [edx + esi - 2], 0xd
jne 0x4b8e6e
cmp byte [esi + edx - 1], 0xa
je 0x4b8e7b
inc esi
cmp esi, eax
jle 0x4b8e60
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
cmp esi, 2
jne 0x4b8f2f
mov dword [ecx + 0x1c], 1
test ebx, ebx
je 0x4b8ed3
cmp dword [ebx + 0x54], 0
je 0x4b8ed3
cmp dword [edi + 0x7c], 0
jne 0x4b8ed9
mov ecx, dword [edi + 0x84]
mov eax, dword [ecx + 0x10]
mov dword [esp + 0x14], eax
lea eax, [edi + 0xec]
push eax
push dword [ebx + 0x38]
lea eax, [esp + 0x1c]
push dword [ebx + 0x34]
push 1
push dword [ecx + 0x14]
push eax
push dword [ecx + 4]
mov eax, dword [ebx + 0x54]
push dword [edi + 0xa4]
push 0
push edi
call eax
add esp, 0x28
cmp dword [edi + 0x7c], 0
je 0x4b8ee7
mov ecx, edi
mov dword [edi + 0x7c], 0
call fcn.004b87a0
test ebp, ebp
je 0x4b8ef6
mov ecx, ebp
call fcn.004ac720
test eax, eax
jne 0x4b8f2f
mov eax, dword [edi + 0x84]
test eax, eax
je 0x4b8f28
mov eax, dword [eax + 4]
test eax, eax
je 0x4b8f10
push eax
call fcn.0058c812
add esp, 4
push dword [edi + 0x84]
call fcn.0058c812
add esp, 4
mov dword [edi + 0x84], 0
mov edx, edi
call fcn.004b8820
mov eax, dword [esp + 0x28]
mov dword [eax], esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xfe
push 0x38d
mov edx, 0x62628c
xor ecx, ecx
call fcn.004b4f80
add esp, 0xc
push 0x38d
push 0x6262ac
push 0x6262cc
call fcn.004010e0
add esp, 0xc
push 0xfe
call fcn.005885bd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xfe
push 0x390
mov edx, 0x6262f0
xor ecx, ecx
call fcn.004b4f80
add esp, 0xc
push 0x390
push 0x626310
push 0x626330
call fcn.004010e0
add esp, 0xc
push 0xfe
call fcn.005885bd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xfe
push 0x3d9
mov edx, 0x626358
xor ecx, ecx
call fcn.004b4f80
add esp, 0xc
push 0x3d9
push 0x626378
push 0x626398
call fcn.004010e0
add esp, 0xc
push 0xfe
call fcn.005885bd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xfe
push 0x41b
mov edx, 0x6263bc
xor ecx, ecx
call fcn.004b4f80
add esp, 0xc
push 0x41b
push 0x6263dc
push 0x6263fc
call fcn.004010e0
add esp, 0xc
push 0xfe
call fcn.005885bd
nop dword [eax]
or byte [ebx - 0x7459ffb5], cl
dec ebx
add bh, cl
mov ecx, dword [ebx]
dec eax
mov cs, word [ebx]
int3