Function at 0x80d1b0
Capabilities:
Terminate process

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x20
mov eax, dword [esp + 0x34]
mov edi, ecx
mov ecx, dword [ecx + 8]
mov byte [eax], 1
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
cmp dword [eax + 0x2c], 0
jle 0x80d3aa
mov dword [esp + 0x14], edx
mov eax, dword [esp + 4]
mov dword [esp + 0xc], 0
mov dword [esp], edi
mov ebp, dword [eax + 0x28]
xor eax, eax
mov dword [esp + 0x1c], eax
mov eax, dword [ebp]
mov esi, dword [eax + 0x14]
test byte [eax + 7], 1
jne 0x80d207
mov dword [esp + 0x10], 0
jmp 0x80d261
mov eax, dword [eax + 0x2c]
mov ecx, dword [esp + 4]
mov ebx, dword [eax + 0x28]
cmp dword [ecx + 0x24], 0
je 0x80d249
mov eax, dword [ebp + 4]
test byte [eax + 4], 0x20
je 0x80d249
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x80d22f
mov eax, dword [edi + 0x2c]
inc eax
mov dword [edi + 0x2c], eax
mov ecx, dword [esp + 8]
mov edx, 0x4d
mov dword [esp + 0xc], eax
push eax
push dword [esp + 0x18]
call fcn.007c57e0
add esp, 8
mov ecx, edi
call fcn.007efdc0
push 0x10
mov dword [esp + 0x14], eax
push eax
push ebx
push edi
call fcn.007f0850
add esp, 0x10
test esi, esi
jne 0x80d26b
xor ebx, ebx
xor edi, edi
jmp 0x80d289
mov ebx, dword [esi]
mov ecx, edi
mov edx, ebx
call fcn.007eee80
mov ecx, edi
mov edx, esi
push 1
push 0
mov edi, eax
push eax
call fcn.007eeeb0
add esp, 0xc
mov edx, dword [ebp + 0xc]
mov eax, dword [esp + 0x10]
test edx, edx
js 0x80d2b6
test eax, eax
jne 0x80d2a3
mov ecx, dword [esp]
call fcn.007efdc0
mov edx, dword [ebp + 0xc]
mov ecx, dword [esp]
push edi
push 1
mov dword [esp + 0x18], eax
push eax
call fcn.00820880
add esp, 0xc
mov eax, dword [ebp + 4]
test byte [eax + 4], 0x20
jne 0x80d2c5
mov esi, dword [esp + 8]
jmp 0x80d337
test ebx, ebx
mov dword [esp + 0x18], ebp
jle 0x80d2ec
add esi, 4
xor ebp, ebp
mov edx, dword [esi]
mov ecx, dword [esp]
call fcn.007c8020
inc ebp
cmp ebp, ebx
jge 0x80d2e8
add esi, 0x14
test eax, eax
je 0x80d2d2
test eax, eax
jne 0x80d2f4
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax + 8]
mov ebp, dword [esp + 0xc]
mov edx, dword [esp + 4]
test ebp, ebp
jne 0x80d314
cmp dword [edx + 0x24], 0
jne 0x80d30a
xor ebp, ebp
jmp 0x80d314
mov ecx, dword [esp]
mov ebp, dword [ecx + 0x2c]
inc ebp
mov dword [ecx + 0x2c], ebp
mov esi, dword [esp + 8]
mov edx, 0x51
mov ecx, esi
push 0xfffffffffffffffe
push eax
push 0
push 0
mov dword [esp + 0x1c], ebp
push ebp
call fcn.007ebd50
add esp, 0x14
mov ebp, dword [esp + 0x18]
mov edx, 0x9a
mov ecx, esi
push dword [ebp + 8]
push edi
push 0
call fcn.007c5800
add esp, 0xc
mov edx, dword [ebp + 4]
mov ecx, esi
push 0xfffffffffffffff8
call fcn.007ec2f0
add esp, 4
movzx edx, bl
mov ecx, esi
call fcn.00782720
mov ecx, dword [esp]
mov edx, edi
push ebx
call fcn.007ef1d0
add esp, 4
mov edx, dword [esp + 0x10]
test edx, edx
je 0x80d382
mov ecx, esi
call fcn.007f04f0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 4]
add ebp, 0x10
mov edi, dword [esp]
inc eax
cmp eax, dword [ecx + 0x2c]
jl 0x80d1ed
mov esi, dword [esp + 0xc]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 8]
test esi, esi
jne 0x80d3bd
mov eax, dword [esp + 4]
xor ebx, ebx
test edx, edx
mov eax, dword [eax + 0x24]
je 0x80d3d4
test eax, eax
mov esi, edx
je 0x80d3d4
mov edx, 0x12
push esi
call fcn.007edd80
add esp, 4
mov ebx, eax
mov eax, dword [esp + 4]
mov eax, dword [eax + 0x24]
mov dword [esp], ebx
test eax, eax
mov esi, dword [esp + 4]
jle 0x80d3fd
mov ebx, dword [esi + 0x1c]
xor ebp, ebp
mov edx, dword [ebx + 0x14]
mov ecx, edi
push dword [ebx + 0x10]
call fcn.007ebed0
add esp, 4
inc ebp
add ebx, 0x18
cmp ebp, dword [esi + 0x24]
jl 0x80d3e4
mov edx, dword [esp]
mov byte [esi], 0
test edx, edx
jne 0x80d40f
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, dword [esp + 8]
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
jmp fcn.007ebd40