Function at 0xb0f2c5
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x9c
mov esi, dword [ebp + 8]
mov esi, dword [esi]
mov dword [ebp - 0x40], esi
cmp dword [ebp + 0x14], 0
setne byte [ebp - 0xa1]
movzx eax, byte [ebp - 0xa1]
movzx esi, al
mov dword [ebp - 0x44], esi
mov edi, dword [ebp + 0x10]
mov esi, dword [ebp - 0x44]
add esi, edi
add esi, 0x19
movzx eax, byte [esi]
movzx esi, al
mov dword [ebp - 0x48], esi
cmp dword [ebp - 0x48], 7
jne 0xb0f358
mov esi, dword [ebp - 0x40]
mov edi, dword [esi + 0x24]
mov esi, dword [esi + 0x20]
mov eax, esi
and eax, 0x80000
mov ecx, eax
mov eax, edi
and eax, 0
mov ebx, eax
mov eax, ecx
xor ah, 0
mov dword [ebp - 0xa0], eax
mov eax, ebx
xor ah, 0
mov dword [ebp - 0x9c], eax
mov ebx, dword [ebp - 0xa0]
mov esi, dword [ebp - 0x9c]
mov eax, ebx
or eax, esi
test eax, eax
je 0xb0f358
mov eax, 0
jmp 0xb0f9db
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp - 0x44]
add edx, 4
mov eax, dword [eax + edx*4 + 0xc]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x48], 0
je 0xb0f9d8
cmp dword [ebp - 0x1c], 0
jne 0xb0f9d8
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x34], 0
sub esp, 0xc
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x64]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00b0d960
add esp, 0x20
test eax, eax
je 0xb0f3d7
mov eax, 0
jmp 0xb0f9db
mov dword [ebp - 0x30], 0
jmp 0xb0f6e7
mov dword [ebp - 0x70], 0x1428435
mov dword [ebp - 0x6c], 3
mov dword [ebp - 0x78], 0x1428431
mov dword [ebp - 0x74], 3
mov eax, dword [ebp - 0x68]
test eax, eax
je 0xb0f415
mov eax, dword [ebp - 0x68]
mov edx, dword [ebp - 0x30]
shl edx, 2
add eax, edx
mov eax, dword [eax]
jmp 0xb0f41b
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 0x24]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 4]
mov eax, dword [ebp - 0x64]
test eax, eax
je 0xb0f44a
mov eax, dword [ebp - 0x64]
mov eax, dword [eax + 4]
mov edx, dword [ebp - 0x30]
add edx, edx
add eax, edx
movzx eax, word [eax]
movsx edx, ax
mov eax, edx
shl eax, 2
add eax, edx
shl eax, 2
jmp 0xb0f45e
mov eax, dword [ebp + 0xc]
movzx eax, word [eax + 0x28]
movsx edx, ax
mov eax, edx
shl eax, 2
add eax, edx
shl eax, 2
add eax, ecx
mov eax, dword [eax]
sub esp, 8
push eax
lea eax, [ebp - 0x88]
push eax
call fcn.00aaed07
add esp, 0x10
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
mov ecx, dword [eax + 4]
mov edx, dword [ebp - 0x58]
mov eax, edx
shl eax, 2
add eax, edx
shl eax, 2
add eax, ecx
mov eax, dword [eax]
sub esp, 8
push eax
lea eax, [ebp - 0x80]
push eax
call fcn.00aaed07
add esp, 0x10
push 0
lea eax, [ebp - 0x80]
push eax
push 0x3b
push dword [ebp - 0x40]
call fcn.00af197e
add esp, 0x10
mov ebx, eax
push 0
lea eax, [ebp - 0x88]
push eax
push 0x3b
push dword [ebp - 0x40]
call fcn.00af197e
add esp, 0x10
mov esi, eax
push 0
lea eax, [ebp - 0x70]
push eax
push 0x3b
push dword [ebp - 0x40]
call fcn.00af197e
add esp, 0x10
push esi
push eax
push 0x8c
push dword [ebp + 8]
call fcn.00af1b9c
add esp, 0x10
push ebx
push eax
push 0x35
push dword [ebp + 8]
call fcn.00af1b9c
add esp, 0x10
mov dword [ebp - 0x5c], eax
sub esp, 4
push dword [ebp - 0x5c]
push dword [ebp - 0x24]
push dword [ebp + 8]
call fcn.00af1c92
add esp, 0x10
mov dword [ebp - 0x24], eax
cmp dword [ebp + 0x14], 0
je 0xb0f5c8
push 0
lea eax, [ebp - 0x88]
push eax
push 0x3b
push dword [ebp - 0x40]
call fcn.00af197e
add esp, 0x10
mov ebx, eax
push 0
lea eax, [ebp - 0x78]
push eax
push 0x3b
push dword [ebp - 0x40]
call fcn.00af197e
add esp, 0x10
push ebx
push eax
push 0x8c
push dword [ebp + 8]
call fcn.00af1b9c
add esp, 0x10
mov ebx, eax
push 0
lea eax, [ebp - 0x88]
push eax
push 0x3b
push dword [ebp - 0x40]
call fcn.00af197e
add esp, 0x10
mov esi, eax
push 0
lea eax, [ebp - 0x70]
push eax
push 0x3b
push dword [ebp - 0x40]
call fcn.00af197e
add esp, 0x10
push esi
push eax
push 0x8c
push dword [ebp + 8]
call fcn.00af1b9c
add esp, 0x10
push ebx
push eax
push 0x2d
push dword [ebp + 8]
call fcn.00af1b9c
add esp, 0x10
mov dword [ebp - 0x5c], eax
sub esp, 4
push dword [ebp - 0x5c]
push dword [ebp - 0x34]
push dword [ebp + 8]
call fcn.00af1c92
add esp, 0x10
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x48], 7
je 0xb0f6e3
cmp dword [ebp - 0x48], 0xa
jne 0xb0f5e2
cmp dword [ebp + 0x14], 0
je 0xb0f6e3
cmp dword [ebp - 0x48], 0xa
jne 0xb0f62d
push 0
lea eax, [ebp - 0x88]
push eax
push 0x3b
push dword [ebp - 0x40]
call fcn.00af197e
add esp, 0x10
mov ebx, eax
push 0
lea eax, [ebp - 0x78]
push eax
push 0x3b
push dword [ebp - 0x40]
call fcn.00af197e
add esp, 0x10
push ebx
push eax
push 0x8c
push dword [ebp + 8]
call fcn.00af1b9c
add esp, 0x10
mov dword [ebp - 0x38], eax
jmp 0xb0f6b8
cmp dword [ebp - 0x48], 9
jne 0xb0f6a4
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
mov ecx, dword [eax + 4]
mov edx, dword [ebp - 0x58]
mov eax, edx
shl eax, 2
add eax, edx
shl eax, 2
add eax, ecx
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x60]
movzx eax, word [eax + 0x10]
movzx eax, ax
and eax, 0x60
test eax, eax
je 0xb0f667
mov dword [ebp - 0x3c], 0
jmp 0xb0f670
mov eax, dword [ebp - 0x60]
mov eax, dword [eax + 4]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
je 0xb0f68e
sub esp, 4
push 0
push dword [ebp - 0x3c]
push dword [ebp - 0x40]
call fcn.00af28bf
add esp, 0x10
mov dword [ebp - 0x38], eax
jmp 0xb0f6b8
push 0
push 0
push 0x78
push dword [ebp - 0x40]
call fcn.00af197e
add esp, 0x10
mov dword [ebp - 0x38], eax
jmp 0xb0f6b8
push 0
push 0
push 0x78
push dword [ebp - 0x40]
call fcn.00af197e
add esp, 0x10
mov dword [ebp - 0x38], eax
sub esp, 4
push dword [ebp - 0x38]
push dword [ebp - 0x28]
push dword [ebp + 8]
call fcn.00af31c4
add esp, 0x10
mov dword [ebp - 0x28], eax
push 0
lea eax, [ebp - 0x80]
push eax
push dword [ebp - 0x28]
push dword [ebp + 8]
call fcn.00af347d
add esp, 0x10
add dword [ebp - 0x30], 1
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 0x14]
cmp dword [ebp - 0x30], eax
jl 0xb0f3e3
mov eax, dword [ebp - 0x68]
sub esp, 8
push eax
push dword [ebp - 0x40]
call fcn.00aaaafa
add esp, 0x10
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0x4c], eax
sub esp, 0xc
push dword [ebp - 0x4c]
call fcn.00aae942
add esp, 0x10
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x48], 7
jne 0xb0f7b6
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x8c], eax
sub esp, 4
push str.FOREIGN_KEY_constraint_failed
push 0x47
push dword [ebp - 0x40]
call fcn.00af1ad8
add esp, 0x10
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0
je 0xb0f764
mov eax, dword [ebp - 0x54]
mov byte [eax + 1], 2
push 0
lea eax, [ebp - 0x90]
push eax
push 0
push dword [ebp + 8]
call fcn.00b072b2
add esp, 0x10
mov ebx, eax
sub esp, 4
push dword [ebp - 0x54]
push 0
push dword [ebp + 8]
call fcn.00af31c4
add esp, 0x10
sub esp, 0xc
push 0
push 0
push 0
push 0
push 0
push dword [ebp - 0x24]
push ebx
push eax
push dword [ebp + 8]
call fcn.00b1b77d
add esp, 0x30
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x24], 0
mov eax, dword [ebp - 0x40]
mov eax, dword [eax + 0x118]
lea edx, [eax + 1]
mov eax, dword [ebp - 0x40]
mov dword [eax + 0x118], edx
mov eax, dword [ebp - 0x40]
mov word [eax + 0x11c], 0
mov eax, dword [ebp - 0x50]
add eax, 0x55
mov edx, 0
sub esp, 4
push edx
push eax
push dword [ebp - 0x40]
call fcn.00aaadd7
add esp, 0x10
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0xb0f8c0
mov eax, dword [ebp - 0x1c]
lea edx, [eax + 0x24]
mov eax, dword [ebp - 0x1c]
mov dword [eax + 0x1c], edx
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x1c]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
lea edx, [eax + 0x30]
mov eax, dword [ebp - 0x20]
mov dword [eax + 0xc], edx
mov edx, dword [ebp - 0x50]
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0xc]
sub esp, 4
push edx
push dword [ebp - 0x4c]
push eax
call sub.msvcrt.dll_memcpy
add esp, 0x10
sub esp, 4
push 1
push dword [ebp - 0x24]
push dword [ebp - 0x40]
call fcn.00af28bf
add esp, 0x10
mov edx, eax
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x14], edx
sub esp, 4
push 1
push dword [ebp - 0x28]
push dword [ebp - 0x40]
call fcn.00af28e7
add esp, 0x10
mov edx, eax
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x18], edx
sub esp, 4
push 1
push dword [ebp - 0x2c]
push dword [ebp - 0x40]
call fcn.00af2e19
add esp, 0x10
mov edx, eax
mov eax, dword [ebp - 0x20]
mov dword [eax + 8], edx
cmp dword [ebp - 0x34], 0
je 0xb0f8c0
push 0
push dword [ebp - 0x34]
push 0x13
push dword [ebp + 8]
call fcn.00af1b9c
add esp, 0x10
mov dword [ebp - 0x34], eax
sub esp, 4
push 1
push dword [ebp - 0x34]
push dword [ebp - 0x40]
call fcn.00af28bf
add esp, 0x10
mov edx, eax
mov eax, dword [ebp - 0x1c]
mov dword [eax + 0xc], edx
mov eax, dword [ebp - 0x40]
mov eax, dword [eax + 0x118]
lea edx, [eax - 1]
mov eax, dword [ebp - 0x40]
mov dword [eax + 0x118], edx
mov eax, dword [ebp - 0x40]
mov eax, dword [eax + 0x118]
test eax, eax
jne 0xb0f8ee
mov eax, dword [ebp - 0x40]
movzx eax, word [eax + 0x11e]
jmp 0xb0f8f3
mov eax, 0
mov edx, dword [ebp - 0x40]
mov word [edx + 0x11c], ax
sub esp, 8
push dword [ebp - 0x24]
push dword [ebp - 0x40]
call fcn.00af21bc
add esp, 0x10
sub esp, 8
push dword [ebp - 0x34]
push dword [ebp - 0x40]
call fcn.00af21bc
add esp, 0x10
sub esp, 8
push dword [ebp - 0x28]
push dword [ebp - 0x40]
call fcn.00af361e
add esp, 0x10
sub esp, 8
push dword [ebp - 0x2c]
push dword [ebp - 0x40]
call fcn.00b1b905
add esp, 0x10
mov eax, dword [ebp - 0x40]
movzx eax, byte [eax + 0x53]
cmp al, 1
jne 0xb0f964
sub esp, 8
push dword [ebp - 0x1c]
push dword [ebp - 0x40]
call fcn.00b0e5ce
add esp, 0x10
mov eax, 0
jmp 0xb0f9db
mov eax, dword [ebp - 0x48]
cmp eax, 7
je 0xb0f973
cmp eax, 0xa
je 0xb0f97b
jmp 0xb0f989
mov eax, dword [ebp - 0x20]
mov byte [eax], 0x89
jmp 0xb0f98f
cmp dword [ebp + 0x14], 0
jne 0xb0f989
mov eax, dword [ebp - 0x20]
mov byte [eax], 0x7f
jmp 0xb0f98f
mov eax, dword [ebp - 0x20]
mov byte [eax], pe_nt_image_headers32
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
mov dword [eax + 4], edx
mov eax, dword [ebp + 0xc]
mov edx, dword [eax + 0x48]
mov eax, dword [ebp - 0x1c]
mov dword [eax + 0x14], edx
mov eax, dword [ebp + 0xc]
mov edx, dword [eax + 0x48]
mov eax, dword [ebp - 0x1c]
mov dword [eax + 0x18], edx
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp - 0x44]
lea ecx, [edx + 4]
mov edx, dword [ebp - 0x1c]
mov dword [eax + ecx*4 + 0xc], edx
cmp dword [ebp + 0x14], 0
je 0xb0f9cd
mov edx, 0xffffff80
jmp 0xb0f9d2
mov edx, 0x7f
mov eax, dword [ebp - 0x1c]
mov byte [eax + 8], dl
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret