Function at 0x569b7a
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.0056287c
mov ebx, eax
mov eax, dword [edi + 0x44]
dec eax
mov dword [ebp - 8], eax
mov eax, ebx
call fcn.0055c35f
mov edi, dword [ebp + 0x18]
xor esi, esi
cmp dword [ebp + 0x24], esi
mov dword [ebp - 4], eax
jge 0x569bba
push eax
movzx eax, byte [edi + 0x18]
push eax
push 0x6f
pop eax
mov ecx, ebx
call fcn.0055c34c
pop ecx
pop ecx
cmp dword [edi + 0x14], esi
jle 0x569be2
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.0055c34c
inc esi
cmp esi, dword [edi + 0x14]
pop ecx
pop ecx
jl 0x569bbf
cmp dword [ebp + 0x28], 0
jne 0x569dee
cmp dword [ebp + 0x14], 0
jne 0x569caf
mov eax, dword [ebp + 8]
call fcn.00556ac9
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.0055c34c
push 0
push dword [ebp + 0x18]
mov ecx, ebx
push 0x15
pop eax
call fcn.0055c34c
mov esi, dword [ebp + 0x10]
add esp, 0x10
mov dword [ebp + 0x28], eax
cmp esi, dword [edi]
jne 0x569c51
cmp dword [ebp + 0x24], 1
jne 0x569c51
push dword [ebp + 0x18]
mov ecx, ebx
push dword [ebp - 4]
push dword [ebp + 0x20]
push 0x4c
pop eax
call fcn.0055c2b7
add esp, 0xc
push 0x26
push dword [ebp + 0xc]
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.00565c67
push dword [ebp + 0x18]
mov ecx, ebx
push 0
push dword [ebp - 8]
push 0x34
pop eax
call fcn.0055c2b7
push dword [ebp - 4]
xor eax, eax
push 0
inc eax
mov ecx, ebx
call fcn.0055c34c
add esp, 0x24
mov eax, ebx
call fcn.00555a93
dec eax
dec eax
mov ecx, ebx
call fcn.00555afc
mov eax, dword [ebp + 0x28]
mov ecx, ebx
call fcn.00555afc
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp + 8]
call fcn.00556ae4
jmp 0x569dee
mov esi, dword [edi + 0x14]
mov ecx, dword [ebp + 8]
call fcn.00556b18
mov dword [ebp - 0x10], eax
mov eax, ecx
call fcn.00556ac9
push dword [ebp + 0x14]
mov dword [ebp - 0xc], eax
push dword [ebp + 8]
call fcn.00568fbb
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.0055c2b7
push 0xfffffffffffffff0
push dword [ebp + 0x28]
or eax, 0xffffffff
push ebx
call fcn.0055c595
xor eax, eax
add esp, 0x20
mov dword [ebp + 0x28], eax
test esi, esi
jle 0x569d32
jmp 0x569d0a
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.0055c34c
inc dword [ebp + 0x28]
cmp dword [ebp + 0x28], esi
pop ecx
pop ecx
jl 0x569d07
mov eax, dword [ebp + 0x10]
cmp eax, dword [edi]
jne 0x569d95
cmp dword [ebp + 0x24], 1
jne 0x569d95
mov eax, ebx
call fcn.00555a93
lea eax, [eax + esi + 1]
xor edi, edi
mov dword [ebp + 0x28], eax
test esi, esi
jle 0x569d84
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.0055c2b7
add esp, 0xc
inc edi
cmp edi, esi
jl 0x569d53
push dword [ebp - 4]
xor eax, eax
push 0
inc eax
mov ecx, ebx
call fcn.0055c34c
pop ecx
pop ecx
push dword [ebp - 0xc]
mov ecx, ebx
push esi
push dword [ebp - 0x10]
push 0x1e
pop eax
call fcn.0055c2b7
mov edi, dword [ebp + 0x14]
add esp, 0xc
push 0
mov eax, ebx
call fcn.0055edca
push eax
push ebx
or eax, 0xffffffff
call fcn.0055c595
push 0
push dword [ebp - 0xc]
push dword [ebp - 4]
push dword [ebp - 8]
push ebx
push 0x32
pop eax
call fcn.00560b59
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
add esp, 0x20
call fcn.00556ae4
mov ecx, dword [ebp - 0x10]
mov edi, esi
call fcn.00556b3c
mov edi, dword [ebp + 0x18]
mov cl, byte [edi + 0x18]
mov eax, dword [ebp + 8]
test cl, cl
jne 0x569e1c
cmp dword [eax + 0x1a8], 0
jne 0x569e1c
cmp byte [eax + 0x158], cl
jne 0x569e1c
push 0xfffffffffffffffe
push str.foreign_key_constraint_failed
push 2
call fcn.005652cc
add esp, 0xc
jmp 0x569e4d
cmp dword [ebp + 0x24], 0
jle 0x569e39
test cl, cl
jne 0x569e39
mov ecx, dword [eax + 0x1a8]
test ecx, ecx
je 0x569e32
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.0055c34c
pop ecx
pop ecx
mov edx, dword [ebp - 4]
mov ecx, ebx
call fcn.005559cf
push dword [ebp - 8]
mov ecx, ebx
push 0x2b
pop eax
call fcn.0055c33b
pop ecx
pop edi
pop esi
pop ebx
leave
ret