Function at 0x4b0b59
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.004a985b
mov ebx, eax
mov eax, dword [edi + 0x44]
dec eax
mov dword [ebp - 8], eax
mov eax, ebx
call fcn.004a333e
mov edi, dword [ebp + 0x18]
xor esi, esi
cmp dword [ebp + 0x24], esi
mov dword [ebp - 4], eax
jge 0x4b0b99
push eax
movzx eax, byte [edi + 0x18]
push eax
push 0x6f
pop eax
mov ecx, ebx
call fcn.004a332b
pop ecx
pop ecx
cmp dword [edi + 0x14], esi
jle 0x4b0bc1
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.004a332b
inc esi
cmp esi, dword [edi + 0x14]
pop ecx
pop ecx
jl 0x4b0b9e
cmp dword [ebp + 0x28], 0
jne 0x4b0dcd
cmp dword [ebp + 0x14], 0
jne 0x4b0c8e
mov eax, dword [ebp + 8]
call fcn.0049daa9
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.004a332b
push 0
push dword [ebp + 0x18]
mov ecx, ebx
push 0x15
pop eax
call fcn.004a332b
mov esi, dword [ebp + 0x10]
add esp, 0x10
mov dword [ebp + 0x28], eax
cmp esi, dword [edi]
jne 0x4b0c30
cmp dword [ebp + 0x24], 1
jne 0x4b0c30
push dword [ebp + 0x18]
mov ecx, ebx
push dword [ebp - 4]
push dword [ebp + 0x20]
push 0x4c
pop eax
call fcn.004a3296
add esp, 0xc
push 0x26
push dword [ebp + 0xc]
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.004acc46
push dword [ebp + 0x18]
mov ecx, ebx
push 0
push dword [ebp - 8]
push 0x34
pop eax
call fcn.004a3296
push dword [ebp - 4]
xor eax, eax
push 0
inc eax
mov ecx, ebx
call fcn.004a332b
add esp, 0x24
mov eax, ebx
call fcn.0049ca71
dec eax
dec eax
mov ecx, ebx
call fcn.0049cada
mov eax, dword [ebp + 0x28]
mov ecx, ebx
call fcn.0049cada
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp + 8]
call fcn.0049dac4
jmp 0x4b0dcd
mov esi, dword [edi + 0x14]
mov ecx, dword [ebp + 8]
call fcn.0049daf8
mov dword [ebp - 0x10], eax
mov eax, ecx
call fcn.0049daa9
push dword [ebp + 0x14]
mov dword [ebp - 0xc], eax
push dword [ebp + 8]
call fcn.004aff9a
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.004a3296
push 0xfffffffffffffff0
push dword [ebp + 0x28]
or eax, 0xffffffff
push ebx
call fcn.004a3574
xor eax, eax
add esp, 0x20
mov dword [ebp + 0x28], eax
test esi, esi
jle 0x4b0d11
jmp 0x4b0ce9
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.004a332b
inc dword [ebp + 0x28]
cmp dword [ebp + 0x28], esi
pop ecx
pop ecx
jl 0x4b0ce6
mov eax, dword [ebp + 0x10]
cmp eax, dword [edi]
jne 0x4b0d74
cmp dword [ebp + 0x24], 1
jne 0x4b0d74
mov eax, ebx
call fcn.0049ca71
lea eax, [eax + esi + 1]
xor edi, edi
mov dword [ebp + 0x28], eax
test esi, esi
jle 0x4b0d63
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.004a3296
add esp, 0xc
inc edi
cmp edi, esi
jl 0x4b0d32
push dword [ebp - 4]
xor eax, eax
push 0
inc eax
mov ecx, ebx
call fcn.004a332b
pop ecx
pop ecx
push dword [ebp - 0xc]
mov ecx, ebx
push esi
push dword [ebp - 0x10]
push 0x1e
pop eax
call fcn.004a3296
mov edi, dword [ebp + 0x14]
add esp, 0xc
push 0
mov eax, ebx
call fcn.004a5da9
push eax
push ebx
or eax, 0xffffffff
call fcn.004a3574
push 0
push dword [ebp - 0xc]
push dword [ebp - 4]
push dword [ebp - 8]
push ebx
push 0x32
pop eax
call fcn.004a7b38
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
add esp, 0x20
call fcn.0049dac4
mov ecx, dword [ebp - 0x10]
mov edi, esi
call fcn.0049db1c
mov edi, dword [ebp + 0x18]
mov cl, byte [edi + 0x18]
mov eax, dword [ebp + 8]
test cl, cl
jne 0x4b0dfb
cmp dword [eax + 0x1a8], 0
jne 0x4b0dfb
cmp byte [eax + 0x158], cl
jne 0x4b0dfb
push 0xfffffffffffffffe
push str.foreign_key_constraint_failed
push 2
call fcn.004ac2ab
add esp, 0xc
jmp 0x4b0e2c
cmp dword [ebp + 0x24], 0
jle 0x4b0e18
test cl, cl
jne 0x4b0e18
mov ecx, dword [eax + 0x1a8]
test ecx, ecx
je 0x4b0e11
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.004a332b
pop ecx
pop ecx
mov edx, dword [ebp - 4]
mov ecx, ebx
call fcn.0049c9ad
push dword [ebp - 8]
mov ecx, ebx
push 0x2b
pop eax
call fcn.004a331a
pop ecx
pop edi
pop esi
pop ebx
leave
ret