Function at 0x557f2c
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
call fcn.00550c2e
mov ebx, eax
mov eax, dword [edi + 0x44]
dec eax
mov dword [ebp - 8], eax
mov eax, ebx
call fcn.0054a711
mov edi, dword [ebp + 0x18]
xor esi, esi
cmp dword [ebp + 0x24], esi
mov dword [ebp - 4], eax
jge 0x557f6c
push eax
movzx eax, byte [edi + 0x18]
push eax
push 0x6f
pop eax
mov ecx, ebx
call fcn.0054a6fe
pop ecx
pop ecx
cmp dword [edi + 0x14], esi
jle 0x557f94
mov eax, dword [ebp + 0x1c]
mov eax, dword [eax + esi*4]
push dword [ebp - 4]
mov ecx, dword [ebp + 0x20]
lea eax, [eax + ecx + 1]
push eax
push 0x49
pop eax
mov ecx, ebx
call fcn.0054a6fe
inc esi
cmp esi, dword [edi + 0x14]
pop ecx
pop ecx
jl 0x557f71
cmp dword [ebp + 0x28], 0
jne 0x5581a0
cmp dword [ebp + 0x14], 0
jne 0x558061
mov eax, dword [ebp + 8]
call fcn.00544e7c
mov ecx, dword [ebp + 0x20]
push eax
mov dword [ebp + 0x18], eax
mov eax, dword [ebp + 0x1c]
mov eax, dword [eax]
lea eax, [eax + ecx + 1]
push eax
push 0xf
pop eax
mov ecx, ebx
call fcn.0054a6fe
push 0
push dword [ebp + 0x18]
mov ecx, ebx
push 0x15
pop eax
call fcn.0054a6fe
mov esi, dword [ebp + 0x10]
add esp, 0x10
mov dword [ebp + 0x28], eax
cmp esi, dword [edi]
jne 0x558003
cmp dword [ebp + 0x24], 1
jne 0x558003
push dword [ebp + 0x18]
mov ecx, ebx
push dword [ebp - 4]
push dword [ebp + 0x20]
push 0x4c
pop eax
call fcn.0054a669
add esp, 0xc
push 0x26
push dword [ebp + 0xc]
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.00554019
push dword [ebp + 0x18]
mov ecx, ebx
push 0
push dword [ebp - 8]
push 0x34
pop eax
call fcn.0054a669
push dword [ebp - 4]
xor eax, eax
push 0
inc eax
mov ecx, ebx
call fcn.0054a6fe
add esp, 0x24
mov eax, ebx
call fcn.00543e46
dec eax
dec eax
mov ecx, ebx
call fcn.00543eaf
mov eax, dword [ebp + 0x28]
mov ecx, ebx
call fcn.00543eaf
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp + 8]
call fcn.00544e97
jmp 0x5581a0
mov esi, dword [edi + 0x14]
mov ecx, dword [ebp + 8]
call fcn.00544ecb
mov dword [ebp - 0x10], eax
mov eax, ecx
call fcn.00544e7c
push dword [ebp + 0x14]
mov dword [ebp - 0xc], eax
push dword [ebp + 8]
call fcn.0055736d
push dword [ebp + 0xc]
mov dword [ebp + 0x28], eax
mov eax, dword [ebp + 0x14]
push dword [eax + 0x14]
mov ecx, ebx
push dword [ebp - 8]
push 0x26
pop eax
call fcn.0054a669
push 0xfffffffffffffff0
push dword [ebp + 0x28]
or eax, 0xffffffff
push ebx
call fcn.0054a947
xor eax, eax
add esp, 0x20
mov dword [ebp + 0x28], eax
test esi, esi
jle 0x5580e4
jmp 0x5580bc
mov eax, dword [ebp + 0x28]
mov ecx, dword [ebp - 0x10]
add ecx, eax
push ecx
mov ecx, dword [ebp + 0x1c]
mov eax, dword [ecx + eax*4]
mov ecx, dword [ebp + 0x20]
lea eax, [eax + ecx + 1]
push eax
push 0xe
pop eax
mov ecx, ebx
call fcn.0054a6fe
inc dword [ebp + 0x28]
cmp dword [ebp + 0x28], esi
pop ecx
pop ecx
jl 0x5580b9
mov eax, dword [ebp + 0x10]
cmp eax, dword [edi]
jne 0x558147
cmp dword [ebp + 0x24], 1
jne 0x558147
mov eax, ebx
call fcn.00543e46
lea eax, [eax + esi + 1]
xor edi, edi
mov dword [ebp + 0x28], eax
test esi, esi
jle 0x558136
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 8]
mov ecx, dword [eax + edi*4]
mov eax, dword [ebp + 0x20]
lea ecx, [ecx + eax + 1]
push ecx
mov ecx, dword [ebp + 0x1c]
mov ecx, dword [ecx + edi*4]
push dword [ebp + 0x28]
lea eax, [ecx + eax + 1]
push eax
push 0x4b
pop eax
mov ecx, ebx
call fcn.0054a669
add esp, 0xc
inc edi
cmp edi, esi
jl 0x558105
push dword [ebp - 4]
xor eax, eax
push 0
inc eax
mov ecx, ebx
call fcn.0054a6fe
pop ecx
pop ecx
push dword [ebp - 0xc]
mov ecx, ebx
push esi
push dword [ebp - 0x10]
push 0x1e
pop eax
call fcn.0054a669
mov edi, dword [ebp + 0x14]
add esp, 0xc
push 0
mov eax, ebx
call fcn.0054d17c
push eax
push ebx
or eax, 0xffffffff
call fcn.0054a947
push 0
push dword [ebp - 0xc]
push dword [ebp - 4]
push dword [ebp - 8]
push ebx
push 0x32
pop eax
call fcn.0054ef0b
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
add esp, 0x20
call fcn.00544e97
mov ecx, dword [ebp - 0x10]
mov edi, esi
call fcn.00544eef
mov edi, dword [ebp + 0x18]
mov cl, byte [edi + 0x18]
mov eax, dword [ebp + 8]
test cl, cl
jne 0x5581ce
cmp dword [eax + 0x1a8], 0
jne 0x5581ce
cmp byte [eax + 0x158], cl
jne 0x5581ce
push 0xfffffffffffffffe
push str.foreign_key_constraint_failed
push 2
call fcn.0055367e
add esp, 0xc
jmp 0x5581ff
cmp dword [ebp + 0x24], 0
jle 0x5581eb
test cl, cl
jne 0x5581eb
mov ecx, dword [eax + 0x1a8]
test ecx, ecx
je 0x5581e4
mov eax, ecx
mov byte [eax + 0x159], 1
movzx eax, byte [edi + 0x18]
push dword [ebp + 0x24]
mov ecx, ebx
push eax
push 0x6e
pop eax
call fcn.0054a6fe
pop ecx
pop ecx
mov edx, dword [ebp - 4]
mov ecx, ebx
call fcn.00543d82
push dword [ebp - 8]
mov ecx, ebx
push 0x2b
pop eax
call fcn.0054a6ed
pop ecx
pop edi
pop esi
pop ebx
leave
ret