Function at 0x4b1e60
Capabilities:
Terminate process

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [esp + 0x14]
mov eax, edx
mov dword [esp + 0xc], eax
mov ebx, ecx
mov dword [esp + 8], ebx
push esi
push edi
test ebp, ebp
jns 0x4b1e93
test eax, eax
jne 0x4b1e83
xor ebp, ebp
jmp 0x4b1e93
push 0xff
push eax
call fcn.0058cca6
add esp, 8
mov ebp, eax
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
test edi, edi
jns 0x4b1eb7
test eax, eax
jne 0x4b1ea7
xor edi, edi
jmp 0x4b1eb7
push 0xff
push eax
call fcn.0058cca6
add esp, 8
mov edi, eax
mov edx, dword [ebx + 0x10]
test edx, edx
je 0x4b1f3c
lea ecx, [ebp + 0x1a]
add ecx, edi
cmp dword [edx - 0x10], ecx
jbe 0x4b2003
mov eax, dword [edx - 0x10]
xor esi, esi
cmp eax, 0x18
jbe 0x4b1ee1
mov esi, dword [edx]
add eax, 0xffffffe8
mov dword [edx - 0x10], eax
add dword [edx], 0x18
mov ecx, dword [ebx + 0x10]
lea eax, [ebp + 1]
mov dword [esp + 0x1c], 0
mov edx, dword [ecx - 0x10]
cmp edx, eax
jbe 0x4b1f07
mov ebx, dword [ecx]
sub edx, eax
mov dword [esp + 0x1c], ebx
mov ebx, dword [esp + 0x10]
mov dword [ecx - 0x10], edx
add dword [ecx], eax
mov ecx, dword [esp + 0x1c]
mov dword [esi], ecx
lea ecx, [edi + 1]
mov edx, dword [ebx + 0x10]
mov ebx, dword [esp + 0x10]
mov dword [esp + 0x1c], 0
cmp dword [edx - 0x10], ecx
jbe 0x4b1f33
mov ebx, dword [edx]
sub dword [edx - 0x10], ecx
add dword [edx], ecx
mov dword [esp + 0x1c], ebx
mov ebx, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
mov dword [esi + 8], ecx
jmp 0x4b1f87
push 0x18
call fcn.0058d200
mov esi, eax
add esp, 4
test esi, esi
je 0x4b200b
lea eax, [ebp + 1]
mov dword [esi + 0x10], 0xffffffff
push eax
call fcn.0058d200
add esp, 4
mov dword [esi], eax
test eax, eax
je 0x4b204c
lea eax, [edi + 1]
push eax
call fcn.0058d200
add esp, 4
mov dword [esi + 8], eax
test eax, eax
je 0x4b208d
lea eax, [ebp + 1]
mov ecx, dword [esi]
mov edx, eax
push ebp
push dword [esp + 0x18]
call fcn.00401000
mov eax, dword [esi]
lea edx, [edi + 1]
push edi
push dword [esp + 0x2c]
mov byte [eax + ebp], 0
mov ecx, dword [esi + 8]
mov dword [esi + 4], ebp
call fcn.00401000
mov eax, dword [esi + 8]
add esp, 0x10
mov byte [edi + eax], 0
mov dword [esi + 0xc], edi
mov dword [esi + 0x14], 0
mov ecx, dword [ebx + 0x84]
test ecx, ecx
je 0x4b1fe8
mov edx, dword [esi]
mov ebp, dword [esi + 8]
push 1
push dword [esi + 4]
call fcn.004affa0
add esp, 8
test eax, eax
je 0x4b1fe8
mov dword [eax + 0x14], ebp
mov dword [eax + 0x18], edi
mov eax, dword [ebx + 0x44]
test eax, eax
je 0x4b1ffd
mov dword [eax + 0x14], esi
mov dword [ebx + 0x44], esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov dword [ebx + 0x40], esi
mov dword [ebx + 0x44], esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xfe
push 0x16d6
mov edx, 0x61d69c
xor ecx, ecx
call fcn.004b47e0
add esp, 0xc
push 0x16d6
push 0x61d6b8
push 0x61d6d4
call fcn.004010e0
add esp, 0xc
push 0xfe
call fcn.00587d2d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xfe
push 0x16d8
mov edx, 0x61d6f8
xor ecx, ecx
call fcn.004b47e0
add esp, 0xc
push 0x16d8
push 0x61d714
push 0x61d730
call fcn.004010e0
add esp, 0xc
push 0xfe
call fcn.00587d2d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xfe
push 0x16d9
mov edx, 0x61d754
xor ecx, ecx
call fcn.004b47e0
add esp, 0xc
push 0x16d9
push 0x61d770
push 0x61d78c
call fcn.004010e0
add esp, 0xc
push 0xfe
call fcn.00587d2d
int3