Function at 0x511320
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
mov ebx, dword [ecx + 0x3eb0]
lea eax, [ecx + 0x3eac]
push esi
mov esi, dword [ecx + 0x3eac]
mov dword [ebp - 8], ecx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0xc], esi
push edi
mov edi, dword [ebp + 0xc]
cmp esi, ebx
je 0x51149f
lea edx, [esi + 0x18]
mov dword [ebp - 4], edx
mov ecx, edi
lea edi, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x511360
sub ecx, edi
cmp dword [edx], 0xf
lea edi, [edx - 0x14]
mov eax, edi
jbe 0x511375
mov eax, dword [edi]
mov edx, dword [edx - 4]
push ecx
push dword [ebp + 0xc]
mov ecx, eax
call fcn.004108e0
add esp, 8
test al, al
je 0x511485
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x1c]
test ebx, ebx
je 0x5113c3
lea eax, [ebp - 0x10]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x5113b9
cmp dword [ebp - 0x10], 0x103
jne 0x5113b9
push 0xffffffffffffffff
push ebx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
mov ebx, dword [ebp - 8]
mov dword [eax + 0x1c], 0
add eax, 0x20
mov dword [ebp - 0x14], eax
mov ecx, dword [ebx + 0x3eb0]
mov dword [ebp - 0x18], ecx
cmp eax, ecx
je 0x511465
mov esi, eax
mov eax, dword [esi]
lea ebx, [edi + 0x38]
mov dword [edi - 4], eax
cmp edi, ebx
je 0x51141a
mov ecx, edi
call fcn.004143d0
movups xmm0, xmmword [ebx]
movups xmmword [edi], xmm0
movq xmm0, qword [ebx + 0x10]
movq qword [edi + 0x10], xmm0
mov dword [edi + 0x48], 0
mov dword [edi + 0x4c], 0xf
mov byte [ebx], 0
lea eax, [edi + 0x18]
lea ecx, [edi + 0x50]
cmp eax, ecx
je 0x51144f
mov ecx, eax
call fcn.004143d0
movups xmm0, xmmword [edi + 0x50]
movups xmmword [edi + 0x18], xmm0
movq xmm0, qword [edi + 0x60]
movq qword [edi + 0x28], xmm0
mov dword [edi + 0x60], 0
mov dword [edi + 0x64], 0xf
mov byte [edi + 0x50], 0
mov eax, dword [edi + 0x68]
add esi, 0x38
mov dword [edi + 0x30], eax
mov edi, ebx
cmp esi, dword [ebp - 0x18]
jne 0x5113e6
mov esi, dword [ebp - 0xc]
mov ebx, dword [ebp - 8]
mov ecx, dword [ebx + 0x3eb0]
sub ecx, 0x38
call fcn.00511580
add dword [ebx + 0x3eb0], 0xffffffc8
mov ebx, dword [ebx + 0x3eb0]
mov edx, dword [ebp - 4]
jmp 0x511494
mov edx, dword [ebp - 4]
add esi, 0x38
add edx, 0x38
mov dword [ebp - 0xc], esi
mov dword [ebp - 4], edx
mov edi, dword [ebp + 0xc]
cmp esi, ebx
jne 0x511355
mov eax, dword [ebp + 8]
mov ecx, edi
xorps xmm0, xmm0
mov dword [ebp - 0x40], 0
movups xmmword [ebp - 0x50], xmm0
mov dword [ebp - 0x3c], 0xf
movups xmmword [ebp - 0x38], xmm0
mov byte [ebp - 0x50], 0
lea edx, [ecx + 1]
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0xf
mov byte [ebp - 0x38], 0
mov dword [ebp - 0x54], eax
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x5114e0
sub ecx, edx
push ecx
push edi
lea ecx, [ebp - 0x50]
call fcn.0040c060
mov edx, dword [ebp + 0x10]
test edx, edx
cmove edx, edi
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x511500
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x38]
call fcn.0040c060
mov ebx, dword [ebp - 0x1c]
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x20], eax
mov esi, dword [ebx + 4]
cmp esi, dword [ebx + 8]
je 0x51155c
mov eax, dword [ebp - 0x54]
lea ecx, [esi + 4]
mov dword [esi], eax
lea eax, [ebp - 0x50]
push eax
call fcn.004141c0
lea eax, [ebp - 0x38]
push eax
lea ecx, [esi + 0x1c]
call fcn.004141c0
mov eax, dword [ebp - 0x20]
lea ecx, [ebp - 0x54]
mov dword [esi + 0x34], eax
add dword [ebx + 4], 0x38
call fcn.00511580
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
lea eax, [ebp - 0x54]
mov ecx, ebx
push eax
push esi
call fcn.005119c0
lea ecx, [ebp - 0x54]
call fcn.00511580
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10