Function at 0x45b6f2
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
mov ebx, dword [ecx + 8]
push esi
push edi
mov edi, edx
mov dword [ebp - 4], ecx
movzx edx, byte [edi + 0x1c]
mov eax, dword [edi]
not edx
and edx, 1
mov dword [ebp - 0x18], edx
mov eax, dword [eax]
add edx, eax
add edx, dword [ebp + 0x14]
mov dword [ebp - 0xc], eax
xor eax, eax
cmp dword [ebp + 0x18], 0
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x10], eax
mov eax, dword [edi + 4]
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x14], eax
je 0x45b73a
mov esi, dword [ebp + 0xc]
sub esi, dword [ebp + 0x18]
jmp 0x45b745
mov eax, dword [ecx + 0x2c]
lea esi, [eax + 1]
add eax, edx
mov dword [ecx + 0x2c], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 8], esi
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x45b757
lea eax, [ecx + 1]
jmp 0x45b75a
mov eax, dword [eax + 0xc]
mov ecx, ebx
mov dword [ebp - 0x1c], eax
call fcn.0043696d
cmp dword [ebp + 0x10], 0
mov edx, dword [edi]
mov ecx, dword [ebp - 4]
mov dword [edi + 0x18], eax
setne al
lea eax, [eax*4 + 1]
push eax
push dword [ebp + 0x10]
push esi
call fcn.004488d6
mov ecx, dword [ebp - 0x18]
add esp, 0xc
test ecx, ecx
je 0x45b7a6
mov eax, dword [ebp - 0xc]
mov ecx, ebx
add eax, esi
push eax
push dword [edi + 8]
push 0x74
pop edx
call fcn.00436721
pop ecx
pop ecx
mov ecx, dword [ebp - 0x18]
cmp dword [ebp + 0x18], 0
jne 0x45b7c9
mov eax, dword [ebp + 0x14]
test eax, eax
jle 0x45b7c9
mov edx, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 0xc]
add eax, esi
add eax, ecx
mov ecx, dword [ebp - 4]
push eax
call fcn.004479da
pop ecx
pop ecx
cmp dword [ebp - 0x14], 0
jle 0x45b938
push dword [ebp - 0x20]
mov ecx, dword [ebp - 4]
mov edx, edi
push esi
push dword [ebp + 8]
call fcn.0045b6ad
mov dword [ebp - 0x10], eax
add esp, 0xc
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x2c]
lea ecx, [edx + 1]
mov dword [ebp + 0x10], ecx
mov ecx, dword [edi + 4]
add ecx, edx
mov dword [eax + 0x2c], ecx
mov ecx, dword [ebp - 0xc]
mov edx, ecx
sub edx, dword [edi + 4]
mov eax, dword [ebp - 0x18]
add edx, eax
mov dword [ebp - 0x18], edx
test eax, eax
je 0x45b81a
lea eax, [esi + ecx]
push eax
push 0x16
jmp 0x45b81f
push dword [edi + 8]
push 0x70
pop edx
mov ecx, ebx
call fcn.0043670d
pop ecx
push dword [edi + 4]
mov ecx, ebx
mov dword [ebp + 0x18], eax
push esi
push dword [ebp + 0x10]
push 0x54
pop edx
call fcn.0043669d
mov edx, dword [edi + 0x14]
add esp, 0xc
mov ecx, ebx
call fcn.00436f19
mov edx, eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x28], edx
mov ecx, dword [eax]
cmp byte [ecx + 0x49], 0
jne 0x45b9f8
mov esi, dword [edx + 0x10]
mov ecx, dword [ebp - 0x18]
add ecx, dword [ebp + 0x14]
mov dword [edx + 8], ecx
movzx eax, word [esi + 6]
push eax
push 0
push dword [esi + 0x10]
call fcn.00479680
add esp, 0xc
or edx, 0xffffffff
mov ecx, ebx
push 0xfffffffffffffff7
push esi
call fcn.00436e52
movzx ecx, word [esi + 8]
movzx eax, word [esi + 6]
mov esi, dword [ebp - 4]
sub ecx, eax
mov edx, dword [edi]
dec ecx
push ecx
push dword [ebp - 0x14]
mov ecx, esi
call fcn.0045c25b
mov ecx, dword [ebp - 0x28]
mov dword [ecx + 0x10], eax
mov ecx, ebx
call fcn.00436b11
mov dword [ebp + 0x14], eax
lea ecx, [eax + 1]
push ecx
push 0
push ecx
push 0x12
pop edx
mov ecx, ebx
call fcn.0043669d
add esp, 0x1c
mov ecx, ebx
call fcn.0043696d
mov dword [edi + 0x10], eax
mov ecx, ebx
mov eax, dword [esi + 0x2c]
inc eax
mov dword [esi + 0x2c], eax
push dword [edi + 0x10]
mov dword [edi + 0xc], eax
push eax
push 0xe
pop edx
call fcn.00436721
push dword [edi + 8]
mov edx, 0x88
mov ecx, ebx
call fcn.0043670d
mov eax, dword [ebp - 0x1c]
add esp, 0xc
test eax, eax
je 0x45b912
push dword [edi + 0x18]
mov ecx, ebx
push eax
push 0x16
pop edx
call fcn.00436721
pop ecx
pop ecx
mov edx, dword [ebp + 0x18]
mov ecx, ebx
call fcn.00436c48
push dword [edi + 4]
mov edx, dword [ebp - 8]
mov ecx, esi
push dword [ebp + 0x10]
call fcn.004479da
mov edx, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, ebx
call fcn.00436c48
mov edx, dword [ebp - 0x1c]
test edx, edx
je 0x45b98f
mov esi, dword [edi + 8]
mov ecx, ebx
call fcn.00436b11
add eax, 4
push eax
push edx
push 0x31
pop edx
call fcn.00436721
push 0
push esi
push 0x21
pop edx
mov ecx, ebx
call fcn.00436721
mov eax, dword [ebp - 0xc]
mov ecx, ebx
sub eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x14]
push eax
push 0
push esi
push 0x26
pop edx
call fcn.0043691e
push esi
push 0x78
pop edx
mov ecx, ebx
mov dword [ebp - 0x24], eax
call fcn.0043670d
add esp, 0x24
mov edx, dword [ebp - 0x10]
test edx, edx
jne 0x45b9b1
push dword [ebp - 0x20]
mov ecx, dword [ebp - 4]
mov edx, edi
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.0045b6ad
add esp, 0xc
mov dword [ebp - 0x10], eax
mov edx, eax
mov eax, dword [ebp - 0x20]
mov ecx, ebx
sub eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x14]
push eax
push edx
mov dl, byte [edi + 0x1c]
push dword [edi + 8]
not dl
and edx, 1
or edx, 0x80
call fcn.0043691e
mov esi, dword [ebp - 0x24]
add esp, 0x10
test esi, esi
je 0x45b9f8
mov ecx, ebx
call fcn.00436b11
movzx edx, byte [edi + 0x1d]
add eax, edx
mov edx, esi
push eax
call fcn.00436c10
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret